From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B498916E890 for ; Fri, 10 May 2024 11:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342378; cv=none; b=CcfMDKIu618fpF5Z88T6a4YrW6B6HPjxDvE7hOA6wu9vB8jbXoiui5lw6zX1+iRwo2rRJzA787QqVHQSVlKbg3RQ9tLf9ywbgmAzPVLAskhEBA8SvQO26zZy2NVc5GyAbdtDSuzsnxao8DQB5qZLOTI7NDGzL16UnnnxXGY9MF0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342378; c=relaxed/simple; bh=xq/Hy4Zry+1j/+krCSBNdt1SdGwM41vFXUOXZ7JkdrI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=K//EWCJ/wkxAYcfVeivovniqOjeZpe0UWrDm7cmNOcN3dYfDG3iNHOeD81OKQKa+QrsZfGM+lm9bBDCzr7O6wbGSSO74tG7GtEXxjshBlMNs+RDesWWJBv+gg31Rv9zl23cnX92Dt2Usxs7cMo9gQFuZa7nC4RRvdMXJrFSHAE0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tAPYWS07; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tAPYWS07" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59c5c9c6aeso476005966b.2 for ; Fri, 10 May 2024 04:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342375; x=1715947175; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AF6Kt3hor5s6WwdiBm5yOEm0vELRyqrn6ISDRDFqzHg=; b=tAPYWS07Ndc+MTr7lmSU0wTTiFJYrCkzsva45d+bmNE45P94bERdVFh/I8KgLDk/px c2SmpkJ9CBj3/x9GVhlrwpN6N1Ttds++ygB5IujIpPyHsQxP1RQ8ANJTMGdeNQ+FM1SD XRsmh/8O8kmT5ShRq6BgBxdjbdpu2z6u1BciFweCbeRuAsk1gdjYP28flfLPscXemgd5 bzwEuaLKXwUpsOFOxEK0VOjYJ1WETbEo8/PiztUfIipHANRivsLd/XprdgMtc0InotUX LgMX9z0lyoZqW9wh66B6RFG8aHnoxAKmCYr5RJB/zG8go7xiyz4nKTXpNc3xTZV/3Vnj dplw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342375; x=1715947175; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AF6Kt3hor5s6WwdiBm5yOEm0vELRyqrn6ISDRDFqzHg=; b=aSMRh7K7S2A9x4hXi1kGIbcSSAn5mowNUSCrj49bE1HgnwVLKGLBlWqGRmQa/7+Tz5 8ZKAiHsi3NUcyLVnJN/P226E1CMF0kQfB7OxHr0pkiweIvFEPwIgZgjtLyCpP55mO3rT 9hs2vqTUaSZwYGwWeMU9Cc4T9RAodmXLAqavs0BAwsV9eTBE2E4KZOeziGir2OZEe9RE vvnrSjtaMa/egKHISBE1ZvKjXP4dwU/FD51ovED7oEjpVXzjwPnXsQZczQ7FbneQ+4CN eS2rKP3fDXW3bFBi44NDWRemUeYfLhtAG0+xu1r9pFOp+BBGq65NNS3IhC1wqcuS4x6F qCyg== X-Forwarded-Encrypted: i=1; AJvYcCUWn1rZw3zRV5vp+nN8toLD1UKUt7lkWUKrgiJB1AR8Mxnb9varYvseIcyt3VWaf+TnvKe8A06IMJrr4LAwaJoHCbVMsjeYiZ8eWQSw X-Gm-Message-State: AOJu0YxHtmoJ3ylzdzYxLsP+VmbY55PQFJBP/+ZJYgPG6JVKkjhKEdsl yMDEt+tEghco0zf2VnJd9Zr4mAkDAPVRMOmihsbnf6Xr6BPkFLqPGJ6WBFZQZXk= X-Google-Smtp-Source: AGHT+IHYQac4qaVSSW/Vl8NTk0NuQuH/xUhn9qFwAQyzRyxRuPA7rM2PVw9dIlkgf/jroTybu9x7Mg== X-Received: by 2002:a17:906:528b:b0:a59:cf0a:4e4d with SMTP id a640c23a62f3a-a5a2d55a730mr176691166b.12.1715342375230; Fri, 10 May 2024 04:59:35 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:34 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:24 +0200 Subject: [PATCH v2 01/31] arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-1-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qc= om/ipq6018.dtsi index 17ab6c475958..2d05b77201aa 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -923,7 +923,6 @@ pcie@0 { thermal-zones { nss-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 4>; =20 trips { @@ -937,7 +936,6 @@ nss-top-critical { =20 nss-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 5>; =20 trips { @@ -951,7 +949,6 @@ nss-critical { =20 wcss-phya0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 7>; =20 trips { @@ -979,7 +976,6 @@ wcss-phya1-critical { =20 cpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 13>; =20 trips { @@ -1009,7 +1005,6 @@ map0 { =20 lpass-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 14>; =20 trips { @@ -1023,7 +1018,6 @@ lpass-critical { =20 ddrss-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens 15>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B78616F0D4 for ; Fri, 10 May 2024 11:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342380; cv=none; b=myMVhmYd2hd4mEq5IvN+L0PSQ+4EGkBORJBMC2xdhOcsMU3Zm7dO1pg57oYPxX5Nf73oET3m+c9a3u8kK48T2fQrV2uM4an9Cd2Ez+l7K9B0HlmSlO43KuYU8TaeXmTkLpKiBQAtLHsMICfFw3CalGSRwmw9uTQfr+riE40+YBc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342380; c=relaxed/simple; bh=dK9DowlvEZW+LtetMDGjnQGyXMs1w8D1AnGc1PI8Qww=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ojZ7phnYyM6FAJHcBQR9ksQsi6ahte/HQLyST/spjwtUnyQ/M6V5iDMFACs0vA7DROAcIrRKuRCJ0Bu7dIPi/rtrenw7SLy5FRAN537x3GocfUp+5dp2vrUgCOfjzNQYFD5oFEsFCpaAWUT3XbOb+zhyABDcS1eD3i8loTnm6bs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nFdMUNKI; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nFdMUNKI" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-51f1b378ca5so3429737e87.1 for ; Fri, 10 May 2024 04:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342376; x=1715947176; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FWIB+Z5MSUsi87orA4+fPYLJmz3fRVrSjUHIWZpplPA=; b=nFdMUNKIcULi8AchXs5NwTUyWs1pSqlprFkBAcI+fWND9iNBMNFt1EaWCDaiCZKlCJ xBXF+14my1CLp/0J12cSbXX00gMPBftEsdRhX7y+b2u9k/IYQj2N3JinLJiLqc7rilJB zSVW+Aoy8boReQH37bYtwhsnlC4/vGu3881JQIYVvJsA15q8ebf/G1UPsICTLZ0h3v6k 4D+1arXMi2Aku+20v2W4E1UqURt/OAUCdg5NKp9kk3G2ekwtboI0mZVL0GYsLlb/fmA0 EgwWqEEmiTLRRVfdOnRdBzz5/NM+4EOcE4J4jcctYxjLGYVOVsYTlat7tFDrzoQKqfQ6 L+3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342376; x=1715947176; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FWIB+Z5MSUsi87orA4+fPYLJmz3fRVrSjUHIWZpplPA=; b=bhe8y3HxMD0nEwSm9D2ixXlrm8YDYA9eSY6PM49pqu0F6ON4gsrhHLVVhiP1WCj+8I HICbQdQnc044CZl97SCQ7Et1gPQo8S0D5mLfPMZTdBPquDORSVaGcIrdfdxZTmtrH2+M TADvNQTclM8eKOH8nnYcYwoZf2a5KvTpRlj8NNK0G0jFHfn4uxsMefDEaYUoS7/NZL1l w0Gmp10p93hBs3GftPDluIi4XT/z8/LD4XoOu/K5lRbck5uNhnOLght9nFjp0J9LTH90 zatCuV5/+2X2Jes/sm7DKDmoFeR01S32sTzisJaDx6miQ2YPna8eGcnTaskI3PXr2KTV zM9A== X-Forwarded-Encrypted: i=1; AJvYcCVSdSUcK9OxUJQZw5PmiTKMvLrpY6B26vrtKXu23gButK5ndUYNfConYplCXPEUUkrHmcoCBk3Gf5+XzqZG3CnTo+oNYf29NliotoMO X-Gm-Message-State: AOJu0YzLQ+z7i5Wk6Uq02hVh0kd2iIdkw1W5/Ur4CAcREOQTbECy2m64 XLh+L4dymfK2M2Cvkcw90xzV64udxr7AfvUatFSVWocvZKj5HkYuZ2euJ4d28sI= X-Google-Smtp-Source: AGHT+IEJY9NraJb2lQ3/WpsEb/xHayHJ22eEyP44jFR9Z5gbwOB0iKMCC69YiJw/azuD5pVwFugQcg== X-Received: by 2002:ac2:5b0f:0:b0:51c:3f4c:ef6c with SMTP id 2adb3069b0e04-5220fe7aa4cmr1768860e87.40.1715342376510; Fri, 10 May 2024 04:59:36 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:36 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:25 +0200 Subject: [PATCH v2 02/31] arm64: dts: qcom: ipq8074-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-2-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qc= om/ipq8074.dtsi index 5d42de829e75..aa93c426c76b 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -982,7 +982,6 @@ timer { thermal-zones { nss-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 4>; =20 @@ -997,7 +996,6 @@ nss-top-crit { =20 nss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 5>; =20 @@ -1012,7 +1010,6 @@ nss-0-crit { =20 nss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 6>; =20 @@ -1027,7 +1024,6 @@ nss-1-crit { =20 wcss-phya0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 7>; =20 @@ -1042,7 +1038,6 @@ wcss-phya0-crit { =20 wcss-phya1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 8>; =20 @@ -1057,7 +1052,6 @@ wcss-phya1-crit { =20 cpu0_thermal: cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 9>; =20 @@ -1072,7 +1066,6 @@ cpu0-crit { =20 cpu1_thermal: cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 10>; =20 @@ -1087,7 +1080,6 @@ cpu1-crit { =20 cpu2_thermal: cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 11>; =20 @@ -1102,7 +1094,6 @@ cpu2-crit { =20 cpu3_thermal: cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 12>; =20 @@ -1117,7 +1108,6 @@ cpu3-crit { =20 cluster_thermal: cluster-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 13>; =20 @@ -1132,7 +1122,6 @@ cluster-crit { =20 wcss-phyb0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 14>; =20 @@ -1147,7 +1136,6 @@ wcss-phyb0-crit { =20 wcss-phyb1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 15>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81AB416F829 for ; Fri, 10 May 2024 11:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342381; cv=none; b=GEs5BG+L4OgVdQe9omEpQ1qk5rw2Ntg07O1gwM5MQfT285Vdk2yKOA78Wn7syNAhaNFlKflBGtdtTamtph9WfwEyYPd5Y34gDsqUT7UBAdgNeZW/sMft5AcnlNCEg95pHh+bhgofvXH/a3GVX5kTnp3gYE0nFhL+AKc8RmbF07I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342381; c=relaxed/simple; bh=AI/6GDzleNINtkezjfAEmbDXxNIt1iLgs6smOMt1BtY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EzoN79CIga0XGonfgGZvSUWrhuUIVuxH5RRua/2+Dp6w0xYOIWmf+6vsVCgORYmNIvMxoCMiOJnsGHOtBWI686M97QMd+IQlXZQTFFUHEdxOlZK1OvNq9i3W7OAUOiKrvyqYbyqv3v6C2bTK/8gFLjRtBuveifdwQBkdSGgmWww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=alDbKK/E; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="alDbKK/E" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a59a5f81af4so475893366b.3 for ; Fri, 10 May 2024 04:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342378; x=1715947178; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cK/DjygM8+bO8NZk8MSB3Ko2HzSfu+tnWhQWu8DehZc=; b=alDbKK/EUYVoCq/CnK2KBUM42uE0P/T6Bq3dZQ2kj+qaqVjDh4dJ1w13QbCoIAnXId UA/Q+T2ZfPsj7Orq5Kn0B6loFW9VDJmlESOwFkPqcaJ5shjnIEm2NBAguK2CioCd2mlC EcTsz1E8L7KqbPd2UTLlccBeO3VMO5tSxTTLG4XaQSKvJw6aakjCWeze8vCFEaW0Pi19 ZgQXlt7OI9IopEv0h3LjRCVB4SfVKL2+H3g26BP6ZSnoFpofXt/2WiYRt8HYBznDnolo DsK2Lb51Ib2XlWwadpGmQXeouDwTgF7FvuGmkX5SnO2o2h8Kums3tusz4XHoj3UPmhGQ mKSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342378; x=1715947178; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cK/DjygM8+bO8NZk8MSB3Ko2HzSfu+tnWhQWu8DehZc=; b=bmag3zLqKykFRDeb9ZJ8nmzJNmimX46bABVL/Bzgn1M273gF2UVrg+6jZ4bXic3BIV 6akswrl9RKiql0bh50BqFqsZcU2Q0gx0Nokukwksvvmfg9y4VL2HLYX40houLOssx3t6 IWWcrOpoJdT7FQuN26H7w445h1I9J+uigOr/xkNjzpgYg2Fnq9CRN34fSnMJ8hUhsX+h TkPAK8IT0XRETPSe5LegJH1J25tiQiv8fgAEX2xHtmOoj4+G1e3ZfdMs7UKd9fN5+G54 koAKj88vPZgv+ljUMo2i1qIOn+kXmcPapsRKyVjKIBGEMnSQfgELEgcWrjBZOSe4UI3R Aesg== X-Forwarded-Encrypted: i=1; AJvYcCV2OYUVKBsyp/RaLDEUBTU+m00qPwWeBKTCYdDyVYBcOnhvw+aek0SGTswcq9AP1rhihLrCwy0irJVWmJ3NXXE9tWgEcQ73OTX6n/HJ X-Gm-Message-State: AOJu0YwUDCRgsuPGOtwkxnfOFkivrd8dFoW+SAg8dzZcv99gcYafvFtd WhwhniiXBZXBeT+oFOZd0zx9vtFL02brWWvAYFVqPsGOAI5wLUrnPT9uWvN6axk= X-Google-Smtp-Source: AGHT+IFPWY5L99y0/3UoXIdhBXt3bc2a2CoPm6/qZ8/9dr3nD5KxFPDCwXUpbTfxCKikH7sDj+0P8A== X-Received: by 2002:a17:906:37d4:b0:a59:c28a:7eb6 with SMTP id a640c23a62f3a-a5a2d5c8bd8mr184495366b.24.1715342377923; Fri, 10 May 2024 04:59:37 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:37 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:26 +0200 Subject: [PATCH v2 03/31] arm64: dts: qcom: ipq9574-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-3-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qc= om/ipq9574.dtsi index 7f2e5cbf3bbb..98c5623f4391 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -749,8 +749,6 @@ frame@b128000 { =20 thermal-zones { nss-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 3>; =20 trips { @@ -763,8 +761,6 @@ nss-top-critical { }; =20 ubi-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 4>; =20 trips { @@ -777,8 +773,6 @@ ubi_0-critical { }; =20 ubi-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 5>; =20 trips { @@ -791,8 +785,6 @@ ubi_1-critical { }; =20 ubi-2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 6>; =20 trips { @@ -805,8 +797,6 @@ ubi_2-critical { }; =20 ubi-3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 7>; =20 trips { @@ -819,8 +809,6 @@ ubi_3-critical { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 8>; =20 trips { @@ -833,8 +821,6 @@ cpu-critical { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 9>; =20 trips { @@ -847,8 +833,6 @@ cpu-critical { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 10>; =20 trips { @@ -877,8 +861,6 @@ map0 { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 11>; =20 trips { @@ -907,8 +889,6 @@ map0 { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 12>; =20 trips { @@ -937,8 +917,6 @@ map0 { }; =20 cpu3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 13>; =20 trips { @@ -967,8 +945,6 @@ map0 { }; =20 wcss-phyb-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 14>; =20 trips { @@ -981,8 +957,6 @@ wcss_phyb-critical { }; =20 top-glue-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens 15>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E42BC170832 for ; Fri, 10 May 2024 11:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342382; cv=none; b=MpHL/MPSXcdFVHXlzL+l3cPj42Ldwi7hJuethQaRlx8B0cf3tIDjMU5sTDHH+JMCQaJFxgVeCF8ghAEatWl5ifo7GOvQ96RS+YC6GR7YyDOYvS8vDsqnhbylPzFng008PGbSRjVQCOAxUOtyt+wuSaD0tOlpAYSRCmaqrgg/O4E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342382; c=relaxed/simple; bh=HdqV9I/cC9FHTK9lor056nOM+1qDwv9QeFXs5S5Hx4M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cVmkY37CoLFDGgvpZ2LZ78aQ2bSQHZEgvU5aPzoXxS2sRQpMRP+WTVUwc9AhFK2HuBvjfhTjhlWRo9ipAFGchz0t9Sb1NuOC1vkAahN3cCN8SP4yPhC+4yOyIyDkgw7YW8AN74/oc0qYolIoNxLfTcE/Tfsltd/cB+SmQ/mygqU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DL/bf464; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DL/bf464" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59a0168c75so506484366b.1 for ; Fri, 10 May 2024 04:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342379; x=1715947179; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LNYQpQoUGdmagV0V+he0KHN0CGNQAiBlkilmdZNLYvY=; b=DL/bf464ePChsAHNTNDxvDTJjD7aEglQjHG9iR/lJGWo+g8RhlyDrTe2Ybx+ODvEfE giSHDG8zrkpJOTmzi05dKA0vqjKoi6ZPAxR/nUsZA215WcBgdzXVO2gPUfLDPcpbiWSU yT0XzTwodr06vRI8+ARyJ4Dwe6X1lC6kLH8agkYPjhL6R2h3Rlq40Z5/IxJBNz3TOw/i r5+kM4ZfUVK4zYfvXP63W13iOaf9ykZ5n/oB1JDQH/rbRsSZawCgjtGyc8yswukIZLt9 lD0sfAYugJ3o0CVIu6DX09pA1cq9s5Lwbpy5rNy/B70hPrgIQvJk2j2XR+fUDS5qcJqc jjoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342379; x=1715947179; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LNYQpQoUGdmagV0V+he0KHN0CGNQAiBlkilmdZNLYvY=; b=vtngpUb/IRJHazlRoirvaz5sc+mlpUGKKwNrPyp58cAzWF72jHroI3dPzEXIt3P6DW 8p1vuyCHByAQPDAfho9ycnAlCyWM2iEWOZ8FtLUC4dwjrDRreC0+yqy9P3oef2PrWM0G jOwmEsmG8Xc7DVUlCQ8oFa3qh3OhYsFeILXNPZGU4UWO2XzXEHzyovDnH7CtX0DLbG0q zZFNWYHBqkM50iC7cWBWpeIvlk8H8mW7s9cgVrz4ylDKliVLC4tCWVLczpxQFlAwo8ZO 5UKX9HiniBpQ1GvmpQd6qZrlPbF2g0DbnZg+RfG4X06oMbUBZ3yOwH4xK+6x1M9JoKbn bgpA== X-Forwarded-Encrypted: i=1; AJvYcCV8Qa6qvMf1q46/ZoKoU4ZNkhPpWvpvpDpcS4HNnU2mJQa2Ga7UkZbKKhFk8ZrcfxTxWX7FjE2Z6KmlKNDOPwQa26vlxlWnX+rWvR4L X-Gm-Message-State: AOJu0YzPLc92LPVo6fgW98faiFzf/w09lL+tIm7T0gMc7/4HOjpc4ak6 lNWMFV8tmj5sxrL5gSE9Uonv8mPMNJiKxgqAOcpFVxVKcf5qQgQR+VVGkYFdhE8= X-Google-Smtp-Source: AGHT+IHUm2VbNlNU3jecKcX+NBteQPyNZxFTjZkWqSRBi8qr0KfjbkM+Le2/OnaCXYfWedwkuUSl+A== X-Received: by 2002:a17:907:1c26:b0:a59:aa3a:e6b6 with SMTP id a640c23a62f3a-a5a2d55eb33mr214190566b.18.1715342379384; Fri, 10 May 2024 04:59:39 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:39 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:27 +0200 Subject: [PATCH v2 04/31] arm64: dts: qcom: msm8916-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-4-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qc= om/msm8916.dtsi index cedff4166bfb..1fa1defc38ea 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -2626,7 +2626,6 @@ cpu3_saw: power-manager@b0b9000 { thermal-zones { cpu0-1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 5>; =20 @@ -2656,7 +2655,6 @@ map0 { =20 cpu2-3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 4>; =20 @@ -2686,7 +2684,6 @@ map0 { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 2>; =20 @@ -2713,7 +2710,6 @@ gpu_crit: gpu-crit { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 1>; =20 @@ -2728,7 +2724,6 @@ cam_alert0: trip-point0 { =20 modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 0>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6032817088E for ; Fri, 10 May 2024 11:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342383; cv=none; b=ClsWj/acx4FlsO/yG7sQcpM17vk/zoP3K7wZDfaRvBFQKfqyR3hk4dIVNoT6yAQho6kLa94B2pEyR0aY9XNyllkMjr9xnpwlyE7ShvcwmKYftSa9MX0A0Yv57HP/AOsEjZasN9Ul13Uu0RGtiJRcqSkASGD4clRcvT6hQ9CfO6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342383; c=relaxed/simple; bh=mB8GgOOV7Biwjyidpy4/BPgdtAv/kn+KG8YTxBcyRsI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G2dN7gDXh5A1o8ldmb/TPwb3eqbTnTAqJxgQnOtjqcPTblb2b/CjLJgwjQU1ad0XTyPiSm+7nKOztHH2Elel2qOmJzmWR4HsDqUgkmCAFzVPxjZ4Wn9byr/1YkDvactPCTEZiG6L6Ak0RoV1K+OAsIe2HiKp5BxrezjCEpqQCUM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CiROlHh8; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CiROlHh8" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a59c448b44aso500913566b.2 for ; Fri, 10 May 2024 04:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342381; x=1715947181; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8OG+JNgGzK/aqpupcVQEj46I3a/vANHttWVBqlAf0ww=; b=CiROlHh8jwBgCocA+ot740tZj4M4XEmN+jGoAupVo1B5W/teSH8zvgE0y/s27vqMQf MZSG/zJfoXQjiM1kKpx4xNbbfIg/gLWpUpQzAL+DmoxNrux4q6wdfAlJXnzUHKroe2Hv lQv1o4bpmXlOGS6Z2T3vCf6x9BqwqfPHbd8wttNHu64IVrOHqNzUT3IcBrPR/dvENP0R HMRmvVBIG9GZqCm/vIpRz2+GlHP6Kl6Vo/gHdBnnRNIHC8VDRnw+qzvdmK99rTW7O+4B 4cgKMPUiFn1DBae+UNiUhcHj1TpORg+9IPO1INCHqI8F1OE7BeG6IVFuivQolQnrbJtB QDbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342381; x=1715947181; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8OG+JNgGzK/aqpupcVQEj46I3a/vANHttWVBqlAf0ww=; b=dKjdlGl22IRRwaHUOMx4JZqrunC2k8A4N3LER+lwoG2G0+v7BSEpYyayQkrxcd0UOB l2D1djln/OiiVO4hIs0RyjfCP0LTMmC7SxC6nytnHNgujWOM8uu1TCDXokNktydeYXb2 52XLNfQCvIOar6YxD0OCSFmn84pyjD9J3yn/Ip74z2CQ4i5CEF2dFJb6W9JPs+TeebjK Z+0FNc80bjeZG0y7CawCtc6W684wYI8mZIjZoPpsKvWRNu4vHGvORhcEKH0Fbb+YMRs9 84EzB9PVpkYxp5e1/5ZunZWPEU7lOHJcsHY7LFnhcy4jeQce+W1cvnjbHyJg1oOKiuAx +K3Q== X-Forwarded-Encrypted: i=1; AJvYcCW3n2swfXB2XECJUHrAmnSoP5flbDJL0XlJ7C2XpVWWhNYCSs1No4AJJvdIxyZnPL9ovZZBXfUoNtKelOgOBPxP87M0PajXRUxM2LkP X-Gm-Message-State: AOJu0YxhfOWSng1m6zqtUUKsDkFzwjk42u7UMPX659/bPdc4RIoYdJ0h FTZQ6bTkFAvzBE8awFTTxq6t2sq5sr/xT6fmEwMo7ncrnfCNpzUvOc9UOzO6+Fk= X-Google-Smtp-Source: AGHT+IGikFhSPQpUN0aelTz1pV11rD++e8fWx3itBhzAdPXY9gwx0GU92QGUHaJTIDtXVdL4rVm/+g== X-Received: by 2002:a17:907:7893:b0:a59:bf43:4e43 with SMTP id a640c23a62f3a-a5a2d58a672mr143187366b.31.1715342380910; Fri, 10 May 2024 04:59:40 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:40 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:28 +0200 Subject: [PATCH v2 05/31] arm64: dts: qcom: msm8939-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-5-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8939.dtsi | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi b/arch/arm64/boot/dts/qc= om/msm8939.dtsi index dd45975682b2..24f3bd197095 100644 --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi @@ -2299,7 +2299,6 @@ apcs2: mailbox@b1d1000 { thermal_zones: thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 5>; =20 @@ -2330,7 +2329,6 @@ map0 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 6>; =20 @@ -2361,7 +2359,6 @@ map0 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 7>; =20 @@ -2392,7 +2389,6 @@ map0 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 8>; =20 @@ -2423,7 +2419,6 @@ map0 { =20 cpu4567-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 9>; =20 @@ -2454,7 +2449,6 @@ map0 { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 3>; =20 @@ -2482,7 +2476,6 @@ gpu_crit: gpu-crit { =20 modem1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 0>; =20 @@ -2497,7 +2490,6 @@ modem1_alert0: trip-point0 { =20 modem2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 2>; =20 @@ -2512,7 +2504,6 @@ modem2_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 1>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BBB11708B9 for ; Fri, 10 May 2024 11:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342385; cv=none; b=Jyk1mOZabMK2MpPOASKJwJLqAsI6vEsmwwyw6PhQszQc7Kl5E39BRJSOzAam0qLh8dcs3PUV3JBgDcSF0X7vGH5tEaf+6ikKdz9Q1UklubmWVzij+qIHK++EP6O9hTnXpBOSWYXHSCRPjbYfh8gDNBiZR+nMl12MgwwwJ3Ioudo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342385; c=relaxed/simple; bh=KZTGROaWinyp8KKqjpNmxxuc5q/IqTWQs6Jwq7SF/Z4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p9NrfZGqPihQc7xJR69wJDDuAHt3vg+sXEUgfpgZdmzNjCAu7fd+I22y/tfy8snlUaen0MiE84qz/LA7mxnqiLOTUqayNY/FDECsvd5VFUQXZvKQa2ZemCpZAC3aUXyyUKne6meWlvuay68vBge1i3xpc6mdOiT56TQv1ySBjbQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vwXJMVsW; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vwXJMVsW" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a5a157a1cd1so479306766b.0 for ; Fri, 10 May 2024 04:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342382; x=1715947182; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=QX/jm4cX7d1+tOu2d8ujXyYCSTAjlQweFsWO3x+wiG4=; b=vwXJMVsWNYZQOJ/8NcjmbnBTBApzNqFhGkloapXpzsamkezH9voNY+vNnoG3If3eRo S8tNmk4VF8v6nBBDnrDqjlhLjIYYlNW/4WUZInKhN8KQ6nGJn2Vub27UBtHViUMl47gL LzHz7cy98nWPux3CkKZKHejnwSMQDwg4up6Nd5vaGDCGPuEfdcp2vDoj3G+9gF08UDXY LVzg+ipqnrkrHczC9rQn91yuWAJ+n/ksV6fjF6fWgrWMCWeB/nqJubXX2vI1Nov/20AE LX8+0tkjcwncNnRdZe6gaALXhXd4LSVZCsTp+0lAXcHqoVGn8I4QC3zMsvirVfytrm+U A/XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342382; x=1715947182; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QX/jm4cX7d1+tOu2d8ujXyYCSTAjlQweFsWO3x+wiG4=; b=QX8hb7atkjR0Kk1wdbRQ9lw1Lm/HrKxSFKNeghI6UDZgf4wTM1DWT7dAQGpBV8Cxw+ OTxGRL5BdSeUSBoDdRqEIpIJt/I82uug7uqs8JsBqfiY0YcT1ge6fwMkiV93Ngy9PjNj YChj/IuL6DvZAMRSEmxrEim1LQvBb78rrQLFlnmuYhjRPPFxt5pXIDjHfcDB6majSNtj uhydls5Gd6zequ5tJzEwbjrECgalexuUIz891Bu1RC2ac2ihPgb99SbvMiYjTtPImrlv t3XCH4S/TgVscedpbPFmDc9VOMZ8U9LwH1XHlWOF561ThSoQ1+hVycHaQRGNhlG13L82 62sg== X-Forwarded-Encrypted: i=1; AJvYcCVn0Bp3SBPy+41oRBew+laIuMiIDcbzSS/66+Ssci9PX7+KaD6nB2ly0LFJOC6rt2vTT2ptDZBXOK/1L3rEV6IvOHqHQ+P148svWM2M X-Gm-Message-State: AOJu0Yzgo5hJSbixqyeB/sGEKZnXgixf12RqhiqonrEMuFcTE9t3eprc Qdtww8lPudKl41beZ2yZSvV5p+3jx2L6wrPWDjw2I5Ico48zlt+GD2xxWeP0su0= X-Google-Smtp-Source: AGHT+IF/moD8NiQToB/ZLMDoTTKrpXQPP8D5Li1oB2VxANDbquQpZD1qIMfcgu08lWoyjUec7EOMeQ== X-Received: by 2002:a17:907:7fa4:b0:a59:9fc8:38c2 with SMTP id a640c23a62f3a-a5a2d58550dmr206920066b.31.1715342382100; Fri, 10 May 2024 04:59:42 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:41 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:29 +0200 Subject: [PATCH v2 06/31] arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-6-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 17 ++++++++--------- arch/arm64/boot/dts/qcom/pm8953.dtsi | 3 --- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qc= om/msm8953.dtsi index 5d818fe057dd..92c86504d6f3 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -1968,8 +1968,9 @@ q6routing: routing { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens0 9>; + trips { cpu0_alert: trip-point0 { temperature =3D <80000>; @@ -1991,8 +1992,9 @@ map0 { }; cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens0 10>; + trips { cpu1_alert: trip-point0 { temperature =3D <80000>; @@ -2014,8 +2016,9 @@ map0 { }; cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens0 11>; + trips { cpu2_alert: trip-point0 { temperature =3D <80000>; @@ -2037,8 +2040,9 @@ map0 { }; cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens0 12>; + trips { cpu3_alert: trip-point0 { temperature =3D <80000>; @@ -2060,7 +2064,6 @@ map0 { }; cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens0 4>; trips { cpu4_alert: trip-point0 { @@ -2083,7 +2086,6 @@ map0 { }; cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens0 5>; trips { cpu5_alert: trip-point0 { @@ -2106,7 +2108,6 @@ map0 { }; cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens0 6>; trips { cpu6_alert: trip-point0 { @@ -2129,7 +2130,6 @@ map0 { }; cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens0 7>; trips { cpu7_alert: trip-point0 { @@ -2153,7 +2153,6 @@ map0 { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; thermal-sensors =3D <&tsens0 15>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi b/arch/arm64/boot/dts/qco= m/pm8953.dtsi index 1067e141be6c..64258505f9ba 100644 --- a/arch/arm64/boot/dts/qcom/pm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8953.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8953-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm8953_temp>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC206171646 for ; Fri, 10 May 2024 11:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342386; cv=none; b=B45geNndUnBI/V+OIeFkgRgw3/RW70eeQyI/askhMPdxF2tlVWK4OYHAQWiJwxT4XGphvk7bFrqm4nKwd5obDEaJJko3MJvzAR2Sjhl5KAJIIui44Am/pE9m36xi98gM0bt8v8NfsjFAj39o4/UkcNnIcYEzCkSg57wCtW/Hvi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342386; c=relaxed/simple; bh=Lc/qZcb1UEvRNkKjlc0ptaH3IPwvEDwKSh3RJoXh43E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OuZeymT1yAYI+dYu6TKQHvRGRCqEBd93J1XVN5EvP8kC71uj/VKSKPAAZdhzpOzGkd7Gzgww1qdpPE9+NZXGULD2VGtmTIWznTEYTd0L6VNCIVw/D0KkaTh5Dp/0+APL1hUdt8yNouLpdjzDjaZGGZ80gH55b2VkohFIdvsoios= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=U6V7UgHQ; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="U6V7UgHQ" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a4702457ccbso495382366b.3 for ; Fri, 10 May 2024 04:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342383; x=1715947183; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/2FFq24pdHCjY5SSKH0xO6GPwXsrqMdD9iEeVpRzJjI=; b=U6V7UgHQ+1VBuLjw5UP5rRKMI7kYo5a6bWjrw7l640+v1L48/ZGyMojkMnTCAWXnib 0B9w8VRlneeunnRcF1vKOHpQ6n0aztM4dMbF02p3JED554e/UW5KD8/rUqgD31VG8jCT 7WweJWkjj8thk5klgtM0hqphXzyIBMF7zsYK9zqfDLttblRuPwzPfsWnxtmuA2ijUzJB JN7YzhTR9jQHRg8awIx2Oeu0wX8N4KXP3KL7erAxXVe7yuEnpzyC3swQZqSMZR7VD7HN qpZ08kAjKtOSXT4kU2MQlcHlxYnrptM6Bjf7E75IZm4okW2VkFaCO1iWOHt+TXUTIoEr FixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342383; x=1715947183; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/2FFq24pdHCjY5SSKH0xO6GPwXsrqMdD9iEeVpRzJjI=; b=HfSTkMeSa8yHlUZywNjR5hTitiAoa5jg6Ac9VtV47qB5QqoCjNDztfkHHByMDDVdgU UEp7U7TXcaUFYlxVn2/bd8hzfV6SAZfVo/frINpgrnVjP2QDDX7Ti8d4OMK+pVm28c6y 40RXQed3SoJc6/6aqrgULeY8J6brN/4iYwIeaN10oQydVjqTwbi7pbwQsuO2stspdy3R rL58XG13UKSLU7khpUBTMBkMVnoA8YHCPeYDIe6eN0ZMr0zO7C2Em1G7GLyM95MgtS8Q eV4k+V2FPwPz0A+avc8ECQRRKLSRZOoYHj71RVkxj/87Fsw1Y/kX1jmYklNCF3vler/N iafA== X-Forwarded-Encrypted: i=1; AJvYcCW9RHYAML4jux6S8IgT1NwP/PYX9JI04FEaoFpmq936OPo4gAlphmC6vrkBKM6oiIGBXb8UozoXmcE1QmhlYhoGpbFSFg1ti41OXHav X-Gm-Message-State: AOJu0YzynrFMNZdDGBKtfsjbrG9fZmn1fIg4dpGEsZuhhVTRwmT3TN6R EFrf+Y0O1RILZBis8Ynz6tLiC+pa7gSL0WFrhUZ+aVclu9gdydY868OR11VYCHI= X-Google-Smtp-Source: AGHT+IG20lZScTzx7LRtP2dXQZ7+d/7vV2qeN+BFTt/Ra474UYjYw7vgv4MprgEqjfHOtW83zVQhGg== X-Received: by 2002:a17:906:eb46:b0:a59:a85c:a5c6 with SMTP id a640c23a62f3a-a5a2d585996mr169003366b.22.1715342383341; Fri, 10 May 2024 04:59:43 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:43 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:30 +0200 Subject: [PATCH v2 07/31] arm64: dts: qcom: msm8976-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-7-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qc= om/msm8976.dtsi index d2bb1ada361a..4e4620de7f3c 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -1124,7 +1124,6 @@ pil-reloc@94c { thermal-zones { aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 0>; =20 @@ -1139,7 +1138,6 @@ aoss0_alert0: trip-point0 { =20 modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 1>; trips { @@ -1153,7 +1151,6 @@ modem_alert0: trip-point0 { =20 qdsp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 2>; trips { @@ -1167,7 +1164,6 @@ qdsp_alert0: trip-point0 { =20 cam-isp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 3>; trips { @@ -1181,7 +1177,7 @@ cam_isp_alert0: trip-point0 { =20 cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 4>; =20 trips { @@ -1205,7 +1201,7 @@ cpu4_crit: cpu-crit { =20 cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 5>; =20 trips { @@ -1229,7 +1225,7 @@ cpu5_crit: cpu-crit { =20 cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 6>; =20 trips { @@ -1253,7 +1249,7 @@ cpu6_crit: cpu-crit { =20 cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 7>; =20 trips { @@ -1277,7 +1273,7 @@ cpu7_crit: cpu-crit { =20 big-l2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 8>; =20 trips { @@ -1301,7 +1297,7 @@ l2_crit: l2-crit { =20 cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 9>; =20 trips { @@ -1325,7 +1321,7 @@ cpu0_crit: cpu-crit { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; + thermal-sensors =3D <&tsens 10>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 907E1171E41 for ; Fri, 10 May 2024 11:59:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342388; cv=none; b=ndhOIasKj8hPxqSSBRQxZOccctqzpqw5e0aLgDZPfzp5TsTbj46eafS5clZwZIRyton8vB5WiEPm53xanfr5pqlnwCJ248uPoJvXfwR2O/U6xYtnjqiaVqiUcaS9oBTSCZZjCrMkRXQPyCn++klSCxM4t/q42/uJIDmofpyBqAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342388; c=relaxed/simple; bh=0JBicso3SWIZ4mAFQpIvwNHhSZpkk4EO9ADInwiGK+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dY1pyHKT+NqF80/xh36H8x6NJYzY9IeWfrJYnGtu9l6l0qgXi8EqtfD2gFj/H8lsR8keA2qTh9ZTgO9R3WWCrxXq2rX1CprrL3EYp0Ibzqxv38q+oD1tAtJVeUxLsLszk57QKWyw9sVicNRgkKs5Wm4uF3AiS5nGCwBUs+nQdTc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dxDodSw7; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dxDodSw7" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a5a157a1cd1so479317166b.0 for ; Fri, 10 May 2024 04:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342385; x=1715947185; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Xus5xrFsxqYjPmZuFNjHFFx4ZVK0BGErQ8h6vfpBHIE=; b=dxDodSw7ieufgc3s6gzKTYb3Qzxk4D7BiZqGB/94+xU13ifRNT7xtpCT82srbCzg2p +abiyjn6oh4/N3Xgdto5wQ0IAPtpQlL1NlBor5ZIozBVIUV1s9yssiB4xn06cAzj4IhP LX97PQ9LqyFhrh6SGPpsZr24dZ9eW0mQpdBPdMKWhxzRseL701awrPeP00BLSKVs5fA1 h71ny6So1NLb6xu/ad8wHIfv938BBs2c6GSOR0PioxBJ5NIve3Lq78jqzBdiWttjAeZv aJmbx3JNaDhswzoxGwwIw+5KzlalTnfBb67rNpsUYK9qJ6SeeUOCiqO4JO/3bhMZgGie 2+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342385; x=1715947185; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xus5xrFsxqYjPmZuFNjHFFx4ZVK0BGErQ8h6vfpBHIE=; b=aYyDFA71p/WTQMbq65ZNi4lTptAfwKkDxdP61woDRpZaeU6sYBZcaJwXYHhG6RcyZB +qAlsRk7xh7keV56jrxLGaBMPSb8bjP0h7x5YY/W7zU4XdpHlkiDHDbBosIE+8KAsGlZ 09bs/wWvjPbvEy0zjmR+Faz8mssGvLQmw5erxPZQPX4bEWcUkDmL2BtjSTj9dHYf6ixy UXxS8mvD2DSKZ/0OxqvpKo1d+8of8P6MbPOP8fMUTJsf0+h9pa28vfM2+W1sVxl2sY0T uwFXGgK8IQxbXDAfXaxjw3DYTjo/e5Kc/3qeKY3jmBLGc8dwx+JZsKlBiKD/BTkRsAvA 23gg== X-Forwarded-Encrypted: i=1; AJvYcCUhdZC4D2X0V605Wo50rpMc7DUzmzZ1gcHfXBTAestGTh530JC4kdoNuKYPkXUONPz17CY7BSclQiaHC/LM29ygqCxa3clmzgh0R0jH X-Gm-Message-State: AOJu0YyryoUZ70fqrVanMuL7f41gsIScTmyYElqoa2CbkEuSxF11CsGv yxkkvQxvhkMkQyZoUFkaYnp0CAuwjpQv89qMWzm8smC73obkvYCT9gRWnMZOelU= X-Google-Smtp-Source: AGHT+IEqlFdMYWLnlOJXoHWqJJbOTHT2BEU7f2VZzQLd0tRT3jWiFHn7fR+Zj/oiVSUO7mnpm8vJ0A== X-Received: by 2002:a17:906:f6da:b0:a59:a97b:5aff with SMTP id a640c23a62f3a-a5a2d680c8fmr161864366b.73.1715342385122; Fri, 10 May 2024 04:59:45 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:44 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:31 +0200 Subject: [PATCH v2 08/31] arm64: dts: qcom: msm8996-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-8-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 14 -------------- arch/arm64/boot/dts/qcom/pm8994.dtsi | 1 - 2 files changed, 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qc= om/msm8996.dtsi index 8d2cb6f41095..4be294f9bc40 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3654,7 +3654,6 @@ sound: sound { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -3675,7 +3674,6 @@ cpu0_crit: cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -3696,7 +3694,6 @@ cpu1_crit: cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -3717,7 +3714,6 @@ cpu2_crit: cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -3738,7 +3734,6 @@ cpu3_crit: cpu-crit { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -3760,7 +3755,6 @@ map0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -3782,7 +3776,6 @@ map0 { =20 m4m-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -3797,7 +3790,6 @@ m4m_alert0: trip-point0 { =20 l3-or-venus-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -3812,7 +3804,6 @@ l3_or_venus_alert0: trip-point0 { =20 cluster0-l2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -3827,7 +3818,6 @@ cluster0_l2_alert0: trip-point0 { =20 cluster1-l2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -3842,7 +3832,6 @@ cluster1_l2_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -3857,7 +3846,6 @@ camera_alert0: trip-point0 { =20 q6-dsp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -3872,7 +3860,6 @@ q6_dsp_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -3887,7 +3874,6 @@ mem_alert0: trip-point0 { =20 modemtx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qco= m/pm8994.dtsi index d44a95caf04a..353e4a6bd088 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -8,7 +8,6 @@ / { thermal-zones { pm8994-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&pm8994_temp>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D3B9172763 for ; Fri, 10 May 2024 11:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342389; cv=none; b=WJWgg7XlE/MmDbMNQlacROC0HDMGWWSTK+uFw/yJ7Q8eGboGB24xZs86KoTpjC6JjYynUxdGgq07tVr8EaWoewj7clbd5HJZ4q9qFz+96B/p23RSrf9Ay55ZVlwvXyiIKCnNbO6GieHYvlwITquq9LtCpAcseRsetZ6JJhlwtAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342389; c=relaxed/simple; bh=dPMuQ0ylNI0a5NigtOQVSMDVjzVT9ODCDReELcHdOvw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rILPFLpetQr9zBeJCYT95ZwJd5vHywLdJoamsECOQIU8T4WJL8uWzgsYD8hT0X6Pgfuruww5IJUsFdU4EjdWkqE93WUyqE7rjtsSmHnh9/DYiCGKbhoWb2nX3E0r981eO8neAKy1fy8xJ9o7lDcv8/+eqEkgxnirY8SUhs2c6Kc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JiE1VML1; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JiE1VML1" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-51fdc9af005so3106551e87.3 for ; Fri, 10 May 2024 04:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342386; x=1715947186; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YDcdiULGO3VMyvdeFdkqY9Rkq8pXSaaNzxtQ5BbPA/Q=; b=JiE1VML1UrDM0Ygbj5V3bOxvSEUNm9igog16pllqvgWy/S3+edL/EIqAC1u/HuM+a1 wRkGImcHhc8jfavFYy5xUnBz3mjg30rfYeqVMrhVGHkyZdjOFK+duhdKz5WcHlexHxmB 0R/yUtlood0f/sJgToejuEDjUtqXP0gfHhApKPa4+moQHLmsOKbsfsCT2YJpXKci/WIX 3rOb/NjHH/5vMBKpX8qpEWEMCqXf3ssv+ICaqthAaopSSflzIntB8wl25jOwYGgOn4Ng eIYyFK+Fd8GxvABkFPkKpglNr5sp2dmvV2ZcbDcLzvFbAnwJPkOgpju2/EdjP3FVW7nz +1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342386; x=1715947186; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YDcdiULGO3VMyvdeFdkqY9Rkq8pXSaaNzxtQ5BbPA/Q=; b=HKq2pt14WFUTcOnEZToTAx82RE+d5EtNNoAZFCk8hG1u9JUrOIFj2kr7AlLW27zMf0 yHaskv8BIF1iMWTLG/C3OO6Lrq0rcJROUE1lZxywFmlUOTirJsd4evf1blld3bWS1PHR 3k5NZ4r0vMkeqUgFvRx35jAH7CCwIyIgrAkL4QYvd9vm6LcRVkHvaJCAmYGGtK3Qz5ol gYcqO2/oDqNIjk1JEq6K1NgGESLiwmjphHpXKTzQoXMNgj3Odf6J7VQ2hiiC4pOd0+r9 G8PS/tTfOcXOdUj2L4Nos5cykwxdCuf533hSlWmpd9sP+Dj+JXVjjj1WtIcIFJznDnUg 5Z7A== X-Forwarded-Encrypted: i=1; AJvYcCXi/9Udp+S+Lf1acLUAXJQ8L5RfkaLn1SZ6J3oWK4IpKdozMzSGqttz738hyl6LaZSH6GQOhAkd3xtSVy2NnkGyP7J2CGrn9mOH4E4w X-Gm-Message-State: AOJu0YzVe7loDoiM18d73ElEIEFNKqvpLly1pbLmwecJgI2MDMGKuf4W kdzbWMjX88qFI6X+0y1wquLX6DQPcMAU9OxIOETqzhDKII+nG9zFeSrH9cZtMo8= X-Google-Smtp-Source: AGHT+IE8reF2rvnSOauEKYFYAqbIPPgXCfSVmvV82zhQtU3WrwVDsXK2yejQb6pBFxqDbkVqws2GmA== X-Received: by 2002:a05:6512:3c9a:b0:521:7846:69d3 with SMTP id 2adb3069b0e04-5221027858amr2420292e87.55.1715342386380; Fri, 10 May 2024 04:59:46 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:46 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:32 +0200 Subject: [PATCH v2 09/31] arm64: dts: qcom: msm8998-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-9-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 19 ------------------- arch/arm64/boot/dts/qcom/pm8998.dtsi | 1 - 2 files changed, 20 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qc= om/msm8998.dtsi index d795b2bbe133..13f3c3ee2511 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -488,7 +488,6 @@ slpi_smp2p_in: slave-kernel { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -509,7 +508,6 @@ cpu0_crit: cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -530,7 +528,6 @@ cpu1_crit: cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -551,7 +548,6 @@ cpu2_crit: cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -572,7 +568,6 @@ cpu3_crit: cpu-crit { =20 cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -593,7 +588,6 @@ cpu4_crit: cpu-crit { =20 cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -614,7 +608,6 @@ cpu5_crit: cpu-crit { =20 cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -635,7 +628,6 @@ cpu6_crit: cpu-crit { =20 cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -656,7 +648,6 @@ cpu7_crit: cpu-crit { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -671,7 +662,6 @@ gpu1_alert0: trip-point0 { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -686,7 +676,6 @@ gpu2_alert0: trip-point0 { =20 clust0-mhm-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -701,7 +690,6 @@ cluster0_mhm_alert0: trip-point0 { =20 clust1-mhm-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -716,7 +704,6 @@ cluster1_mhm_alert0: trip-point0 { =20 cluster1-l2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -731,7 +718,6 @@ cluster1_l2_alert0: trip-point0 { =20 modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -746,7 +732,6 @@ modem_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -761,7 +746,6 @@ mem_alert0: trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -776,7 +760,6 @@ wlan_alert0: trip-point0 { =20 q6-dsp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -791,7 +774,6 @@ q6_dsp_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -806,7 +788,6 @@ camera_alert0: trip-point0 { =20 multimedia-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qco= m/pm8998.dtsi index 3f82715392c6..3ecb330590e5 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -11,7 +11,6 @@ / { thermal-zones { pm8998-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&pm8998_temp>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 302D11708B9 for ; Fri, 10 May 2024 11:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342390; cv=none; b=iDiUHgUSJDfKT7+G5y2+gZ5nKEG/lWLhlC3kX+72xqkLMcB3jZcJYET4J9NS/mjr/wuJt6w9ShJdRyvibOz6oXkYRDQpsXQyT6t4jz1iYJGWsgJ3L1SBz2o/Gckij0PLS/cIXUOgtBZqrfuqQBJcGQ24Ui0v/6DW/m7jzggPIss= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342390; c=relaxed/simple; bh=F6LVDFMYAmM7JcjujCIXWZBP4TC8w8mBfjUWcwOJmNM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s1nf3lV5jv3nphN/b7EXx5y3FfcVc44pMEdkwVbRvLnd7exKP6g/jy0E4w+6bVTrsrak+5rGXtrlqUt4bruqUSXyI1tTngwEzpFE2LX04+1zXnMYVHlqR/bXYZFXx6J35RGvM/ig11Ynkme+GPEWcqLAhP9/Nx1Bgs4CLJTJpmA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hoIFCxP2; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hoIFCxP2" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59e4136010so478046466b.3 for ; Fri, 10 May 2024 04:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342387; x=1715947187; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=1YCAIvPNRaWCiuoixyBepvQGa1SGEK7bmvVw2e9ptmQ=; b=hoIFCxP2mwmnZNeX8Rr/24MBC3D0tr2YbnomDy/iO+qPaFb78U0cSpgc24VRABU/vv pTdyUv7cxczi8yamc0uNH+e8yTX7w7xHrvs/ixy/EgfUqsUdki/u7mfIW4O0L1bI5L3g jJJFnFP60mrZkKyXpSfSKbO+4kJRs5Nts85j1lFA6Hydw7hCrwn3o/0pwle296HqnSEn QLFjOgLvPzqnrkmp+aqUIKhB6AS8uzpbqyp8eWmZ+6OF/BiyX+7rnwrv9UX9wZeTxxZW 0riFdfmZsTGiEJUi2CrHUTU8xAkXVK1qV/LvZWndVelll6N8soRqug12qRL5b0A2fAw9 svng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342387; x=1715947187; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1YCAIvPNRaWCiuoixyBepvQGa1SGEK7bmvVw2e9ptmQ=; b=V5BNWi6YlscP3AE4HtJAoxSYFSh/Vw8PKhPB4mVZYDLNvbXHjhwLYmVUVhAAkE5DdT CyJpOca6OpOVyreWAiwrRpfEoPuOQv1ZJ5TbsfZKtIRXBpjdTzP+kXJnfoM2L5Bi4Eg0 wGa5c2uU8dSvz2s4nOeylyzoKrRTFV0QqyEwvbFp6Kv63WCMLTLb7CllO8crUsZPFxc5 gYUVtd5utfaaCij2kTN0Z8f+Inf5l6N4kQEilGV6oAOXxC/+aLQywK3ZXujsKtJWiaEA NFtEwyg6QJaU3hjDayZySxlSOcyJwnWqLxwqcr4J/IlHxnhM6wi4iH0/eFSVKb8wZT4b vY5g== X-Forwarded-Encrypted: i=1; AJvYcCXPcRbU+a9FtKDZHnnKuRJfqzmQaqgmflFDhlzqycAmExzlDvZyrMa93G5LMY5Nj6NGPV+lnFkJ1pXzmlMqxlRmDzGUq9dnRJPht5Aj X-Gm-Message-State: AOJu0YywGFnJfsUEnaMlUjnZ4mx6rq2bmCSpQj3EnkfwsLXaRc2cs+3w Lbh9oBCIzVn4tkgbd7hyG4AaCbPOfEdqYO7E5fT5ACJNGCTk7+LvCZ53PH8uUPE= X-Google-Smtp-Source: AGHT+IG1bLjKOe41AMRsBmA5uo/6L3/L2uOpaPU9NQ+8MTiil1v575HvVjy/jkMYVI19AfvIYu4f7w== X-Received: by 2002:a17:907:78cf:b0:a5a:1b60:7cf8 with SMTP id a640c23a62f3a-a5a2d53af8dmr143767966b.15.1715342387555; Fri, 10 May 2024 04:59:47 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:47 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:33 +0200 Subject: [PATCH v2 10/31] arm64: dts: qcom: pm7550ba: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-10-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm7550ba.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm7550ba.dtsi b/arch/arm64/boot/dts/q= com/pm7550ba.dtsi index 8b00ece987d1..853a1d83a7f0 100644 --- a/arch/arm64/boot/dts/qcom/pm7550ba.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7550ba.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm7550ba-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm7550ba_temp_alarm>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A115172BD1 for ; Fri, 10 May 2024 11:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342391; cv=none; b=hhSU/HHVKDXfy8ufFeThu/ILGLYlNHmdJUj1Nz2GYC9rKmB0gsAynUBjH4J7N0BxIC60HJNjINbiQ77VZyrcgN5QKL3DC83QRihmQ3IG0iQjYf0NBtnOvnCyu52t71Ic3Ay/kevubEKnWlm3gZML3b6HzpDTO3X9WBbw5eN8hbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342391; c=relaxed/simple; bh=KAn+kavu3FsHnvY0/+DTDzbjChWpqLzdK6RSLCjGkL8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ho7qloIPRqdSqG8vv8+94ehNLq2zU1NLo3J2khb45JXdT4RFZwuUuHCaarkHLqagoTuhFuJGEEo55k42rybmGsseWUuAYIVIBu+rinhBcV81cISY/0NI2Sr4++9WLpe7IC+PmZDzAlCxYFD29CpVbdI/mLVySS+DMI48Kl1UXug= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=chaiPx2t; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="chaiPx2t" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59a5f81af4so475958566b.3 for ; Fri, 10 May 2024 04:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342389; x=1715947189; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=upnYxftIQgqA8SAtWvBXJGkDwPY3ijyI82SPZyS/G88=; b=chaiPx2tqUs2zKn9q0w5aorbYdl6fVW2gIHZLFj3eu0gzxS8YOpmIYkIn1jft1VWUN 9ra31Ei923w57Xm5arrqhuwxtbtechvcWMzyhGS/uWThCwOaSlAty+3VVcmk9fdUsHfQ Q+vIPYU95XPoBh3zERO0FIgFoXb30URgQNph9qPXT7LepO2iCzeqztssgAPANI35X6Xa 4Yi14B1qc6kIsZV/AaYnKGycO8vXCyvR7a9kDN3dljmNsbbUYNU1klsD7bzSZZZ7BCOS zQsJ6KyB6m7YmjhVFD19I4mSq4Im4CQL9M6NfJxlb6vgn8Jv/frRsdSi/UGdnLpoYnfH MT/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342389; x=1715947189; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=upnYxftIQgqA8SAtWvBXJGkDwPY3ijyI82SPZyS/G88=; b=juYobVifXsKHjESkTYpi8AAWfvCGXG2AQ4vh92mpv6P0Ge85TdgjQ/jqVQKYlr2gFx zWxCoM6/hKLhyHbcyHuBBMKW3nYYktHvDLCQhcEAP3alIXgGFz2pldVM7RN7oe8fEDDJ qybfqJWZfgxjVHU3CPv6KjxM8e4N9Pyk4U0emJlHWaRUpMyvHlmPJ8kiBy5bQMdvIT0j V/vU/iFdnVOFyAFlzJI3rXTKFyiIrs84us+x7h4J5vXdYuek9fHUtZoCzpPmejxLOrQM xUabuWG7TzGxWtiaEcJdFWuSVfJP3YgZmqe73XOkYxcx9Ux/QBWCBuaoZMe+D+TXsuC+ T6gQ== X-Forwarded-Encrypted: i=1; AJvYcCUkoYhu61D+ykQQwQBZdhluCWE7Wk0UCkBXVZ4m+CfW0tP0YxgjXMwtLe7oXid7eWPg21y5d20q2e1aWLndpMY9DqSALRf/loRpo8wP X-Gm-Message-State: AOJu0Yy7maJsQ9kedbNjl+FdWb0sin5MHTV6yjWg0AFN1Og0x8wW24WO gm1kLswfFFuk2a7iZsNkopq7D4i+1idkeOfIiKjirbexV17Z74E03Y9QRGBGNYU= X-Google-Smtp-Source: AGHT+IHY0fWuvCys1QcyAuv+r+TdQfXqlllAZlDO3NVBDN4SQT1xHqodNhNJPz4n3IX1MJ3N5YVL/Q== X-Received: by 2002:a17:906:6716:b0:a59:9e02:68fc with SMTP id a640c23a62f3a-a5a2d5f193dmr153936666b.44.1715342389104; Fri, 10 May 2024 04:59:49 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:48 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:34 +0200 Subject: [PATCH v2 11/31] arm64: dts: qcom: pms405: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-11-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pms405.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qco= m/pms405.dtsi index 461ad97032f7..3f9100c7eff4 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -12,7 +12,6 @@ / { thermal-zones { pms405-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&pms405_temp>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E577016F28B for ; Fri, 10 May 2024 11:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342393; cv=none; b=TiT/lujX9Xc7in8yqV+c2HIOww/grc9kuf4uK/uV6mvBMKBsh4t6S8O1qVIjUThlCKn98WvmQcHEZB+U1by5tu6CpWnZuhYR2pupCtB2fGieT5LLv+Eqix941v/HFpehxJMSyScf9yPt1xyAqREZtwBHsbJsYMzYAZS8Wi1Z0oU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342393; c=relaxed/simple; bh=+CdMPbiwbbjdeKsF9NqrWPUhULSbuF01TG2LlGUmcnU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MPJ26rL/YTD/Oq9XtJH4VS8vEou1zeWlJF4Q/sh8EkkjpZGxq3GmAQ+pZ/rQ3TF205Lw8aWID8+0QDVMBbPQhFk+qupHnwgSdrhWKnNtDNhJ7odkY/x9Rr8nqaTSqWis8ssQI6RbzP/UdnCuDVBZMRFcBr2hc4kzkB6gWEb72AI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zJlAuFmr; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zJlAuFmr" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a599c55055dso500682366b.0 for ; Fri, 10 May 2024 04:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342390; x=1715947190; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rNNJNlN4O78cbvwEGVWQ779Rtq56UYusx6zOZKbAlxM=; b=zJlAuFmrOBQnSGHQHhZD9SCaKUgcUjbvY27sqZj+m9ypmtoZjywxUAPe3IMi9S/lXl hyxd8Jf5wvAjfqMRS1NlZdfzmNADVX5UeDaxaQf3FpWWnlHWfMbaVj5S7/38dphr4Sqx bmM/eGb7W4zJJQETDKyceiZANIXPMpSHNrhlPuWZjK07clgatwjTh9vGW4UUBahGVegN ejs0YAP/BDubU2sk2QFq8P3yaRobiv/Q6/keDDCTGSo1Zxya+3VVw0pNzu4E2PLHD4Bp CgrixSkKkW+ykGx6v2iVnVd/8YW8JwoLBQXoGHO/c5Zsr+PZ04NAGS0bTwt+B/d9uASy 25hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342390; x=1715947190; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rNNJNlN4O78cbvwEGVWQ779Rtq56UYusx6zOZKbAlxM=; b=cgg1Re5uFCBfaKhpD8lIZRQ2tqjmszTdQBPYhrEZW1U3/Tw2qEdUofKUHMLqukVVF9 llaQYQ5AzBDPMtU3/DdWTR0J39b7Pa5iry6PEedpwNp7FO8cG5MEYvm37TfHgPU7Zf/A i8QxuUFeQaJsnXBE44YDYzYAPbmmLxplNFMlud1EXamRTuqp9NeIAz8nUZgjPSH6qoEI 0AVErr981Ovn93WUT7s9ru911FQHoKddFxEyG0my2P/mxM7PNvWPD1Efi3eJl9t0Pfzr abs+ie446JkQiK98v3jV+kARxCT3wSAYiNbYGlLPgjkkqW9NtYEzE695Ju4VLShrSbT1 waaw== X-Forwarded-Encrypted: i=1; AJvYcCUlH3/nrrS60tqMCFob957sy2d/YXqfSdJ1BKEuVHKyCCMHvKu5w5e6UVpAvs9UP0MRLpMWh6Y3a9YxIJeqs1/1gzbdZkploEI18M6F X-Gm-Message-State: AOJu0YzV4cF4nvTOkL6GaMNnpyoAqXvXN1wd7AHDZfO7ysAeLzcLRjyN w/6IDWL19bwHG2GKJsSQdc2tiMl4XO57JMLEwSG3mfm6zM57Ui2V7rERBuoZGss= X-Google-Smtp-Source: AGHT+IHBeuIuLf/v7qb4NswUzx44DTuej3GIrw6ndeVLe5C0aMjVQKsCUA7aDAjnIPX3C4bwb14Tjg== X-Received: by 2002:a17:906:f592:b0:a5a:1562:518d with SMTP id a640c23a62f3a-a5a2d53b998mr207336566b.14.1715342390419; Fri, 10 May 2024 04:59:50 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:50 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:35 +0200 Subject: [PATCH v2 12/31] arm64: dts: qcom: pmx75: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-12-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmx75.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmx75.dtsi b/arch/arm64/boot/dts/qcom= /pmx75.dtsi index 373e45f63dff..2e61b7849c92 100644 --- a/arch/arm64/boot/dts/qcom/pmx75.dtsi +++ b/arch/arm64/boot/dts/qcom/pmx75.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pmx75-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmx75_temp_alarm>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CFFA174EFB for ; Fri, 10 May 2024 11:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342395; cv=none; b=IMJQCg+nX0VGsGdLBUexYk+n5pH/+WuNpspw+vt4XTAwmAjY1EZPhM7IPIcXkMYrTUtNtmuoCEXmqySKlgScH4fsakV9vveqlVTrkjrvjLz45pGpierJ3129IenM4fbIMERRX/aTjnhb6DEx6VMOfyTKHkiotfDRuoQgE4eQiNw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342395; c=relaxed/simple; bh=5CSw9DLoFQwug4L1mYX3ngIFb/t4mhjPkYRZKMe1FUA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MyyYBiwlCliiy6Em9MtA77X5oXshUaoQz41K3G4o/ovNeyGOyr7wwt4sxdjTwFeXhXelXL9p6WRArPQrFZnBayWnlIPplBKtRqVXTXJU3rZWvAXqwfGCvT4Z7CmK0oGB7qSkqRUNrtQ2Fs240KtL2bfdWgZo8LLPWqPISXrulZ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=R2U5veYu; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R2U5veYu" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a59cc765c29so433238566b.3 for ; Fri, 10 May 2024 04:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342391; x=1715947191; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FuVEvcZ73sR11OO61dwu9pTyz0Xsj1eoAqJzsVpMEhw=; b=R2U5veYuWqy0GrdSjgKW5JB9015oeGjXuJFBbWoLg/sKIrJLgVt0eoZaMqoKRk+ZG1 IUpIIgO2XzK0WDCBXZChqjjFxBitibk+Fb6bF+9dxE6CUCqGVDd8BUJBQeK6eLLPKcTR tb9mnd3xfk2gVpo0aMKRlAa7KQhQ5XCstN9TU7nY4nEElJsXZgybNe9sF0RkBQCTYU81 +XDZFYoDCj33LDkDmEtKGVV3objyCaCLyH2MnRBZlsPD9wMOJKHLx3mE9u5j+WFLJqzx hwB65BbhfWbgUmOI9gkkZFCs1Jxu9QxQOVgh64pmjnjT2iDvzlcnVIIZeyo8SSZrnIho wYkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342391; x=1715947191; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FuVEvcZ73sR11OO61dwu9pTyz0Xsj1eoAqJzsVpMEhw=; b=V0rXCswWP+YzFjbvQeJ8pRbr/EBDNf7NJ4FLZpokNImAhymoIM8Kxamq87RnKh6eib BNmflSzZIn9Ooc8ZFixetDbV5tADS280tVd57hpSvlwQH0ahwoB1ri6/GwnMiFh1sbYe OkkzOc0ik5Pn8otIn0J/hA0adUM2tVyTLThgAuM5WqTwZJ/ikS03A6IfliPXR+r4Dfbt qDWls2rm9867FFMUMmFaKseOsRLWboDnmIXZ6VBrFDhc1GQ5bnB4AW9jy4iOC4w2xYmG cUrUiHOGG1A7hypvxKSrmE+JQXTGdG8vIYJM8R8yM0b4OlEngohXBbkuBkJtNN+lAce6 Fkqw== X-Forwarded-Encrypted: i=1; AJvYcCVb/8M1CThkAyQWspScXIUNwPC/vqU30Sl4OVUPWgX5iweXnZ1s3cJ40VaB3O3QEtkq3DxXTaGXKHbJt1ZUK60IX5zwDOuatQX6tN/p X-Gm-Message-State: AOJu0YxNnBxnutCWaH/GIDL0jlMgH1q0tv4wP8Xo787Eben0ShxzMEJ6 mC0an0zSPHLLQfw5GGMtZGlHC5SkaFmbZbQRqCL5pWJomrQWiSMoVwhc4hsVGEU= X-Google-Smtp-Source: AGHT+IGNjE5VODPCkm0AnGnT7XxC6dXH0eF6PF4HcpdsXTM1X8hp1li7g8QxZBCjjrjLHoiWq0Htiw== X-Received: by 2002:a17:907:76d3:b0:a59:c7d7:8b0f with SMTP id a640c23a62f3a-a5a2d57a717mr160952266b.29.1715342391690; Fri, 10 May 2024 04:59:51 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:51 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:36 +0200 Subject: [PATCH v2 13/31] arm64: dts: qcom: qcm2290-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-13-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qc= om/qcm2290.dtsi index 106110a9f551..e1d176b277ce 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -1924,9 +1924,6 @@ lmh_cluster: lmh@f550800 { =20 thermal-zones { mapss-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -1951,9 +1948,6 @@ mapss_crit: mapss-crit { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -1978,9 +1972,6 @@ video_crit: video-crit { }; =20 wlan-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -2005,9 +1996,6 @@ wlan_crit: wlan-crit { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -2032,9 +2020,6 @@ cpuss0_crit: cpuss0-crit { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -2059,9 +2044,6 @@ cpuss1_crit: cpuss1-crit { }; =20 mdm0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -2086,9 +2068,6 @@ mdm0_crit: mdm0-crit { }; =20 mdm1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -2113,9 +2092,6 @@ mdm1_crit: mdm1-crit { }; =20 gpu-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -2140,9 +2116,6 @@ gpu_crit: gpu-crit { }; =20 hm-center-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -2167,9 +2140,6 @@ hm_center_crit: hm-center-crit { }; =20 camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 9>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47D3B17085B for ; Fri, 10 May 2024 11:59:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342395; cv=none; b=ltVvGgtHfcHg08XXcCZnSdZ7razktWWmBWU1pbUTWqpLdvdSI+/xa6IHn02E/3htBa3wENGmBCH+UOKfuuX5zVJp2O6BcN4YyNp5ZxhqwPQRNFfIxI3Q59WjCtx9jy+ebwLmWfTwb/B7gq7e89pVKa+qjnFdLaDVWCGkx30MAho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342395; c=relaxed/simple; bh=hJAnTcSS233J/pq2GGKjdE5Nwm9koJwphvqL++mXdtU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t7HgfQruFZYiRT60HmJfBP+g7mO+HdrvYgkyBFAZ64rqtu0JlQ30P0MLSxCQAPtw4gH0cgRXYJ0zejXTPiZCB6yKjNOKS5JJEzDjgQGeSykKjFE8iKC/lnggdH8GpXH1KMyWIABGAFtbTv3sVn9Sv5mmOy2ExVi8fXWJf7EdVms= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V9zy/C1I; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V9zy/C1I" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59cf8140d0so477355366b.3 for ; Fri, 10 May 2024 04:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342393; x=1715947193; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=m1cwL1GyWWAwhJFJuq8v2puUXx3BB6mJq5XCosZUEqM=; b=V9zy/C1IYcUX9qOH68VoWsGzEsNjvQL6ePfRVP+nxZkIokzaKDcGRc1IbSll9EDba4 Gk1AtGUd840/cN1klF/ayZcJq+rQQGWuXiqrPKaroSiAyutg47k0NZN6pugfs1Os9NK3 s1QHWudYXv8iibp7G3E0WVnNaMIIxibAwp5oLQETo1DYyzK1e9JJMaKt0trC0qelifyj gWMPJFhoGIjqgRXRXC7CId4NhfXoNs/fquUUev0QwJuDmrRwtoQKEhFGDz9fo86HoAC8 y5ZW7y1iok0GgEUs9u8VLXFYqy7CDuZcScKMdyV0qj3uWanEevbvrxhlTJyo81XBWIU1 h9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342393; x=1715947193; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m1cwL1GyWWAwhJFJuq8v2puUXx3BB6mJq5XCosZUEqM=; b=UfECIVWsTA2KO+R5KIw84Y45/+ElDwBH2+4oCKezVB0ACbbiwAsX6iAwxXUwJcSG8/ +VPpwZK1t+qzwJuwxdX0DmirQAFLUZFkAbdT9lhDrxAy351sgpXn6AHjoX2OL1SmcrUJ vThORAW+5g+i5JUJOLuZRwzfQeul4CE8i3rEA+17KlD3uCjNYuxD1HUq5zc8ho4eWN1G FsxYv8N8DXFdK3GzbbfjF4odf9zjsnij2nN5A6+PdnOS0GwUsppQ57QcytC8gWv8/lCL AUWv4OXDZavCsvkCaH+4ZKFNDg7N82zt7tQURZc4mfOhpfOSjiI4lW+wP7TyTDwvLzss 4wwA== X-Forwarded-Encrypted: i=1; AJvYcCV8H8MhEK2TkS/wtbrfgWNs523I5AC48f89d8yEJ2uUyFADJIsnWD4qLeD82+FfaUclZpsH3rYL0t7JIfi8mSbMvHA2M3YMv5hS2xXs X-Gm-Message-State: AOJu0Yzlp7+EBE4IDWQEIgPq+GqbSk68wm0JP+ElzMEzEKXRpWrtxEhB RPWi7k3BponoiGWdjn/XWPCns9ZxLtK+SMCU8Y8/Egz+TyDRVxawXavjycO15cw= X-Google-Smtp-Source: AGHT+IEAAccpAb7Agm+ODkggJHJYK9cRJa2aPR7diwSj0ZiazeQ/xNJgMicNpeIH/RxpIli8PB83Vg== X-Received: by 2002:a17:906:b0c:b0:a59:d5f7:a697 with SMTP id a640c23a62f3a-a5a2d54c47fmr152192566b.9.1715342392904; Fri, 10 May 2024 04:59:52 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:52 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:37 +0200 Subject: [PATCH v2 14/31] arm64: dts: qcom: qcs404-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-14-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qco= m/qcs404.dtsi index ac451f378056..ba7fe56a75b3 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -1600,7 +1600,6 @@ wcss_smp2p_in: slave-kernel { thermal-zones { aoss-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 0>; =20 @@ -1615,7 +1614,6 @@ aoss_alert0: trip-point0 { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 1>; =20 @@ -1630,7 +1628,6 @@ q6_hvx_alert0: trip-point0 { =20 lpass-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 2>; =20 @@ -1645,7 +1642,6 @@ lpass_alert0: trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 3>; =20 @@ -1660,7 +1656,6 @@ wlan_alert0: trip-point0 { =20 cluster-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 4>; =20 @@ -1694,7 +1689,6 @@ map0 { =20 cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 5>; =20 @@ -1728,7 +1722,6 @@ map0 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 6>; =20 @@ -1762,7 +1755,6 @@ map0 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 7>; =20 @@ -1796,7 +1788,6 @@ map0 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 8>; =20 @@ -1830,7 +1821,6 @@ map0 { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 9>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83466176FCE for ; Fri, 10 May 2024 11:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342397; cv=none; b=jnF7/NdoZVRE21g74YKNvM724QjrSrJa/c2bOs2jmeZhB8kUTyoEsgliifPAKKcJREcqmt7kUtpDkPrYQuxzQvauzOMaQuJNHHrrQhjIWfPSCduMqNGF9Uy+rSAIDVKqYBxVwUmjR0OOVCcwzEcRLLsRU7VLMWt2gjgEb/L8/b8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342397; c=relaxed/simple; bh=jiSIFGimpDX4+TwGvHqqAHsi+AK4AelGNP3BI22A2Wk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KaY+49cd1GVzC3vLbO0VzGjrnYUKzPSjjpktIapfmGD72XOONowkU/QTL/6CGciY3G0Xz2HJbTD/WUlKsYMOFUjtzx0OmPw43BbAD3jNvSBtE8AYwIoIeeCxAZ2Wb3qAyC0wm5M8pXm9fW7DFHkPIyiQ0NnL5Sc9wxS24wI/TkU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V4aiO1im; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V4aiO1im" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59a64db066so497487866b.3 for ; Fri, 10 May 2024 04:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342394; x=1715947194; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kmDoRiq5HIm03yKcCt0UtU9zsedBUjpQuaReVJnLfEQ=; b=V4aiO1imDrWl9IZkghSAwdtK7Ya3QimpPbMRuf2vCZ09vy4kWH+z7WILDTaU0rgXGR bSp8ztZbAGLaAI/ecgtO27hu8uTKDAwzihOGXTKhE0SI5EyRlBrRG8DJeoDw+8qZrYWh q/dv6N9VWA4fnY29mF5/gpuA8jp1k9UjcchxF/r+JzCvXRINdckRsqqQKw4s2Et2Prcl T6yvahLVdyY/X/2z4I5OLMWyQlYELTYNq1gFzJExg0+iBORGft4hPm81Ja0xcycKuTXo cFhA4Hy8t7pc7GllXeUVISeUG70Cf40txAjFW6hmFeSZDZLkWpDCBJT2RAsmmOWMweJj H5ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342394; x=1715947194; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kmDoRiq5HIm03yKcCt0UtU9zsedBUjpQuaReVJnLfEQ=; b=UKMcQLsjzxk69ShjfPKvFBTYCk3yQgaq/+M+pSAKLLmmVavZO7UOEtFzxldhECksfl G9yyw1U++mGCCAWKSSTUM1aTEpLTdJv+P6oCZrRNYzQR2dQz1oFPsq3a1XKLLb1vu/MI zVB2owXd6qPBQuo06rYiD9b2FhDnaijyKjXVaOGCGKq6CjlYG2l5y0PE6qXMmdX4GMag W/QMbsiwWyeSD7S/6Gi2PZMdOCp8rrpfP757hNTalgL8qZpMfhdKj51N/F8kCcQAGCW5 8VyZ3q2zmw1H+5O0uT2S01RiJxG2DfzE+5K/xpdfyko1JjTCmaRcAS2U/94JXYKDjqXk N29Q== X-Forwarded-Encrypted: i=1; AJvYcCWU3OBL9/Yie/aV0llN85UK0dbwOhwkZYayIaPQDqfzgieFEAW0RAn8Dm4rLfWKuLkXBZUhBHXY1QfP6KrcdZL4XVTD5wTjtJ2ompES X-Gm-Message-State: AOJu0Yy8E9ADquTgEHQOU29qbx4SF4TD3YQeNFghNAk3lKtJuj9gka/3 y2lm1okaB3YPocB4lv6uvbV3W3ZOov5zNs/jWdrcyQgkwld72EUpV8PVwrX2pio= X-Google-Smtp-Source: AGHT+IEydhm75fvryvEOacr129Cn9qwvJsTOcUo2SLkpzevrgzZVTWEzxZExgDJecGb/y/cZ2Bms6Q== X-Received: by 2002:a17:906:3d0:b0:a59:bfab:b25a with SMTP id a640c23a62f3a-a5a2d678063mr155538866b.63.1715342394140; Fri, 10 May 2024 04:59:54 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:53 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:38 +0200 Subject: [PATCH v2 15/31] arm64: dts: qcom: sa8775p-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-15-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 82 -------------------------= ---- 2 files changed, 4 insertions(+), 86 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/= dts/qcom/sa8775p-pmics.dtsi index eaa43f022a65..1369c3d43f86 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -10,7 +10,7 @@ / { thermal-zones { pmm8654au_0_thermal: pm8775-0-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_0_temp_alarm>; =20 trips { @@ -30,7 +30,7 @@ trip1 { =20 pmm8654au_1_thermal: pm8775-1-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_1_temp_alarm>; =20 trips { @@ -50,7 +50,7 @@ trip1 { =20 pmm8654au_2_thermal: pm8775-2-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_2_temp_alarm>; =20 trips { @@ -70,7 +70,7 @@ trip1 { =20 pmm8654au_3_thermal: pm8775-3-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_3_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qc= om/sa8775p.dtsi index 31de73594839..045d36c15b5c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2550,9 +2550,6 @@ ethernet0: ethernet@23040000 { =20 thermal-zones { aoss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -2572,7 +2569,6 @@ trip-point1 { =20 cpu-0-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -2593,7 +2589,6 @@ trip-point1 { =20 cpu-0-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -2614,7 +2609,6 @@ trip-point1 { =20 cpu-0-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -2635,7 +2629,6 @@ trip-point1 { =20 cpu-0-3-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -2656,7 +2649,6 @@ trip-point1 { =20 gpuss-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -2677,7 +2669,6 @@ trip-point1 { =20 gpuss-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -2698,7 +2689,6 @@ trip-point1 { =20 gpuss-2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -2718,9 +2708,6 @@ trip-point1 { }; =20 audio-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -2739,9 +2726,6 @@ trip-point1 { }; =20 camss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -2760,9 +2744,6 @@ trip-point1 { }; =20 pcie-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -2781,9 +2762,6 @@ trip-point1 { }; =20 cpuss-0-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -2802,9 +2780,6 @@ trip-point1 { }; =20 aoss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -2824,7 +2799,6 @@ trip-point1 { =20 cpu-0-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -2845,7 +2819,6 @@ trip-point1 { =20 cpu-0-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -2866,7 +2839,6 @@ trip-point1 { =20 cpu-0-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -2887,7 +2859,6 @@ trip-point1 { =20 cpu-0-3-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -2908,7 +2879,6 @@ trip-point1 { =20 gpuss-3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -2929,7 +2899,6 @@ trip-point1 { =20 gpuss-4-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -2950,7 +2919,6 @@ trip-point1 { =20 gpuss-5-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -2970,9 +2938,6 @@ trip-point1 { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -2991,9 +2956,6 @@ trip-point1 { }; =20 camss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -3012,9 +2974,6 @@ trip-point1 { }; =20 pcie-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -3033,9 +2992,6 @@ trip-point1 { }; =20 cpuss-0-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 11>; =20 trips { @@ -3054,9 +3010,6 @@ trip-point1 { }; =20 aoss-2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 0>; =20 trips { @@ -3076,7 +3029,6 @@ trip-point1 { =20 cpu-1-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 1>; =20 @@ -3097,7 +3049,6 @@ trip-point1 { =20 cpu-1-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 2>; =20 @@ -3118,7 +3069,6 @@ trip-point1 { =20 cpu-1-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 3>; =20 @@ -3139,7 +3089,6 @@ trip-point1 { =20 cpu-1-3-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 4>; =20 @@ -3160,7 +3109,6 @@ trip-point1 { =20 nsp-0-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 5>; =20 @@ -3181,7 +3129,6 @@ trip-point1 { =20 nsp-0-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 6>; =20 @@ -3202,7 +3149,6 @@ trip-point1 { =20 nsp-0-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 7>; =20 @@ -3223,7 +3169,6 @@ trip-point1 { =20 nsp-1-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 8>; =20 @@ -3244,7 +3189,6 @@ trip-point1 { =20 nsp-1-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 9>; =20 @@ -3265,7 +3209,6 @@ trip-point1 { =20 nsp-1-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 10>; =20 @@ -3285,9 +3228,6 @@ trip-point1 { }; =20 ddrss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 11>; =20 trips { @@ -3306,9 +3246,6 @@ trip-point1 { }; =20 cpuss-1-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 12>; =20 trips { @@ -3327,9 +3264,6 @@ trip-point1 { }; =20 aoss-3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 0>; =20 trips { @@ -3349,7 +3283,6 @@ trip-point1 { =20 cpu-1-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 1>; =20 @@ -3370,7 +3303,6 @@ trip-point1 { =20 cpu-1-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 2>; =20 @@ -3391,7 +3323,6 @@ trip-point1 { =20 cpu-1-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 3>; =20 @@ -3412,7 +3343,6 @@ trip-point1 { =20 cpu-1-3-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 4>; =20 @@ -3433,7 +3363,6 @@ trip-point1 { =20 nsp-0-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 5>; =20 @@ -3454,7 +3383,6 @@ trip-point1 { =20 nsp-0-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 6>; =20 @@ -3475,7 +3403,6 @@ trip-point1 { =20 nsp-0-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 7>; =20 @@ -3496,7 +3423,6 @@ trip-point1 { =20 nsp-1-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 8>; =20 @@ -3517,7 +3443,6 @@ trip-point1 { =20 nsp-1-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 9>; =20 @@ -3538,7 +3463,6 @@ trip-point1 { =20 nsp-1-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 10>; =20 @@ -3558,9 +3482,6 @@ trip-point1 { }; =20 ddrss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 11>; =20 trips { @@ -3579,9 +3500,6 @@ trip-point1 { }; =20 cpuss-1-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 12>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 313F1178CC8 for ; Fri, 10 May 2024 11:59:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342398; cv=none; b=bzEBy0D6jxN4fVGp9x/L0aaNffAnqxSpE88horKUPhexDNY+rkCPlg+IufdNCqWnuEr60glWSoCp59ydyVJ7zl8KsWRstI1dy43STHp/xLSDrWOJc70aq5nr/TlVMgfVezfS2x0ZiV64XGPJIOijHLV9Ppeo8J85xXLkSGxAHzY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342398; c=relaxed/simple; bh=u+BlxNpy844knWBsQeHvKNxIXOqPeVH7Uh1dVKanY8Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LvQQ55/WcF3ZicExVmghdwadNGigVtLi2jAViy3/4a4Qodu51HDPndJBaPadMEPcaRaK2uktqoLe5YoMyMQrtb6mHRlaZQJbj+9Lh2bsglfLegW3pVMA+qaUgXqE3f+ZbYXSByVZUcP9MvFT0uibeERrY5JUm/O43uRsIu6fClA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=idagLTot; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="idagLTot" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59c5c9c6aeso476100966b.2 for ; Fri, 10 May 2024 04:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342396; x=1715947196; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=zZqPwBkB48y/IGaU4ZewJb8k/C/8/AgksToU6nDwfI8=; b=idagLTotIkFUCfueaBiNG7TvrGUBOT9wMZgVVHTcuuTNKK8FfEho7mjjaPU53QcWM8 T4Mvv13xKMqBSC1DtdRejEOMK3hX8s+qXzk4MXgoz6D7Lhq0IZS/kHj+Dam0Oktk+VfQ kNq3uHQyQlmSAgVCQbdWqJL52WOmCt5aiCPbGoyWCGL9ilzv5Ys3k0rrPfVttpovoJxI m7R7gDbcgp5/VFtcQamBJrUW/en4RDvTzUMBryyK1wthRJMSBl31YOWP0l8tAb5Nc26O SxG2/4Aa8j6tgMjtbxrCO7oZnHtIX67YJGrdhFp7TnFJ0d4zsMnLtpbOuKrU5om35Gnb tBzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342396; x=1715947196; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zZqPwBkB48y/IGaU4ZewJb8k/C/8/AgksToU6nDwfI8=; b=hJ46Q5sMGqT3uQToQP9YYpi6xcYDA6HiB+hoTsko+mWF96LWgkVYf9r+qOh/hGEaA/ xg/flbxQnyALQP0R/+Ik/5ZZRmiHR2gMEEj0VBORRLp5YoH0bki3DJSkDYVwZlZ3xEcz h6Jqc4hZFbr6PLcB/Z6C2gRoauSmpQwDLwcCwFbmN8iFI5wnC1zStBewSZKs2IcXTjLR VzvXi0aeinOi97TURbHZOWX1UZ/JoRrJaWVdm124BUr1+Nz2Myox0E/gaVyPpFeGmk8w jCNfsKGlUfLIszSbnvezR170nNSct8lyhs1FczOMVLyMnjDC6mLxcumuOUq+bDBfy2FV YrVQ== X-Forwarded-Encrypted: i=1; AJvYcCUA7jegjLFHe0OWUvnXljbMMpk+/6gbvdxOlUN+STi+tPb5Rj9PzWklw9z3pnRB81upYWvmhFH1ZAY8TVi8vJooe/ULZdDgiqzDw3zD X-Gm-Message-State: AOJu0YwYr3/hhZELlK5ciTqPOShqYCnywHw6HFEfbEyiJW+URmRRA54d Q1I0jcGU8QD03zOt4yoYGaH2vce2NQJs8Yu/i01uGbhPn9Q5zNLNIuP6oHKYNAs= X-Google-Smtp-Source: AGHT+IH+lLQuP2CIn1XUpZTKAivZO8YMzIPaMtKyiSLctQahOmlK6XbGFaSk5LHZzMOqlWWZcsuujw== X-Received: by 2002:a17:906:30c7:b0:a59:a431:a8ce with SMTP id a640c23a62f3a-a5a2d55a7c3mr178378266b.2.1715342395579; Fri, 10 May 2024 04:59:55 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:55 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:39 +0200 Subject: [PATCH v2 16/31] arm64: dts: qcom: sc7180-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-16-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 2 +- arch/arm64/boot/dts/qcom/pm6150l.dtsi | 3 --- .../arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 1 - .../boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 1 - .../arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 3 --- .../boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi | 1 - arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 3 --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 25 ------------------= ---- 8 files changed, 1 insertion(+), 38 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qco= m/pm6150.dtsi index 6de6ed562d97..b4f4d700800d 100644 --- a/arch/arm64/boot/dts/qcom/pm6150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -13,7 +13,7 @@ / { thermal-zones { pm6150_thermal: pm6150-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm6150_temp>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qc= om/pm6150l.dtsi index 0fce45276e5c..334f976f1154 100644 --- a/arch/arm64/boot/dts/qcom/pm6150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pm6150l-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm6150l_temp>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm= 64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi index 7765c8f64905..0c8a4517083a 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi @@ -25,7 +25,6 @@ adau7002: audio-codec-1 { thermal-zones { skin_temp_thermal: skin-temp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm6150_adc_tm 1>; sustainable-power =3D <965>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi b/arch/a= rm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi index 2ba3bbf3b9ad..68bc17a81d24 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi @@ -45,7 +45,6 @@ pp3300_touch: pp3300-touch-regulator { thermal-zones { skin_temp_thermal: skin-temp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm6150_adc_tm 1>; sustainable-power =3D <965>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi b/arch/arm= 64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi index 067813f5f437..026d0845d78b 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi @@ -14,9 +14,6 @@ / { thermal-zones { 5v-choke-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <250>; - thermal-sensors =3D <&pm6150_adc_tm 1>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi b/arc= h/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi index 305ad127246e..3c6e958996a1 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi @@ -50,7 +50,6 @@ v1p8_mipi: v1p8-mipi-regulator { thermal-zones { skin_temp_thermal: skin-temp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm6150_adc_tm 1>; sustainable-power =3D <574>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot= /dts/qcom/sc7180-trogdor.dtsi index 8513be297120..4d33c3fbedff 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -21,9 +21,6 @@ / { thermal-zones { charger_thermal: charger-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm6150_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qco= m/sc7180.dtsi index 4774a859bd7e..8bbe5c92fbed 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -4036,7 +4036,6 @@ lpass_hm: clock-controller@63000000 { thermal-zones { cpu0_thermal: cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 1>; sustainable-power =3D <1052>; @@ -4085,7 +4084,6 @@ map1 { =20 cpu1_thermal: cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 2>; sustainable-power =3D <1052>; @@ -4134,7 +4132,6 @@ map1 { =20 cpu2_thermal: cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 3>; sustainable-power =3D <1052>; @@ -4183,7 +4180,6 @@ map1 { =20 cpu3_thermal: cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 4>; sustainable-power =3D <1052>; @@ -4232,7 +4228,6 @@ map1 { =20 cpu4_thermal: cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 5>; sustainable-power =3D <1052>; @@ -4281,7 +4276,6 @@ map1 { =20 cpu5_thermal: cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 6>; sustainable-power =3D <1052>; @@ -4330,7 +4324,6 @@ map1 { =20 cpu6_thermal: cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 9>; sustainable-power =3D <1425>; @@ -4371,7 +4364,6 @@ map1 { =20 cpu7_thermal: cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 10>; sustainable-power =3D <1425>; @@ -4412,7 +4404,6 @@ map1 { =20 cpu8_thermal: cpu8-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 11>; sustainable-power =3D <1425>; @@ -4453,7 +4444,6 @@ map1 { =20 cpu9_thermal: cpu9-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 12>; sustainable-power =3D <1425>; @@ -4494,7 +4484,6 @@ map1 { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -4515,7 +4504,6 @@ aoss0_crit: aoss0-crit { =20 cpuss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -4535,7 +4523,6 @@ cpuss0_crit: cluster0-crit { =20 cpuss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -4555,7 +4542,6 @@ cpuss1_crit: cluster0-crit { =20 gpuss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -4583,7 +4569,6 @@ map0 { =20 gpuss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -4611,7 +4596,6 @@ map0 { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -4632,7 +4616,6 @@ aoss1_crit: aoss1-crit { =20 cwlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -4653,7 +4636,6 @@ cwlan_crit: cwlan-crit { =20 audio-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -4674,7 +4656,6 @@ audio_crit: audio-crit { =20 ddr-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -4695,7 +4676,6 @@ ddr_crit: ddr-crit { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -4716,7 +4696,6 @@ q6_hvx_crit: q6-hvx-crit { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -4737,7 +4716,6 @@ camera_crit: camera-crit { =20 mdm-core-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -4758,7 +4736,6 @@ mdm_crit: mdm-crit { =20 mdm-dsp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -4779,7 +4756,6 @@ mdm_dsp_crit: mdm-dsp-crit { =20 npu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 8>; =20 @@ -4800,7 +4776,6 @@ npu_crit: npu-crit { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 9>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2DAF17964F for ; Fri, 10 May 2024 11:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342400; cv=none; b=dT5bNPVUhDo8K3BkF05QlTytmJYlihr4DkUVCwJVs7/ciwoodIwYBcv4q1mFEHZi/7jhsBTznvwC52SNE0rlwela53dgg0ZSEuHXH/SfJYhSWw8eFAIcoFCOxxuLCszUlo6lszRaiSSwfOKX/j6zooxC50c71Hsw8X67lbQaEoA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342400; c=relaxed/simple; bh=AOFLkk4IFxOn/MX4UUdfkqJWXKeIJ66YDXrmLvWsfeU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sI4q1NPi6m/IuIocm2YU3Fo3VmUedM4bQuR1wnW5DEfTwkk9/0MbzPQH6ubiQk+yq8YzjUOb86VHeIgwOvsuWNa27Eutw0X4HEgudkXFP98s/MigHo1Ia8v0BjCeEQYntmNBC/BTmCOMgGjgvRaeipExzsqZA4KfzhLd0sYclvU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OqUKQAXf; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OqUKQAXf" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a5a1054cf61so488748866b.1 for ; Fri, 10 May 2024 04:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342397; x=1715947197; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=D8ZpJqGDxvOMPwn+PPKFcoTbeNu9kckhYHX6EWIzsEU=; b=OqUKQAXfIIYJpt51QDu8LIW9AWIiETGHPmTKotVMOV1Rgs2BzYqxf6+PzQy6qoYiUl rSlbJYXaVo3VhkZk8Ppbpt8v+1b2LwcJ5xJbxbuoy3wN+T5LLZATW3TPSws9qxTIY505 kNfPODX7oNK2pP26bzrDrH/lgm6T38fApOn+GHW4G6my3WfExCAKxE03nxejEnNiwr1I BkTu2BRSjadDsCq8wRc2iGx5nseM+ff2Q5Q55jL5uqqco5IPoo9O4QARCWFGritTnMaR +KY4wQgLB3xBH3ynKjb10Ca+28YPMQSOTM+cpQxDKfphi9tB/j5+GRdRKoBIBUIC8ya6 mcaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342397; x=1715947197; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D8ZpJqGDxvOMPwn+PPKFcoTbeNu9kckhYHX6EWIzsEU=; b=c4IF5cYWGSrIX5K90QpRXgZaf8TVfZbQi+CU0PLrqFVuPGTcKhyIc+pH9kFY0QQZgc sYBA8Wkz+Q98uOWoe0rQfsLJFYvrdvmYCoxryOsKSxCvgE151q8ohpxr1TiHa/KLvnUo 4YX7YDVGLHqNO82qv1bu+kkphO6OsuvQ9D7slV95jW4kuNnhk9UWWkvZy9bfH+VUpcp3 moceoSWBalHdjN8JuTY7VpP+fFi2LX02fl3J9Rzbb6G/Jwuo19D/ynG4a5IP6AGG4JvF GOjKjSEflbTCvM1FXAEJQUAky9CSnwHZm/L/rmrcao/0Ug6eaoit7BSBKID8bWdKUd5B Mo1A== X-Forwarded-Encrypted: i=1; AJvYcCVgHg6zP7tb4DA0/qG16zjgLkQDbN350utiSAxj5aDA/gPT34gkvHoLPRGb5QqTBrbuOUQEWyuwezfBbHykIgnqPQExABJjLYMCVtbJ X-Gm-Message-State: AOJu0YxanGiK46C8O3UwMYLyKNPQay6ZDW/LrZcP1XePB4O7lYeO/cfi MS6orSjxjuOfyairQLUUIvnki05dH1qJVnJlagL4DjSr68d4t+1hp2PcCXXB7ZqFleC37JdzJIf cZMY= X-Google-Smtp-Source: AGHT+IHxWFQSmkedkS3a+dZhZd3yX6MVWzJAf9ItZ0cxeDP2rzWp3AYqAsgOUslritLsYmOhL8j14Q== X-Received: by 2002:a17:906:2309:b0:a59:bbf0:88f0 with SMTP id a640c23a62f3a-a5a2d55eec2mr224773966b.18.1715342397412; Fri, 10 May 2024 04:59:57 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:57 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:40 +0200 Subject: [PATCH v2 17/31] arm64: dts: qcom: sc7280-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-17-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 1 - arch/arm64/boot/dts/qcom/pm7325.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 14 +++---- arch/arm64/boot/dts/qcom/sc7280.dtsi | 45 ------------------= ---- 4 files changed, 8 insertions(+), 54 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qc= om/pm7250b.dtsi index 3bf7cf5d1700..b5989fb4ccc0 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -11,7 +11,6 @@ / { thermal-zones { pm7250b-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm7250b_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm7325.dtsi b/arch/arm64/boot/dts/qco= m/pm7325.dtsi index d1c5476af5ee..6e29468505b2 100644 --- a/arch/arm64/boot/dts/qcom/pm7325.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7325.dtsi @@ -35,7 +35,7 @@ pm7325_gpios: gpio@8800 { &thermal_zones { pm7325_thermal: pm7325-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm7325_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm6= 4/boot/dts/qcom/qcm6490-fairphone-fp5.dts index f3432701945f..30b8a49528f8 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts @@ -167,7 +167,7 @@ afvdd_2p8: regulator-afvdd-2p8 { thermal-zones { camera-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 2>; =20 trips { @@ -181,7 +181,7 @@ active-config0 { =20 chg-skin-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm7250b_adc_tm 0>; =20 trips { @@ -195,7 +195,7 @@ active-config0 { =20 conn-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm7250b_adc_tm 1>; =20 trips { @@ -209,7 +209,7 @@ active-config0 { =20 quiet-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 1>; =20 trips { @@ -223,7 +223,7 @@ active-config0 { =20 rear-cam-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 4>; =20 trips { @@ -237,7 +237,7 @@ active-config0 { =20 sdm-skin-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 3>; =20 trips { @@ -251,7 +251,7 @@ active-config0 { =20 xo-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index fc9ec367e3a5..6fc5f9cd3591 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -5994,7 +5994,6 @@ cpufreq_hw: cpufreq@18591000 { thermal_zones: thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -6038,7 +6037,6 @@ map1 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -6082,7 +6080,6 @@ map1 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -6126,7 +6123,6 @@ map1 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -6170,7 +6166,6 @@ map1 { =20 cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -6214,7 +6209,6 @@ map1 { =20 cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -6258,7 +6252,6 @@ map1 { =20 cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -6302,7 +6295,6 @@ map1 { =20 cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -6346,7 +6338,6 @@ map1 { =20 cpu8-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -6390,7 +6381,6 @@ map1 { =20 cpu9-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -6434,7 +6424,6 @@ map1 { =20 cpu10-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -6478,7 +6467,6 @@ map1 { =20 cpu11-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -6522,7 +6510,6 @@ map1 { =20 aoss0-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -6543,7 +6530,6 @@ aoss0_crit: aoss0-crit { =20 aoss1-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -6564,7 +6550,6 @@ aoss1_crit: aoss1-crit { =20 cpuss0-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -6584,7 +6569,6 @@ cpuss0_crit: cluster0-crit { =20 cpuss1-thermal { polling-delay-passive =3D <0>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -6604,7 +6588,6 @@ cpuss1_crit: cluster0-crit { =20 gpuss0-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -6632,7 +6615,6 @@ map0 { =20 gpuss1-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -6659,9 +6641,6 @@ map0 { }; =20 nspss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -6680,9 +6659,6 @@ nspss0_crit: nspss0-crit { }; =20 nspss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -6701,9 +6677,6 @@ nspss1_crit: nspss1-crit { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -6722,9 +6695,6 @@ video_crit: video-crit { }; =20 ddr-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -6743,9 +6713,6 @@ ddr_crit: ddr-crit { }; =20 mdmss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -6764,9 +6731,6 @@ mdmss0_crit: mdmss0-crit { }; =20 mdmss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -6785,9 +6749,6 @@ mdmss1_crit: mdmss1-crit { }; =20 mdmss2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -6806,9 +6767,6 @@ mdmss2_crit: mdmss2-crit { }; =20 mdmss3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -6827,9 +6785,6 @@ mdmss3_crit: mdmss3-crit { }; =20 camera0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 11>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6517917994F for ; Fri, 10 May 2024 12:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342402; cv=none; b=AocrkrUziu70aWQuharkZe8VsZ055FkEHa1UBKW74GE3q5pAetFxYr8vImAQzSsR8OP9fVFkTqErkATj7on0jXKop924sXMBSIowjOJfBz+fYlzjWJSA9oU/psrFku23zZ+fdUyKq9zieADY3y2oCBfWGuu6gF5+oycDtdUYNEI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342402; c=relaxed/simple; bh=LbkcqFLxyCx0rD4FKgnNllYg8feOnnpLUrEoZBHO/00=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I0nYKagqgQWLfbzIZqoUuVNU+tia1m6ib8jMB1P4Uw0rbnYEBplHNFhuY4bIYFLTPVlLCYKp9Q8Ad0Qh3F/M8eCqq63/4LNyyQKlqBuCN9lumIdjUF0RD6U+ev6xaJ8eYQbOlSxlqzNGx/7hQsKPVB97TjbiFiym51pBcdOWz6E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uHgRcLCd; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uHgRcLCd" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a59b58fe083so458012466b.0 for ; Fri, 10 May 2024 05:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342399; x=1715947199; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ga0DcjRqkd5lWMS6Y4aaN9jfdq6ougYfGRhj8z88OdY=; b=uHgRcLCd7greQ4jS1lm04NkTZ06rnPhdhuXKpJEuy0Cw+hnG4dnfDA7POMBd/x8sG6 qcnQp7y8lHcL3Vo+COMmpJzmhsd2AeWLSmBQf1GINqA8hMP8EAEQfQT2xPlP6J8deMtt mOP+LmS3d/pRtHyXkGB8spPH1c7ySZFsjHBO7PsaOj9iC7jLVZUU4vUiRyMJQaCwGCi0 NaHi140I3yXa+nVfrkJaPTsasSU9SriRRb8EEnkV1gjGcR/NY/ES+P7uEtdWuxur4/+7 YfvJL/nVy8CaV0dqIke1rVZEdKRyzoUfQ5xczT4Mofx0yb691pVFRiyaDPP6hgrlPagr ZJww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342399; x=1715947199; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ga0DcjRqkd5lWMS6Y4aaN9jfdq6ougYfGRhj8z88OdY=; b=YCVDqUlWDQBEYmAG7Eg2KEfftuTSXATeIQUDLHMxc+EN9Lz7a7kgYjNXcdjteBiW14 EwSt/m/dBbd8jQh+VXQNEENKRwt+LtWyeRVliJ0KUtdPKDhFW920Y6YqZQhAb4G+XMOY sXn88SPrFmUHDSMfyF8+AriAOndpSNUUewXqGrexcF+8IMtGz07Q1RgycH+ONZtUwg/p nX+Qj6JJ9ekI16Vi0xnwRPxgw+yNQBHBE9UjVc5Eys3krP6bfi13fsvMhxN8SWPC6cUD yZ05StubBFgi+/4l9C1hVN9lvS206Pcm0Oxx7RIncbpu7jhjkFrY9IPUpWLbka1WOeXH mAKg== X-Forwarded-Encrypted: i=1; AJvYcCWpeXVuWa1ZcIG187L/g2y/wVgPEcBNO4Gf6aCEtSJHixBIn64BWOEJk2d/wbhMWPyx4XNEdMWLtwba9Hc4gZrVivnBKuUY6SudT1mA X-Gm-Message-State: AOJu0YwcyyWKJZSDe40fsytARsBLYd+LXTBUhwtNa1zFC68MOWlhE2HB X2T95n1pbcsmDYPjb+ZwZzt/LL2ccBxSEYDyz6Kwwj63A3OZvY0y/xAwKVMcD5Q= X-Google-Smtp-Source: AGHT+IEQnNBfsozlbshlb9P42pEUe4bZxBKfID6D8ByV05PLQtqc3vvhFVRorAIiNy/JZWi4E3ceuw== X-Received: by 2002:a17:906:3155:b0:a59:9e01:e784 with SMTP id a640c23a62f3a-a5a2d53ad83mr159250766b.5.1715342398879; Fri, 10 May 2024 04:59:58 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:58 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:41 +0200 Subject: [PATCH v2 18/31] arm64: dts: qcom: sc8180x-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-18-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 2 -- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 26 -------------------------- 2 files changed, 28 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi b/arch/arm64/boot/= dts/qcom/sc8180x-pmics.dtsi index ddc84282f142..1c6f12fafe1d 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi @@ -13,7 +13,6 @@ / { thermal-zones { pmc8180-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmc8180_temp>; =20 @@ -40,7 +39,6 @@ trip2 { =20 pmc8180c-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmc8180c_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index 067712310560..aedf2e7db038 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3771,7 +3771,6 @@ wifi: wifi@18800000 { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -3786,7 +3785,6 @@ cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -3801,7 +3799,6 @@ cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -3816,7 +3813,6 @@ cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -3831,7 +3827,6 @@ cpu-crit { =20 cpu4-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -3846,7 +3841,6 @@ cpu-crit { =20 cpu5-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -3861,7 +3855,6 @@ cpu-crit { =20 cpu6-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -3876,7 +3869,6 @@ cpu-crit { =20 cpu7-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -3891,7 +3883,6 @@ cpu-crit { =20 cpu4-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -3906,7 +3897,6 @@ cpu-crit { =20 cpu5-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -3921,7 +3911,6 @@ cpu-crit { =20 cpu6-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -3936,7 +3925,6 @@ cpu-crit { =20 cpu7-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -3951,7 +3939,6 @@ cpu-crit { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -3966,7 +3953,6 @@ trip-point0 { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -3981,7 +3967,6 @@ cluster-crit { =20 cluster1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -3996,7 +3981,6 @@ cluster-crit { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 15>; =20 @@ -4018,7 +4002,6 @@ gpu_top_alert0: trip-point0 { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -4033,7 +4016,6 @@ trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -4048,7 +4030,6 @@ trip-point0 { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -4063,7 +4044,6 @@ trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -4078,7 +4058,6 @@ trip-point0 { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -4093,7 +4072,6 @@ trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -4108,7 +4086,6 @@ trip-point0 { =20 compute-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -4123,7 +4100,6 @@ trip-point0 { =20 mdm-dsp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -4138,7 +4114,6 @@ trip-point0 { =20 npu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 8>; =20 @@ -4153,7 +4128,6 @@ trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 11>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBCE417A938 for ; Fri, 10 May 2024 12:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342403; cv=none; b=XrMCbGLRznVYg6Ha1ZkLRr5k++Sb9pUyRJe2k/INK7H9St9njVG1AdBBjwvkbi376a+Ps+Cr+CQf9OeCn4REucza9467mAm0dWCdkLn6/AlEurtCc/dV700ghNSsJLhzsrtYBcr0nflfJ4shMAMsBw9hV1XArAo0KGijuaAUWPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342403; c=relaxed/simple; bh=FA5Hk38Z1i9X8Tdc/qRx+Uallr3SO1fTu5ohTrdaiNU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I1ubai7iaDWCWYj54DldHuQ8ikJVASMhzzL2WnbhLgR8vH8+I1TpG1GHxrSTi5vhoI6Eukiq25n7wlr/ylv2bo5AzRpKFSfISJanGop3Xo/GwqHZiEj0cRCjEbhhyvbAGTeqB9P7YAt7RxLZ7BmFAttMySD7+TLhyGxZfym5L28= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=m3qUybAG; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m3qUybAG" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a59a387fbc9so508119266b.1 for ; Fri, 10 May 2024 05:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342400; x=1715947200; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=iQ1BLO+2DAmsqLEDBjJr5Y6ZfxRHQjRe1qQH/kJ9jT0=; b=m3qUybAGo8T6+cSO3gQpjo83zP4TBmesegpNcAaATMucNNW8kIlEuHNf2G7LlGCz4Q UNtoE18QwTwS3x/B01hdtxHcr4g+X+0huW05Nsjnhhf/kKwpmXOwymuTOzAD1seM6H5t PtBkOQ/9CqAApFwt0uKASiUQgPTaN7lDl1oq9dIAH876YwTe1WaK7mCPDug3vKQWvL/T IlG4uE+s11zEB8RIPl9neuzlWPFoJF9tVh9lM3uGr6u/udSHTzR8N+BtHY/ZIxMcl7Co xpkhSwGv9b9hJNjLyj/xclPkvYu123LeocPq8HwlJmNjr1NAMrysbDPLlZI2GHgiAhZi 6n8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342400; x=1715947200; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iQ1BLO+2DAmsqLEDBjJr5Y6ZfxRHQjRe1qQH/kJ9jT0=; b=rq7OjZkeFzg3Ks6hmTTUqbPCk46MRN5ZIypohPWQYVC7Ge4nb+KdBwvW+wAPDr41n+ 5yn5vz5LQm1gFK1Tlw2Pe+WN+uLQpdzXuvikM4zPm4EZZcFjfONSzxdOXAOMzg4zp7By sebO88sFN8/+iEeCyA4xmejYczM9U3dwTBCCFd0JeQDTpQ3+tBEYGT+RJehElMcloER4 tS+Z2Q+DIRL5Wdg813WQMdjMAXXy6v2cpta9Ggph2xN5mPZHRErAhKqwQk07KyBs+F+e QbT3lKFtzyrgndHZpov8hBUkfFIBpa23rlVSm0SUtaRi9Ns3pmnPb7cQI/WRpR8llPvW tjzw== X-Forwarded-Encrypted: i=1; AJvYcCUF3mI/H4sJ2zbwML3HXRXBf+6v5eMdpHkVrpDZYRT9JsqUx1GPZXWXDp9EqdieYFboyOiPAIztP5pC81P1nQ3/qnAxnnXswhd2v6pl X-Gm-Message-State: AOJu0YzkhxmbB1uK3qhZ3LHNXiqrc64/Q1rKCNXRV2S/EemKyMF7BeEV AeV0YPGwwuC1OLXW3kMJaIjU26WjDPaeGayl5vVnvfBf8ky/kN47JweBvW3gubI= X-Google-Smtp-Source: AGHT+IHJ+3hzCpvnZyCU0NAveIwNAiQTpS/ryykrIKxMS4WFefGFx6KYlVhSCrX+/3+fc0fO4MKcGg== X-Received: by 2002:a17:906:7095:b0:a59:bacc:b07e with SMTP id a640c23a62f3a-a5a2d66a801mr150614266b.59.1715342400439; Fri, 10 May 2024 05:00:00 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:00 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:42 +0200 Subject: [PATCH v2 19/31] arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-19-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 +- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 13 ----------= --- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/a= rch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index e937732abede..8c4f342b4f31 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -299,7 +299,7 @@ linux,cma { thermal-zones { skin-temp-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8280_adc_tm 5>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot= /dts/qcom/sc8280xp-pmics.dtsi index 945de77911de..1e3babf2e40d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -14,7 +14,7 @@ / { thermal-zones { pm8280_1_thermal: pm8280-1-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm8280_1_temp_alarm>; =20 trips { @@ -34,7 +34,7 @@ trip1 { =20 pm8280_2_thermal: pm8280-2-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm8280_2_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/q= com/sc8280xp.dtsi index 0549ba1fbeea..f63951186a5b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -5831,7 +5831,6 @@ sound: sound { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -5846,7 +5845,6 @@ cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -5861,7 +5859,6 @@ cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -5876,7 +5873,6 @@ cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -5891,7 +5887,6 @@ cpu-crit { =20 cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -5906,7 +5901,6 @@ cpu-crit { =20 cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -5921,7 +5915,6 @@ cpu-crit { =20 cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -5936,7 +5929,6 @@ cpu-crit { =20 cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -5951,7 +5943,6 @@ cpu-crit { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -5965,9 +5956,6 @@ cpu-crit { }; =20 gpu-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 2>; =20 trips { @@ -5981,7 +5969,6 @@ gpu-crit { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 15>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2596417B4FD for ; Fri, 10 May 2024 12:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342404; cv=none; b=CEZ9wIF3fto5YqGY/QSeTFVDgF02yhvWYXNGOJwlYWdjBccMdTY6Gwktgv00HHWPnyZ1OTS54HtGWwQNqThKb7Zp8pqSTD5P7ZO6ikBxa0PCOttm7OENbN108j1gXCRB0lveS5bS80fucDYeISPtFvZ2MvSVxV4LTbnzHs3MVoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342404; c=relaxed/simple; bh=STPjHaGKG8lMRQ7RNSghGTuvtkvIPGnzrhwmSxlHAgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AhDUzr538T+bpFGxj0uH8rkWr2vJHStJcmUpHZ0Xfn9K74eJ61b6c7EAFd7mDuHIbchtnCEsKxIEx7yTH+jj7vLdOuo1eNHTd+ZBnDm7SMH5yNTEzk6QKxLOflUKQAokiwVF8KnfvOuEU8MabgLuIlFGIcRuuuoxHGCrtSNTu/4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T7oczhUM; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T7oczhUM" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a599a298990so472134466b.2 for ; Fri, 10 May 2024 05:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342401; x=1715947201; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=V+I21DnvNty/zyDSyKxzKxRbFMMorSs7YKV/gyvrszY=; b=T7oczhUM3vUySFP41tuKFSCA0ugDBeFflUlPeQYOzq7TdzaWtOvVil7HsnJ5W720cF h5Gw8+LOOniAdXSdS6nTKHW2q52a3DqnV7KiKbv5ca/ETEdFPcyGbFdKdR6JTEd59JNO afX0w+M05FGmF/uoAvExt6+I9C2q01JgzfLJFmQm9Y+C+KM7A+E+kyTOFx9RwAHBjGBE z2zgXV5viGDlFDuqwyTwCQBt5k3j/SFPv+2iRmJJ8wVtoZOXgsnYChAvjZeUtblDrs+S seL8U+DaAE05NT2J8Hd8HL1u7xHY2cJ1OFuLG3Ut1PIVs/4Y6P3/jqu1DWcSm25mkv2l up+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342401; x=1715947201; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V+I21DnvNty/zyDSyKxzKxRbFMMorSs7YKV/gyvrszY=; b=D8poNwdY2wUXbQyDT8fRugRTx5bV6G1V+C/ublYfRRGtgKFRl2+itsZ+Qx08uZxwRX /l9hCiOcqZVCB5DfjD81JAwIr23u9Wru+UZ5SdZiE403gJYb7ORZTlHc80cZiHtmHFqq ML/UtHxmiHLA6Z8pBTP94CP6FEciTyDPRMlP+IhAkw3zl4qwY/6zzxL+FAQWzSBteUSr gm/Sy+yuzfe83mpc0lWHbUF88bj09piKka6Bm8WhVrUPVNP/XVE6bF+rheJhZPLkfiQJ 3/YTO7mfJcBMyMYgVZbvw7GgSo2K67ZJXGV0cA3qR6Upp0i9ORn4MpUfcSgE734vyJXj lfew== X-Forwarded-Encrypted: i=1; AJvYcCV9J8+PPat9ndRvQv97uutCuGqJmvhv/loLk6poNBN6b6ImR7zQf62RPdKHkntEUhQL3dB+a6mDZ3oqkep2aYaNTgLVUBRU8sU4iLps X-Gm-Message-State: AOJu0YyX3uSwN/9xJ9+y6QTTgflXotOZ37hHbiqdZmTOKybYlvaLu40F 71Yfm+kICxchZcZYuwmDlduX+SXCThN05f3Bl1+XrozfuiuvYJ+P0DZh/nipWSE= X-Google-Smtp-Source: AGHT+IEhxpmHNBgjuYBwmH9bYRqf7jbpbpCMbHjTfWRWqL6htpjUAYOsOUQ0VRtYwYsYFsbFbhX+CA== X-Received: by 2002:a17:906:7c91:b0:a59:ad47:756f with SMTP id a640c23a62f3a-a5a2d6756e3mr167352166b.74.1715342401721; Fri, 10 May 2024 05:00:01 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:01 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:43 +0200 Subject: [PATCH v2 20/31] arm64: dts: qcom: sdm660-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-20-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm660.dtsi | 1 - arch/arm64/boot/dts/qcom/pm660l.dtsi | 1 - arch/arm64/boot/dts/qcom/sdm630.dtsi | 9 --------- 3 files changed, 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom= /pm660.dtsi index 98dc04962fe3..23741ab34b04 100644 --- a/arch/arm64/boot/dts/qcom/pm660.dtsi +++ b/arch/arm64/boot/dts/qcom/pm660.dtsi @@ -13,7 +13,6 @@ / { thermal-zones { pm660-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&pm660_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qco= m/pm660l.dtsi index 6fdbf507c262..0094e0ef058b 100644 --- a/arch/arm64/boot/dts/qcom/pm660l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm660l.dtsi @@ -13,7 +13,6 @@ / { thermal-zones { pm660l-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&pm660l_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qco= m/sdm630.dtsi index f5921b80ef94..7702d42e82c1 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2422,7 +2422,6 @@ sound: sound { thermal-zones { aoss-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 0>; =20 @@ -2437,7 +2436,6 @@ aoss_alert0: trip-point0 { =20 cpuss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 1>; =20 @@ -2452,7 +2450,6 @@ cpuss0_alert0: trip-point0 { =20 cpuss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 2>; =20 @@ -2467,7 +2464,6 @@ cpuss1_alert0: trip-point0 { =20 cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 3>; =20 @@ -2488,7 +2484,6 @@ cpu0_crit: cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 4>; =20 @@ -2509,7 +2504,6 @@ cpu1_crit: cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 5>; =20 @@ -2530,7 +2524,6 @@ cpu2_crit: cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 6>; =20 @@ -2557,7 +2550,6 @@ cpu3_crit: cpu-crit { =20 pwr-cluster-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 7>; =20 @@ -2578,7 +2570,6 @@ pwr_cluster_crit: cpu-crit { =20 gpu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens 8>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA38B17BB15 for ; Fri, 10 May 2024 12:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342406; cv=none; b=McPfOROKDtlyPVENVZ0jnqMc7wXhE2qr7GYbhH3qsTnwfyvqJsCv8h6NG7YOzx09zDn/FE74EJk62Dz1rzkGwanYAQz7kLhmN6yEWjI5v4RIVRE8E4g4NJ1/V0f3hRbta1UqipxSQRlmVYE+ObHe/h9H68t7MZ3IHIdxGJiyc7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342406; c=relaxed/simple; bh=8bUEbq+oRJxkRBqPHpqaLWyrSKKIG6Sx+NAi7BQ/W74=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ClD+z6BF95jRa2S1ODxqoi8vpBxEG/qhkV1oMRd8UPMUghuX7fVguAloA2j4KfAIO+t5sIrSP49c2H8Ar3qylCYB2d4+25WGJGywuXUzQE+cYKhC3QTH6/9lrCLYt9GTGxDWtxy5aI0Yy/f416q+9SEOLSB5NUZl+hk/y5MiL3s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=aaauLdqc; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aaauLdqc" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59b81d087aso483389166b.3 for ; Fri, 10 May 2024 05:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342403; x=1715947203; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rLNTyk4X9fC3GC8MPmd2z/cegf9V5wRXHvil6Eq3ejM=; b=aaauLdqcuri8CArY0oA5L+MkTh7hzk2LgyRCLP/88ny9z1K6I4RDudMePeSPQ44a57 VHM+ADk9j99h2ERH1iK4e61eRd/w3UgaYJvFmkJtzVyjTJFGp8W/Hc0hvxEC4VcNRffw 8r5LR/92HF4C4X3JjnAT+dgupn54yBydS/MvireVvw3PQ/EioqiYahyyylV50E6nJct3 PBgxpGe8rD88c/MXHi8HpjxNb8IaKsXwhCF5zMFQTL5ajVuaOKXbJa3ifJgLqWZt8nwA CUO1rW4IWnRJI99MKtFIBC9heORgkqazPt7f7IG9fiHgHbnaBy2842v2drTUQiIRaGcB f2PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342403; x=1715947203; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rLNTyk4X9fC3GC8MPmd2z/cegf9V5wRXHvil6Eq3ejM=; b=b/uaPMbQze6m3oqE3xnyc5A7keuroCoaiT8OhOs2qdb5BWVCWxUyjGR88KdsGh/2Sl Stsy1nyajNuhgOQDt38gPg246dphaogbR/TNr3vqgYsMn7Kf9y0VgLQpOhtzQ/M4WmJj mizBvONdlxveWb5PhDLIUCGhu6MgGJlRDRhuwRrIODVfrJgWSyVg61ydAKgwTDdhpCjo j9pqIqDpcouU+uitDwuEDJMidNiaVM7Go15XDsMfDaEL9Lopx2DB5fR9VsE33tlIIlsd 4GbrgtXLWXmBaeH4Cq2kS3U/mEw6MnK8Dtb8uId9fQNZCxxPZCE5IAe1JQUe0kZP/rU3 OIdw== X-Forwarded-Encrypted: i=1; AJvYcCWjPa4ffcJsYgDjLSOfV5k34d1ZYoPf4RKetXgJeeMGLXkU01LL4CBLJPxb8+zns/PlUqzG0atvvRCEl+CoAh6QoQT1lKDNeQ+12Lwv X-Gm-Message-State: AOJu0YwhzS6fzi3CWA7Ko3O+MLuWwwB666EW6MJFH7WKykKTu8oYhigD oEGyTIvJxeecxrF2IHLH7DW0z1Ih7Z0LajMzpzEzu5ZLru2M49zWoDN5EBTImlc= X-Google-Smtp-Source: AGHT+IFZ2kEhW1fWxFTWzlTM66pG7YgPcckaHT9r22C77H6xHhqog5aY2OVcyYaTidPWcopuaL2MHA== X-Received: by 2002:a17:906:f296:b0:a59:cb29:3fa8 with SMTP id a640c23a62f3a-a5a2d53adbbmr256281866b.14.1715342403343; Fri, 10 May 2024 05:00:03 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:03 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:44 +0200 Subject: [PATCH v2 21/31] arm64: dts: qcom: sdm845-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-21-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 12 ------------ arch/arm64/boot/dts/qcom/sdm845.dtsi | 21 --------------------- 2 files changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/= qcom/sdm845-mtp.dts index 76bfa786612c..2391f842c903 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -51,9 +51,6 @@ vreg_s4a_1p8: pm8998-smps4 { =20 thermal-zones { xo_thermal: xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm8998_adc_tm 1>; =20 trips { @@ -66,9 +63,6 @@ trip-point { }; =20 msm_thermal: msm-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm8998_adc_tm 2>; =20 trips { @@ -81,9 +75,6 @@ trip-point { }; =20 pa_thermal: pa-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm8998_adc_tm 3>; =20 trips { @@ -96,9 +87,6 @@ trip-point { }; =20 quiet_thermal: quiet-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&pm8998_adc_tm 4>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qco= m/sdm845.dtsi index 10de2bd46ffc..57507d6ec918 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5358,7 +5358,6 @@ sound: sound { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -5385,7 +5384,6 @@ cpu0_crit: cpu-crit { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -5412,7 +5410,6 @@ cpu1_crit: cpu-crit { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -5439,7 +5436,6 @@ cpu2_crit: cpu-crit { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -5466,7 +5462,6 @@ cpu3_crit: cpu-crit { =20 cpu4-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -5493,7 +5488,6 @@ cpu4_crit: cpu-crit { =20 cpu5-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -5520,7 +5514,6 @@ cpu5_crit: cpu-crit { =20 cpu6-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -5547,7 +5540,6 @@ cpu6_crit: cpu-crit { =20 cpu7-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -5574,7 +5566,6 @@ cpu7_crit: cpu-crit { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -5589,7 +5580,6 @@ aoss0_alert0: trip-point0 { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -5609,7 +5599,6 @@ cluster0_crit: cluster0-crit { =20 cluster1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -5629,7 +5618,6 @@ cluster1_crit: cluster1-crit { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -5651,7 +5639,6 @@ gpu_top_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -5673,7 +5660,6 @@ gpu_bottom_alert0: trip-point0 { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -5688,7 +5674,6 @@ aoss1_alert0: trip-point0 { =20 q6-modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -5703,7 +5688,6 @@ q6_modem_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -5718,7 +5702,6 @@ mem_alert0: trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -5733,7 +5716,6 @@ wlan_alert0: trip-point0 { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -5748,7 +5730,6 @@ q6_hvx_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -5763,7 +5744,6 @@ camera_alert0: trip-point0 { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -5778,7 +5758,6 @@ video_alert0: trip-point0 { =20 modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A8B917BB3A for ; Fri, 10 May 2024 12:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342409; cv=none; b=l4t5sflnev72ld5yo+3fBztuCTgwzPhGj+dVhz+nPelgiQPyG3yl3+UJ1Fyvtkghn4Jq8YEHZ7AZUJOGW3fYDL6JGSoKQFvRnwzbmjORwiaf5b2mzfJTNpOWcLFTJ6YGCWLlf8zqT6dooZLmINFdCYtGN7EuFpAnU1z/PffWv0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342409; c=relaxed/simple; bh=MeOx5lJR3k+o/4GA4O92CCW8bkuSqKr2XXu3nUKqu1E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nXnF9d8PoOjx1CF21wKzv72F6LKxnQyADMZvCrWPni/fTi3LupdC/Z6QbIGiAEefnUV3rhXXmAFgo6H3QaqgLomdosn3lBIkjiggt9WOW7HybsAOHKPJBqTPZxV+7m4eX8gQoNnBF2qUxlV/hHGR5Ln92+5wFjSzM9b8wcfEU/o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Br7djQsT; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Br7djQsT" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59a609dd3fso339517466b.0 for ; Fri, 10 May 2024 05:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342404; x=1715947204; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ph1Uf67WwkLDmViw+zsuiujGZ7qdtyz/KFSmroN7sqQ=; b=Br7djQsTPb4kLMyjbLWJEC7qHZnR452h3sYM5LSwL1wAuWsxdzmwOV464ep6FBEn/I kkeBWycOj+tREokVkCINBbaO2VaCe3X2vHW+axu3YLwDdigHzt9V0wP3L745Hk6D4sKm hUzGMcbD/VClv3haiy+cw/1+nBMboKJ9FeTTbXZs8AvhDtmrGgtuaiJQEUHzNe423U6e 114uD4MkDKmgT72/HT9+6fK2ijulUdHn0ZSVJzqRlXMJvrJAbqWbe4Hsdb5XAjJoYSfI /gzjEA7btKsRjrWrUQTNLkQPB16JOpQCfOGvteY2VpiExC51tmO0l+Dz8aSpEmPvtl+H RkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342404; x=1715947204; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ph1Uf67WwkLDmViw+zsuiujGZ7qdtyz/KFSmroN7sqQ=; b=hcIDQPHMb3acs2zH2MwFavidOrDYzlUV+hnWVrcWtMQrs3MZjoBqTIIOOO3r/L7s5O qHk9ibZti3+tt+5/p4n4rNkO8wtMQMg5gryuCekzuiQ1gPcnI3/D5Qn/is0a0gLBWBx0 E1ZbY4YSAZvNdlYS+JEYIYri6lC/hUBVGgJviknW3JObkLjBZDYS9MJXAOvy3TD2WiuS ZpCDay/BMBHkUVPxoqio6jChYjVN9bewkaCS58P4nh0/+rzu3CkbncQ7RAtFnwt5iclW N91Ot1cuNRaHV4jHT+a+YNdZMIDZ3pym1PJBM0pAgZN5yOU6p+NArKS5hVC5zm5mjcU6 5KiA== X-Forwarded-Encrypted: i=1; AJvYcCWr1PaP1ORVEy9E6Yv/YgzM86joEIXVUGcMqxW6LxLZZ32CLzvhkdrl0VKtl8r8E276b4+G+uN9jmjLI9Bm6JqUvpRwX4OOvOiih9cZ X-Gm-Message-State: AOJu0YyYZgOkM6alS9C6CHJWhHrIMlhp5swnKMcfrYA9yNBXP569dR7q T2WJVRD6rfZKWWEErQ0cJRoIw8JHWorFAt8dviogaNbOyK1VWcmemmACxdwnah0= X-Google-Smtp-Source: AGHT+IHF/WjAxyiaTEhAozZZtZ83iBdXONsgD649kaMbOBkyOY5l4O5H6OUoIaPNIi0O4NQb6DYEWw== X-Received: by 2002:a17:906:bc50:b0:a59:cb28:a8ae with SMTP id a640c23a62f3a-a5a1123b477mr453575666b.0.1715342404593; Fri, 10 May 2024 05:00:04 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:04 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:45 +0200 Subject: [PATCH v2 22/31] arm64: dts: qcom: sm6115-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-22-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pmi632.dtsi | 1 - arch/arm64/boot/dts/qcom/sm6115.dtsi | 32 -------------------------------- 2 files changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pmi632.dtsi b/arch/arm64/boot/dts/qco= m/pmi632.dtsi index 94d53b1cf6c8..f192b2fb4f64 100644 --- a/arch/arm64/boot/dts/qcom/pmi632.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi632.dtsi @@ -11,7 +11,6 @@ / { thermal-zones { pmi632-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmi632_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qco= m/sm6115.dtsi index aca0a87092e4..0a0bb5310849 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -3011,8 +3011,6 @@ cpufreq_hw: cpufreq@f521000 { =20 thermal-zones { mapss-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -3031,8 +3029,6 @@ trip-point1 { }; =20 cdsp-hvx-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -3051,8 +3047,6 @@ trip-point1 { }; =20 wlan-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -3071,8 +3065,6 @@ trip-point1 { }; =20 camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -3091,8 +3083,6 @@ trip-point1 { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -3111,8 +3101,6 @@ trip-point1 { }; =20 modem1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -3131,8 +3119,6 @@ trip-point1 { }; =20 cpu4-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -3157,8 +3143,6 @@ cpu4_crit: cpu-crit { }; =20 cpu5-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -3183,8 +3167,6 @@ cpu5_crit: cpu-crit { }; =20 cpu6-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -3209,8 +3191,6 @@ cpu6_crit: cpu-crit { }; =20 cpu7-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -3235,8 +3215,6 @@ cpu7_crit: cpu-crit { }; =20 cpu45-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -3261,8 +3239,6 @@ cpu45_crit: cpu-crit { }; =20 cpu67-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -3287,8 +3263,6 @@ cpu67_crit: cpu-crit { }; =20 cpu0123-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -3313,8 +3287,6 @@ cpu0123_crit: cpu-crit { }; =20 modem0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -3333,8 +3305,6 @@ trip-point1 { }; =20 display-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -3353,8 +3323,6 @@ trip-point1 { }; =20 gpu-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C9CA17EB8D for ; Fri, 10 May 2024 12:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342409; cv=none; b=nLRvKl3rVenm7+IhJ/JPsC4I4wxUQFTFuBcjRTE51ACbAMYFQEpsftbbcfNz+4w/7YS9/KtyJVC2CiujB/eLhbJwriay9iSqdH4SmToog3BBiPkKXJM8oNRQzwjEdC+BUIgRHeAR2hP3tWAdGpV/oQsY67D9T8/MTckOXoWKbNg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342409; c=relaxed/simple; bh=n+li2cwWHgRrKcECYbFORheOLf9HHut1ebd58z5RuxM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZB5+6V89dABiuZOZXzJBx0vp5QSaJIhfEgzWRXgP0bBIREiFTBcKPdePc4Vg1Twh7VyfGBK2EGl6TME8S8hdLdB7HY6GlunUOjCXcx3YafZwvs4S92r5UP+Yw80+9efeaR7BIMHbKcbhlG4vMDipVhbmaaVv+qjnBrrXbL/VXRY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZEqCSvl/; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZEqCSvl/" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a59a64db066so497566066b.3 for ; Fri, 10 May 2024 05:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342406; x=1715947206; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MdLq6ANhotzD8Wq7SzTk1LdXv/mLsg3mxNzxsft68D8=; b=ZEqCSvl//8WdeL6iJmWVIgH/P6MV3/SoQ05zGIKkraqaf0xf3GGD1dVawXui4ywkaU vlkaE4xaifaGJI70PKixYr5qIMV97hCIRpZ3D/eMFsEme506msvSekQF7b31cpoXMODI Y97h7wkwO5ZGR87OHzJCd5o6lSsy3Lr3mxjeCw61cgVC1gclEptkkUcviHhBhORmg1KB hcbxxVJAp99JI+so9Q1Mbe71KyLX7FqCFoHlpnh9l/MCLEOe+tiMvOT8qda9CLOSXu/0 MA9JXQQXIuXO3GZ6vFku/Ug3YTJBegc3BdM79GV7MM+fOt1ULIvY38UB8lumTMBSxKk4 2KnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342406; x=1715947206; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MdLq6ANhotzD8Wq7SzTk1LdXv/mLsg3mxNzxsft68D8=; b=ZyUw+QuOlYyVU4YmAsHfG2H0ToM7CYMRJB3owJPyCrh1bxBroaoB2z7LN+ls6yVXaa Fe52OLVH84DcrVVCFR+4qbR9G8yezZ8s5xdnzzHH71OGHGKDg+scOc7+MYwjerQjeLq5 w3TvP0owo8dRSBjlGOi87Kb+mCoJs+ufaUoLoH1X9MaJxZg0p4b/a6Ak9cabrVgpu+tr vp76N+wUR+ZmvZ+4hRkJXwhgzg/CyEK6Ofx8sv4lmuSjefB5MXCe5+koK9y7nIFDHxOP n4d7BUSPfU8TzKycX9vSVKz/Y+OmRkSIEwVZnbDcEt43VP5EHOyGeR50FaHGZeLboiDe Zc8w== X-Forwarded-Encrypted: i=1; AJvYcCWLfNa6VEfxSvtIiVXvZjRidyAgtMLHO4s6BD0/OEyRxzoXbBkTOx54OSRvLFterKZBgj2dQBuGLf5Ajuo+GqL3UyQ40fk54utIJLvW X-Gm-Message-State: AOJu0YyydQRThswTjQzMkIrdKlR2NP69oWgkWrx0sY3bu+A5Sy5gvEvr E8sZ0KG2fftmH30m2rmlqmH3cmW7SeVP5WrLqKqOijKRQS5UWjMwCC05qnoXgSo= X-Google-Smtp-Source: AGHT+IEsEqN3TRFOD/nnvZ40YR3rbIDItI4fD/WsLeqnkGOepf3Ywd3tBX/71W3SRx32hKlC2elU1Q== X-Received: by 2002:a17:906:6415:b0:a59:adf8:a6d5 with SMTP id a640c23a62f3a-a5a2d6786fbmr158452666b.72.1715342406021; Fri, 10 May 2024 05:00:06 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:05 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:46 +0200 Subject: [PATCH v2 23/31] arm64: dts: qcom: sm6125-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-23-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm6125.dtsi | 1 - arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts | 8 -------- arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts | 6 ------ 3 files changed, 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6125.dtsi b/arch/arm64/boot/dts/qco= m/pm6125.dtsi index 99369a0cdb61..d0db28336fa9 100644 --- a/arch/arm64/boot/dts/qcom/pm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6125.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm6125-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm6125_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts b= /arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts index 08046f866f60..dcd05f303b78 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts @@ -90,8 +90,6 @@ cmdline_mem: memory@ffd00000 { =20 thermal-zones { rf-pa0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm6125_adc_tm 0>; =20 trips { @@ -104,8 +102,6 @@ active-config0 { }; =20 quiet-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <5000>; thermal-sensors =3D <&pm6125_adc_tm 1>; =20 trips { @@ -118,8 +114,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm6125_adc_tm 2>; =20 trips { @@ -132,8 +126,6 @@ active-config0 { }; =20 rf-pa1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm6125_adc_tm 3>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts b/arc= h/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts index a49d3ebb1931..994fb0412fcb 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts @@ -84,8 +84,6 @@ key-volume-up { =20 thermal-zones { rf-pa0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm6125_adc_tm 0>; =20 trips { @@ -98,8 +96,6 @@ active-config0 { }; =20 quiet-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <5000>; thermal-sensors =3D <&pm6125_adc_tm 1>; =20 trips { @@ -112,8 +108,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm6125_adc_tm 2>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E43EE17EB94 for ; Fri, 10 May 2024 12:00:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342410; cv=none; b=nGM0pJpjvwkwk8ks3YokwZHZsog6+4kl/9C8qu8LukHqd1NQTgi9Zwv3Bm7L8bHgI3QUWiBuaFPFwdlOkuBeIJVbOajw4+ae6RazsBAGQ95pN9WabWAlfHCha3xEl4QdeSzKkLNVpFaHd9DWpRTJUsaooZpaeLwOaoeE2+tLz7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342410; c=relaxed/simple; bh=m+oLLkcgcMUGdC6pLd8kE7nKrrHJZaql0563McJCUYg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ow6Hdem9Ge3K6GUFau+9GVdbqA7EF5bcI5d7jBadJIKiVkUVn2d3V0T3Mlu7UdMpXHkwFk4IUAjMNOAv/G92wRUOgYGhtira1WUta7sV4zUVA+SVr3js9NO7MTtyEOyjSvmATms3kXIF3jVAhPf7QgzYKNd7l1iDlLbsuo6j6s0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EYZvJFUD; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EYZvJFUD" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a59cdf7cd78so495108666b.0 for ; Fri, 10 May 2024 05:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342407; x=1715947207; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vvrabOJNhb0z6wZV2tI7cOl2sVxLJv29FkvPvZ4Kzsw=; b=EYZvJFUD2geOLCDPVzCFsDFOfEBvy5qVACxlNBz+3OvAmUYnvqXmTd6aeF2J7hNQtm KAFasnk1rhI3j1InC3G+zA9ZF67TNXdHz2h4Es5fEQMI7cA45yB5uYC1bi4dVKZs70hS zpS4Hlt2ekiPPMXt87zS8GsuJoCNgwaD3gtCTEXHXlL/FnwTFTmL6KMNOm350SynRE6s +F+0TANGJEHibfRCaou56sm+pqxYaijyNRpGrWILCbyGMrHbVDXiTy/yDuLlgprBlHGH AdOUOrRy8ei8PhmDvNhN35Bwk67eJGXC2ME0UWPXtdac23h6OnShdzoh+Mfigl3m31h/ k5Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342407; x=1715947207; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vvrabOJNhb0z6wZV2tI7cOl2sVxLJv29FkvPvZ4Kzsw=; b=nk1fdSualQOFN2AuDSWC1k+HWpQyWzfiDn47UM+aygAROVTe5GHeI5eNeIfhr14FSN 3DJMh7Dgbfy3NXzA5zJHFWVsRPh9HEHkg3d381J8HwFA1HHydgabSe29PR7v74BSNp4C vOzsVoLnC5JTlcPLbBy9IoWNCZx66deI0dudz63RP61s4dwECxgYgPfXrZWDdRcxx4/6 fpvr+zZvQnPjt+Ztx72dfv5Iv8Kx9kXEXOoRf31Ykn1OVAgLG9OSwJa7AKfEFdVwWxWf RLfvSiY5UvjAepHJzmls2b0hypYeI0L18Q8HiP6lGGcqx7hfV/7Cgcc9ntRAefJ3dRK8 +/9Q== X-Forwarded-Encrypted: i=1; AJvYcCWNK8jOMwjRI1S/9oPyCwJ2TzYFTxekm6lJTTC+xeVFuluazYI833m+Kty8Cb/CgeQzn1pQvrVReappJvFWLINdzLOLFnzDrByl1JYw X-Gm-Message-State: AOJu0YzaXzb92JYsfwHcbpMvr+5TNMTgymZi/kpyxF8nEcuJZXv8mn3r QkfeS0kYNC8roxlzdR2WHO2e8PWbE/tPE2zMRNE5ezu1DDONVTaRmh3WzmJ6e7M= X-Google-Smtp-Source: AGHT+IHaK+w4+qGYQNRt2b77eJfYPL6wMoW4G20TYAvbGdA0486bU7Yn5qtN3fIF2ML8Wddm4DHObg== X-Received: by 2002:a17:906:799:b0:a59:766b:d88 with SMTP id a640c23a62f3a-a5a2d5cca04mr159358766b.36.1715342407472; Fri, 10 May 2024 05:00:07 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:07 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:47 +0200 Subject: [PATCH v2 24/31] arm64: dts: qcom: sm6350-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-24-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm6350.dtsi | 1 - arch/arm64/boot/dts/qcom/sm6350.dtsi | 81 -------------------= ---- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 4 -- 3 files changed, 86 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6350.dtsi b/arch/arm64/boot/dts/qco= m/pm6350.dtsi index 3a2a841e83f1..a20ee2457101 100644 --- a/arch/arm64/boot/dts/qcom/pm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6350.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm6350-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm6350_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qco= m/sm6350.dtsi index 84ff20a96c83..abfaa1178a39 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -2831,9 +2831,6 @@ wifi: wifi@18800000 { =20 thermal-zones { aoss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -2846,9 +2843,6 @@ aoss0-crit { }; =20 aoss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -2861,9 +2855,6 @@ aoss1-crit { }; =20 audio-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -2876,9 +2867,6 @@ audio-crit { }; =20 camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -2891,9 +2879,6 @@ camera-crit { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -2919,9 +2904,6 @@ map0 { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -2947,9 +2929,6 @@ map0 { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -2975,9 +2954,6 @@ map0 { }; =20 cpu3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -3003,9 +2979,6 @@ map0 { }; =20 cpu4-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -3031,9 +3004,6 @@ map0 { }; =20 cpu5-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -3059,9 +3029,6 @@ map0 { }; =20 cpu6-left-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -3087,9 +3054,6 @@ map0 { }; =20 cpu6-right-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -3115,9 +3079,6 @@ map0 { }; =20 cpu7-left-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -3143,9 +3104,6 @@ map0 { }; =20 cpu7-right-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -3171,9 +3129,6 @@ map0 { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -3186,9 +3141,6 @@ cpuss0-crit { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -3201,9 +3153,6 @@ cpuss1-crit { }; =20 cwlan-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -3216,9 +3165,6 @@ cwlan-crit { }; =20 ddr-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -3231,9 +3177,6 @@ ddr-crit { }; =20 gpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -3259,9 +3202,6 @@ map0 { }; =20 gpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -3287,9 +3227,6 @@ map0 { }; =20 modem-core0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -3302,9 +3239,6 @@ modem-core0-crit { }; =20 modem-core1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -3317,9 +3251,6 @@ modem-core1-crit { }; =20 modem-scl-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -3332,9 +3263,6 @@ modem-scl-crit { }; =20 modem-vec-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -3347,9 +3275,6 @@ modem-vec-crit { }; =20 npu-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -3362,9 +3287,6 @@ npu-crit { }; =20 q6-hvx-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -3377,9 +3299,6 @@ q6-hvx-crit { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 11>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64= /boot/dts/qcom/sm7225-fairphone-fp4.dts index bc67e8c1fe4d..c50fa7f3a5fd 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -94,8 +94,6 @@ memory@efe01000 { =20 thermal-zones { chg-skin-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm7250b_adc_tm 0>; =20 trips { @@ -108,8 +106,6 @@ active-config0 { }; =20 conn-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm7250b_adc_tm 1>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4065517F375 for ; Fri, 10 May 2024 12:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342412; cv=none; b=tXb4StgDPPMz/E1svElsEWtow4n9cxrLLXL+e2JkRSpH9UhrjyzbDbWJ+pLAIs820rOxqQKjIveIHkiMBfcYBNpSyrCihLBJoKISoQP5f/tAmAgsNjPIt5TmnVY/rrbCTcYk7QtFmfzuSly0p2o0V8Cp0SlaFBgPRYGU2XGIWCc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342412; c=relaxed/simple; bh=dM06frtinfupKHldRRk+LQ3oyFP6ldIH+IYzotGsv0c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kuT+3k1DD+mIqcxJMl6Yf9FP/6wsLLFhsp0L0A4DvoP9a6N81kzziWSXcCzMfg7MkZa8Qlq2/bYQuDkvWI7EusieWoOAxItIyCYPl810uS2O/BQLjbWtK+zU4jpkb4D/4Y9EuJgyJsgu/LKDBGAHNQku1Xu3EuvTX4k6j6R8CLg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cT7P0K+y; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cT7P0K+y" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a59a0e4b773so459957966b.2 for ; Fri, 10 May 2024 05:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342409; x=1715947209; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mwg+NmMup1QputCYoDC/r/UpIJ5EK4OLQAees3Xkvdk=; b=cT7P0K+ydl7WLdlidj5WwAauuBX/UtDd/Ijb/+qR4+2OBPijTJ9IuX4raQFFIUEpBM vXAeR8kyChVQXHfHvQ0KvzW+CWcbzPc7BkNptFqyLvedXKaCqqSyYrNnsEtnXCCzGdez 8oKULUwmqFEKK6B/sx99hV+XHTwQh47n7Be5vlTT7fgPIDByd2S+fAAsCa2D6ZznsoMQ 5p2jQiGJsLlxoU2AFBGE490FkMMGZX4SvU5tFUJRzh1O2rIKnAgJtfT7KwAT1659/PjM peFfv+pu8qb9mY+WAFAbJfjff5+++I2hZ+DFPDR9GfcMXmCD807MYWywGbKxzwy44IWN GJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342409; x=1715947209; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mwg+NmMup1QputCYoDC/r/UpIJ5EK4OLQAees3Xkvdk=; b=DIUCKSmI9EQnPiAsV3HpGp8uywiGe+0EuBZyg9ILZanVKWfqfCYTYf/LmcDXUshgu6 TfkxRjjiQTFcBHUKyCM20N54pRNuZuNcOnkWeQnTqtRuUea9cmmQKuDPJGodb+J4vVId Kbl+RJZKFjlL1jdR2FT67LcLGCKJoORhRKN0qQ/8In2ogLwIOm1g6+Bw+fid5i6FaY24 TnHL5xSsZdp9erS2XyfmSUAkjiuXQE881TRcsY25Ll6P/LJI6S/bNL2Vpg/toCQ1VHoA Z4U3ICzJ9Vzdewvnc8u7FOt4bnHpjXeCehyM28xLPFqoDs551XeK4qvmz6HXpJeDyieQ TK3g== X-Forwarded-Encrypted: i=1; AJvYcCV2AN1stgSAZFEEkTibtp2drUeD3J3//t3M+hfLgNZVto0uqs/yTIq0Y0iLF+DgVA99pWMYJ5W4kjBHKuF1GwqZ75Mu0ERtgyHvKRKO X-Gm-Message-State: AOJu0YyeY51T56rmL4qiM3rI7zsWuC44N2cvUZq4UBINdk58wgN7VrOz R3dAsIGa6XFpGzcepbrirroexiOb8wBEWPm6JKFHx1v1kQ0QtOjdUKMWbiBoX+U= X-Google-Smtp-Source: AGHT+IGKkfh9HlLJdNmg53mc1MK1neyYvjTTFya/q/Hd2y+bRgwxfZUIhRWWzD7DkmK8TxFLpewllA== X-Received: by 2002:a17:907:6e8d:b0:a59:aa68:9992 with SMTP id a640c23a62f3a-a5a2d57ab93mr210340166b.18.1715342408887; Fri, 10 May 2024 05:00:08 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:08 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:48 +0200 Subject: [PATCH v2 25/31] arm64: dts: qcom: sm6375-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-25-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 78 --------------------------------= ---- 1 file changed, 78 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qco= m/sm6375.dtsi index f40509d91bbd..ddea681b536d 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1837,9 +1837,6 @@ cpufreq_hw: cpufreq@fd91000 { =20 thermal-zones { mapss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -1864,9 +1861,6 @@ mapss0_crit: mapss-crit { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -1891,9 +1885,6 @@ cpu0_crit: cpu-crit { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -1918,9 +1909,6 @@ cpu1_crit: cpu-crit { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -1945,9 +1933,6 @@ cpu2_crit: cpu-crit { }; =20 cpu3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -1972,9 +1957,6 @@ cpu3_crit: cpu-crit { }; =20 cpu4-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -1999,9 +1981,6 @@ cpu4_crit: cpu-crit { }; =20 cpu5-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -2026,9 +2005,6 @@ cpu5_crit: cpu-crit { }; =20 cluster0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -2053,9 +2029,6 @@ cluster0_crit: cpu-crit { }; =20 cluster1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -2080,9 +2053,6 @@ cluster1_crit: cpu-crit { }; =20 cpu6-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -2107,9 +2077,6 @@ cpu6_crit: cpu-crit { }; =20 cpu7-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -2134,9 +2101,6 @@ cpu7_crit: cpu-crit { }; =20 cpu-unk0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -2161,9 +2125,6 @@ cpu_unk0_crit: cpu-crit { }; =20 cpu-unk1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -2188,9 +2149,6 @@ cpu_unk1_crit: cpu-crit { }; =20 gpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -2215,9 +2173,6 @@ gpuss0_crit: gpu-crit { }; =20 gpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -2242,9 +2197,6 @@ gpuss1_crit: gpu-crit { }; =20 mapss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -2269,9 +2221,6 @@ mapss1_crit: mapss-crit { }; =20 cwlan-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -2296,9 +2245,6 @@ cwlan_crit: cwlan-crit { }; =20 audio-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -2323,9 +2269,6 @@ audio_crit: audio-crit { }; =20 ddr-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -2350,9 +2293,6 @@ ddr_crit: ddr-crit { }; =20 q6hvx-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -2377,9 +2317,6 @@ q6hvx_crit: q6hvx-crit { }; =20 camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -2404,9 +2341,6 @@ camera_crit: camera-crit { }; =20 mdm-core0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -2431,9 +2365,6 @@ mdm_core0_crit: mdm-core0-crit { }; =20 mdm-core1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -2458,9 +2389,6 @@ mdm_core1_crit: mdm-core1-crit { }; =20 mdm-vec-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -2485,9 +2413,6 @@ mdm_vec_crit: mdm-vec-crit { }; =20 msm-scl-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -2512,9 +2437,6 @@ msm_scl_crit: msm-scl-crit { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 10>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D21B1802AD for ; Fri, 10 May 2024 12:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342415; cv=none; b=bQ8vQ4jjxiTZWvSqjY30oSx083oyWniEceU4j2n6wfIbKWW0PJZFNsL/O/QJovLZeBNs9Z98XedzG8mi4aXuMVpPQMgk9AECgRn4PZJUEf2QhTY8vkDw/ZEs0G+haSl2cIkZKcbMKgH+WpgJskQaLlR8J2OWtEMCt0N5b3XXq4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342415; c=relaxed/simple; bh=ehRFjqLWRiLNvZRnyufAqB/NWP0ieFSlY50s9E/H5JM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gJQ+REpe3eSRPb5jbUkMXS3DoU4MA4jjjebKf2OPQjUf0n7tIJ2LqL4qDbGo9Td/aOS7aYhQDnPLg+6WNU5TJEeUV4joCMOvNHmyaOx2FJoWUeAXb5K75WtZTQ82RXDOJRUEb5r3HPOXAJ5wIsGD5X/uBp7B7gnOsniTYd7ygp0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MCQgewoI; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MCQgewoI" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-51fdc9af005so3107300e87.3 for ; Fri, 10 May 2024 05:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342410; x=1715947210; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jqWldNBkhC606D1/sb2WlbU/W4xvALOq8LBhMOZzI3U=; b=MCQgewoIXeCGOciHxoLlHWix8UWsSLf6ejwJD3W6aBE38rU02MDtoMxjuSdATH1avQ 5/afT+cv/nALLrCD+rzE8NfaF69umdhL6v2t+ThMxAcS7TH6IHlcVxc1BbuvpdqLacvP 916gfRcqlmb1ECnDifaNwZLa8D85/Q7xZG7aZlRgEeUoOs7oSZmX+NP/9UsrJC1GZ4gJ QSP66LktN22Py3PCZyYF/yGNeTH/iDRERqRJgSSqM9zbGfj0lHMe9lIPycsF+cYku+kM Z94kSkLTqPYzRQXZja8vHk1Iw/6BaVTteSZ0l7SB9LXOqVxMHtN5vN486Z0YLdOkRTwG i0TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342410; x=1715947210; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jqWldNBkhC606D1/sb2WlbU/W4xvALOq8LBhMOZzI3U=; b=tbe9Lski0PUbgLzXXaWWiXmNBeIXkD9AyTNzdRyuXAsGtVS255gKKIZQrSepNSBB4P 0qjvM0HGLnjAgBHqcSj0bxuQKsXVLrPSmnZLUvEswO5eoX0R+llYonFsy7CKuSjouqwq q4gM1XK6uHWa9XCqkArmvEwftSi3TSuB8PlSWKLflJHqz6IYsEwi/yzWA4cUalJK0hAJ tRKfdpRVd64tUIeMrrE99gJLjSD8Ah9hpKj2KAzVySpoS0PTfF+q3I1EWzfW40+UGlYc dAMao1DzpObjpFJUdqk304QyhgZYygJfIROaWpdm8S6Gjx4kKza/4Z8zdQXyjI5mHnqy ZLTQ== X-Forwarded-Encrypted: i=1; AJvYcCVFzdHsDIURxrawp+opR4lVoRCwIGJmNJyEfCqN6Nf+coXNY2q8xRmErJaIGzXVkLrsfEt6KibThg3mZ+v9dhKsSeyN8JGCdL25TDVZ X-Gm-Message-State: AOJu0YyOdiiMNhrRor4TTQf4zTFWSOb+yaJzB4Li7PEhOpSwm2z5V025 6fci8eEroM4VVI9v67Dp+ZaVCb0bGddVZ2SrATHysdOIsYYpDxmbH2qtIefLDuw= X-Google-Smtp-Source: AGHT+IF7rVWyxa7NuKmc9EzGfMcaE8FyPTnY8Ql+Ygkx3xCCPe6LVFTpwkyV2bSBZrKmQf9GRjvs8g== X-Received: by 2002:a19:2d04:0:b0:51c:778f:b569 with SMTP id 2adb3069b0e04-5220fe7931fmr1627201e87.29.1715342410335; Fri, 10 May 2024 05:00:10 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:10 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:49 +0200 Subject: [PATCH v2 26/31] arm64: dts: qcom: sm8150-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-26-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 1 - arch/arm64/boot/dts/qcom/pm8150b.dtsi | 1 - arch/arm64/boot/dts/qcom/pm8150l.dtsi | 1 - arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 1 - arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi | 1 - arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ---------------------------- 6 files changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qco= m/pm8150.dtsi index 3ba3ba5d8fce..a74a7ff660d2 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -13,7 +13,6 @@ / { thermal-zones { pm8150-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8150_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qc= om/pm8150b.dtsi index 1aee3270ce7b..3f7b0b6a1d10 100644 --- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -12,7 +12,6 @@ / { thermal-zones { pm8150b-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8150b_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qc= om/pm8150l.dtsi index ac08a09c64c2..3911d6d0d2e2 100644 --- a/arch/arm64/boot/dts/qcom/pm8150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -12,7 +12,6 @@ / { thermal-zones { pm8150l-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8150l_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi b/arch/arm64/boot/dt= s/qcom/pmm8155au_1.dtsi index dbd4b91dfe06..5084de66fc46 100644 --- a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi +++ b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi @@ -12,7 +12,6 @@ / { thermal-zones { pmm8155au-1-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmm8155au_1_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi b/arch/arm64/boot/dt= s/qcom/pmm8155au_2.dtsi index 1cee20ac2c9c..555e4a456ef1 100644 --- a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi +++ b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi @@ -11,7 +11,6 @@ / { thermal-zones { pmm8155au-2-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmm8155au_2_temp>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qco= m/sm8150.dtsi index ff22e4346660..1f597f03107b 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -4577,7 +4577,6 @@ timer { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -4621,7 +4620,6 @@ map1 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -4665,7 +4663,6 @@ map1 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -4709,7 +4706,6 @@ map1 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -4753,7 +4749,6 @@ map1 { =20 cpu4-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -4797,7 +4792,6 @@ map1 { =20 cpu5-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -4841,7 +4835,6 @@ map1 { =20 cpu6-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -4885,7 +4878,6 @@ map1 { =20 cpu7-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -4929,7 +4921,6 @@ map1 { =20 cpu4-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -4973,7 +4964,6 @@ map1 { =20 cpu5-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -5017,7 +5007,6 @@ map1 { =20 cpu6-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -5061,7 +5050,6 @@ map1 { =20 cpu7-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -5105,7 +5093,6 @@ map1 { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -5120,7 +5107,6 @@ aoss0_alert0: trip-point0 { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -5140,7 +5126,6 @@ cluster0_crit: cluster0-crit { =20 cluster1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -5160,7 +5145,6 @@ cluster1_crit: cluster1-crit { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 15>; =20 @@ -5182,7 +5166,6 @@ gpu_top_alert0: trip-point0 { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -5197,7 +5180,6 @@ aoss1_alert0: trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -5212,7 +5194,6 @@ wlan_alert0: trip-point0 { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -5227,7 +5208,6 @@ video_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -5242,7 +5222,6 @@ mem_alert0: trip-point0 { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -5257,7 +5236,6 @@ q6_hvx_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -5272,7 +5250,6 @@ camera_alert0: trip-point0 { =20 compute-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -5287,7 +5264,6 @@ compute_alert0: trip-point0 { =20 modem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -5302,7 +5278,6 @@ modem_alert0: trip-point0 { =20 npu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 8>; =20 @@ -5317,7 +5292,6 @@ npu_alert0: trip-point0 { =20 modem-vec-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 9>; =20 @@ -5332,7 +5306,6 @@ modem_vec_alert0: trip-point0 { =20 modem-scl-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 10>; =20 @@ -5347,7 +5320,6 @@ modem_scl_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 11>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC5771802D6 for ; Fri, 10 May 2024 12:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342415; cv=none; b=XT16V4vlB+RMjILQr7mIZiO4RcZYQx1J0/CkqEHA+4pwvjEynkzVt1gQvw6WrPrDLlTs7ww9H0mUx4rWJzO6zNopT3jtNXL8rTq9vyo+2Jgx6aFtAsUVgBTAR8TvCXi8x+/93474hz7wiG+D+VATknZ0KCOxn29o+km86y3eNy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342415; c=relaxed/simple; bh=Kbj3u/5ZImrDMVsR3HqJAVHmw82ATJgCVmX1NNlGqZo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vz6jZgWWFIBIRi0epVa5h7Y//Edoigl4e6kRKxdt05v3idRycK+fC1KYxpPxkLz+MEYWhoqbduoya2d8boBua5j96wm1oje2UTceHxYZ0W0Q0M7hjEHBRudI1ybcP8bRoB52ux/HKo6Sg7NoyZ7FC7/1Vr78i1akvun6tn6h3/o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gq9RYZ9l; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gq9RYZ9l" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso467134566b.1 for ; Fri, 10 May 2024 05:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342412; x=1715947212; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NcerLa4pMFHxPICxM5Wv2t1Zix02REiwHEd3ZZQE29M=; b=gq9RYZ9l8gR+DWrV+U/HGaBAki5F31q90bJ45QQbmDrmEoANZ8VrewaNis5jgOSt6p UsbxtKbHgeUQzZOQ2eSXrPfNpiqvLNLCex2PKqN+HKy5KVeH7mPp25G3JWHFAIZqz3Ye ftHOZzI+tKJYk26am1ACn8N+/0aX8IUXRyY1rV67dfMJbI8yTJeTWInbFfIpJlmFcPdq jHy6faKeeQyVJCA7eq4zil3Gua4YB4k0xol+LA2FSdpp+gIjilkRTkI00mHWMZM+Hxhr Di+J3uKq000z9dUWRTu/xIO0GEVaL6FKGhXMtsp46j1MT6D6wnhgx/cuLr7qPNUOuSK+ vLYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342412; x=1715947212; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NcerLa4pMFHxPICxM5Wv2t1Zix02REiwHEd3ZZQE29M=; b=nhHmF+M5n0+YRma5eejDGe/Jqt9jrJHGDaduIkICSvx6TiPDl7p9XJ51NDIpQNWTZl aHok802ChQaPzKZBjhmrQzvqjMIQ1YJWku5UP/ZXPj4kIIa/2xen57EUnSAzo9PtVSp0 BnnVS03f0PAR14LuwcKFEdBPOzchuSA4wXYvr1uCngD3o2/is91Jr2oLzKMBZ+7wvGvz Pq0lmY+BZBOPnrAGuh27VHLNqTWvTldkYx04jRAq5Cp3UkzvqQ00dKBViyagwXoo5M0p 4m8fa0Eon4pfeyNmGSQptJGdp7rW8wcUdAK7jnuUt6+c2CbKdamC179Yt42XHZrhK4m6 NyYg== X-Forwarded-Encrypted: i=1; AJvYcCWxUS3Ide7Xy22jr6h52yURND9Zmnq5zCGexaGTocD/ss5spm2REnLgz1YSsSuU7WJ7H1T+kc71QxapsPyndpxSHni85m1H0cvp7U3L X-Gm-Message-State: AOJu0YxoSynP//X26nWy3D+Q09tO7Urwrk1c9+/i4rRTUbMlldiz1V28 X4kTf92y1l0jyiNU91KErM8YqH6sWhX/6EKUskdsKmiMciqwCfb2begDz2fcStk= X-Google-Smtp-Source: AGHT+IFgIEGWnP+p+jo9UA0VCJltJFQpHO4F7X4gOVulJrMVO3ZKxInq7wveqsU4JQefavMXDbvNjg== X-Received: by 2002:a17:906:a845:b0:a59:9f7b:68d4 with SMTP id a640c23a62f3a-a5a2d5734eemr155334366b.28.1715342412151; Fri, 10 May 2024 05:00:12 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:11 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:50 +0200 Subject: [PATCH v2 27/31] arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-27-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 10 ---------- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 14 -------------- arch/arm64/boot/dts/qcom/sm8250.dtsi | 25 ------------------------- 3 files changed, 49 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts= /qcom/qrb5165-rb5.dts index cd0db4f31d4a..ce13fdfb0797 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -110,8 +110,6 @@ lt9611_3v3: lt9611-3v3 { =20 thermal-zones { conn-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150b_adc_tm 0>; =20 trips { @@ -124,8 +122,6 @@ active-config0 { }; =20 pm8150l-pcb-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 1>; =20 trips { @@ -138,8 +134,6 @@ active-config0 { }; =20 skin-msm-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 0>; =20 trips { @@ -152,8 +146,6 @@ active-config0 { }; =20 wifi-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 1>; =20 trips { @@ -166,8 +158,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/= qcom/sm8250-mtp.dts index 7ef99038cb37..21b2ca1def83 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -53,8 +53,6 @@ chosen { =20 thermal-zones { camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 0>; =20 trips { @@ -67,8 +65,6 @@ active-config0 { }; =20 conn-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150b_adc_tm 0>; =20 trips { @@ -81,8 +77,6 @@ active-config0 { }; =20 mmw-pa1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 2>; =20 trips { @@ -95,8 +89,6 @@ active-config0 { }; =20 mmw-pa2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 2>; =20 trips { @@ -109,8 +101,6 @@ active-config0 { }; =20 skin-msm-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 1>; =20 trips { @@ -123,8 +113,6 @@ active-config0 { }; =20 skin-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 1>; =20 trips { @@ -137,8 +125,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qco= m/sm8250.dtsi index 8ccade628f1f..1a1202bdd915 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6275,7 +6275,6 @@ timer { thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -6319,7 +6318,6 @@ map1 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -6363,7 +6361,6 @@ map1 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -6407,7 +6404,6 @@ map1 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -6451,7 +6447,6 @@ map1 { =20 cpu4-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -6495,7 +6490,6 @@ map1 { =20 cpu5-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -6539,7 +6533,6 @@ map1 { =20 cpu6-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -6583,7 +6576,6 @@ map1 { =20 cpu7-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -6627,7 +6619,6 @@ map1 { =20 cpu4-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -6671,7 +6662,6 @@ map1 { =20 cpu5-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -6715,7 +6705,6 @@ map1 { =20 cpu6-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -6759,7 +6748,6 @@ map1 { =20 cpu7-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -6803,7 +6791,6 @@ map1 { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -6818,7 +6805,6 @@ aoss0_alert0: trip-point0 { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -6838,7 +6824,6 @@ cluster0_crit: cluster0-crit { =20 cluster1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -6858,7 +6843,6 @@ cluster1_crit: cluster1-crit { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 15>; =20 @@ -6880,7 +6864,6 @@ gpu_top_alert0: trip-point0 { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -6895,7 +6878,6 @@ aoss1_alert0: trip-point0 { =20 wlan-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -6910,7 +6892,6 @@ wlan_alert0: trip-point0 { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -6925,7 +6906,6 @@ video_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -6940,7 +6920,6 @@ mem_alert0: trip-point0 { =20 q6-hvx-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -6955,7 +6934,6 @@ q6_hvx_alert0: trip-point0 { =20 camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -6970,7 +6948,6 @@ camera_alert0: trip-point0 { =20 compute-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -6985,7 +6962,6 @@ compute_alert0: trip-point0 { =20 npu-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -7000,7 +6976,6 @@ npu_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 8>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E11E180A78 for ; Fri, 10 May 2024 12:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342416; cv=none; b=b6DqKT7N7V2l1zUNI4ZNJ/0OTsuzmKT+tkY9SnTsRPwvhHdOq4Cj+rVU52y78HPmElsaEzfmL3GWrFrTof3l3nAgNLdoOFRPUycBetinsCYYB/6wx0ZCLdaQu7nBIZGb7l7JOeL5+xqJSTxeqxGvvYeCGglXX5vZOa4AGwo3Syw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342416; c=relaxed/simple; bh=rtAyHN0aARG3vHFCqAviHNM8zN1BapIEOwA+4qEl9PI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eglZQIYqMim3AvFfWJFsLFu3oV8JeawB6VvlcqLQ/DfLsMx/Sca89DJYNLbKwlwMmRVpTAqbb2Ru4bSDXb5CYd9zwkyj2eHCJ5SVHHJep6oQUbhzNov9n+2CLX+lAQl6vVPWWnYPCi1pHatw9N5jaL3uS/g7tJo/RFrHE90IrIg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dMGlpUgo; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dMGlpUgo" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59a609dd3fso339547666b.0 for ; Fri, 10 May 2024 05:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342413; x=1715947213; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5z4cvI7Lcb0O605OZHs6QyawD/22GU4H5rAQJC/a4Tk=; b=dMGlpUgoNdInFakx7+USYnCItZIPWr7K+lewoQdyanWrch9IlFj697BM9Q8AyEu2np 6uwtMvhsTFbrZ9C1VgDVOCyrBH/DNnxGAQU012K3TcZokZu6tFE7nc3PIPkUIH8/Zxkv R9RI6006agMm8/t0QoX8v0bVvY9N5+2Rioevkk27mbPBTLnlqjcBeF178hO1SZFcRzih I3sPzGH6EH7xlwbVUcvHVgzxdL8enL7kCV71wdNCyDNxXHlpCMkgNvT893dBKkR6RZ7+ yy2/DFVnyVlB+6eIMjEUAJoyBgCE0GuOlos/bn2riCgVKCESepE8FoTjCKKSNdHWrVwf FfLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342413; x=1715947213; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5z4cvI7Lcb0O605OZHs6QyawD/22GU4H5rAQJC/a4Tk=; b=hTRqWmGpqLnT60RW/u/xGcsAohNTjod+bpdNg1hA5d6qwQDWXdObmb8q6Nk3CdokuQ YRAYoR3qXdT5HVQOgS6rzqyL8O9RMcw4c8VD2eVva1UQgSEnHWcglAvAGYon3ND1B95j lHaSi6RvSMYGGMJ4mSRpjIXaY9Sqoqe8/ZUfiHRy9XLhjXUzqy+UzXvYRM1aL6CHb4sR r/GRmwW6pN0sRUqVTQ3si9QaQYdnECjSKKBYpvCEbzkq/XVPWQ+LyhiPRUemB+IuxCHz xhsdcx/C2dAL4+zCXQJaYKMZr7+QacHQfKuWg9jLEm1VsfxiTDjLzmCq0uxcTLElKrlN eu2w== X-Forwarded-Encrypted: i=1; AJvYcCVSd+8vwVavNACJAOpKKUqGPN1AzZ1ZYzi2Q4MrjmBanj7bXIVQUphXf5eW3FD61U9GdMQ64h8HTJIsMwjWt5IhJNzlM5gRL82SstwB X-Gm-Message-State: AOJu0YwT11dBrfsGvUAn/IASYjwoB+z3dDrawKZHd7g4csft9Box+TL6 db0tZ8CeoyNguJCR4s7tlFjYxQBq7uNKjn633nbprSfvnndXiI7SjDq3wbc8LGU= X-Google-Smtp-Source: AGHT+IEgY64Y+qPJSoaqbV3dOdLfJbH5SEYQx1ArUCtZ5kF8ddlcJ0gS5+6ZkGOmeECE7Mql1jqqQQ== X-Received: by 2002:a17:907:76f4:b0:a59:c3a1:23f9 with SMTP id a640c23a62f3a-a5a1155b44cmr451751766b.7.1715342413404; Fri, 10 May 2024 05:00:13 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:13 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:51 +0200 Subject: [PATCH v2 28/31] arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-28-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8350.dtsi | 2 +- arch/arm64/boot/dts/qcom/pm8350b.dtsi | 2 +- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 2 +- arch/arm64/boot/dts/qcom/pmr735a.dtsi | 2 +- arch/arm64/boot/dts/qcom/pmr735b.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8350.dtsi | 29 ----------------------------- 6 files changed, 5 insertions(+), 34 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350.dtsi b/arch/arm64/boot/dts/qco= m/pm8350.dtsi index 9ed9ba23e81e..cb55b23688d6 100644 --- a/arch/arm64/boot/dts/qcom/pm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350.dtsi @@ -10,7 +10,7 @@ / { thermal-zones { pm8350_thermal: pm8350-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm8350_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qc= om/pm8350b.dtsi index 05c105898892..cf82f8a64a9b 100644 --- a/arch/arm64/boot/dts/qcom/pm8350b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350b.dtsi @@ -10,7 +10,7 @@ / { thermal-zones { pm8350b_thermal: pm8350b-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm8350b_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qc= om/pm8350c.dtsi index aa74e21fe0dc..1a24e6439e36 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -48,7 +48,7 @@ / { thermal-zones { pm8350c_thermal: pm8350c-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pm8350c_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qc= om/pmr735a.dtsi index febda50779f9..f8efd8e5e68f 100644 --- a/arch/arm64/boot/dts/qcom/pmr735a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi @@ -36,7 +36,7 @@ / { thermal-zones { pmr735a_thermal: pmr735a-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmr735a_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qc= om/pmr735b.dtsi index f7473e247322..09affc05b397 100644 --- a/arch/arm64/boot/dts/qcom/pmr735b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735b.dtsi @@ -10,7 +10,7 @@ / { thermal-zones { pmr735b_thermal: pmr735b-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmr735b_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qco= m/sm8350.dtsi index f7c4700f00c3..526d3c92eae8 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -3665,7 +3665,6 @@ compute-cb@8 { thermal_zones: thermal-zones { cpu0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -3709,7 +3708,6 @@ map1 { =20 cpu1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -3753,7 +3751,6 @@ map1 { =20 cpu2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -3797,7 +3794,6 @@ map1 { =20 cpu3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -3841,7 +3837,6 @@ map1 { =20 cpu4-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -3885,7 +3880,6 @@ map1 { =20 cpu5-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 8>; =20 @@ -3929,7 +3923,6 @@ map1 { =20 cpu6-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 9>; =20 @@ -3973,7 +3966,6 @@ map1 { =20 cpu7-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 10>; =20 @@ -4017,7 +4009,6 @@ map1 { =20 cpu4-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 11>; =20 @@ -4061,7 +4052,6 @@ map1 { =20 cpu5-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 12>; =20 @@ -4105,7 +4095,6 @@ map1 { =20 cpu6-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 13>; =20 @@ -4149,7 +4138,6 @@ map1 { =20 cpu7-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 14>; =20 @@ -4193,7 +4181,6 @@ map1 { =20 aoss0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 0>; =20 @@ -4208,7 +4195,6 @@ aoss0_alert0: trip-point0 { =20 cluster0-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -4228,7 +4214,6 @@ cluster0_crit: cluster0-crit { =20 cluster1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -4248,7 +4233,6 @@ cluster1_crit: cluster1-crit { =20 aoss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 0>; =20 @@ -4263,7 +4247,6 @@ aoss1_alert0: trip-point0 { =20 gpu-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -4285,7 +4268,6 @@ gpu_top_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -4307,7 +4289,6 @@ gpu_bottom_alert0: trip-point0 { =20 nspss1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -4322,7 +4303,6 @@ nspss1_alert0: trip-point0 { =20 nspss2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -4337,7 +4317,6 @@ nspss2_alert0: trip-point0 { =20 nspss3-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -4352,7 +4331,6 @@ nspss3_alert0: trip-point0 { =20 video-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -4367,7 +4345,6 @@ video_alert0: trip-point0 { =20 mem-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -4382,7 +4359,6 @@ mem_alert0: trip-point0 { =20 modem1-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 8>; =20 @@ -4397,7 +4373,6 @@ modem1_alert0: trip-point0 { =20 modem2-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 9>; =20 @@ -4412,7 +4387,6 @@ modem2_alert0: trip-point0 { =20 modem3-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 10>; =20 @@ -4427,7 +4401,6 @@ modem3_alert0: trip-point0 { =20 modem4-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 11>; =20 @@ -4442,7 +4415,6 @@ modem4_alert0: trip-point0 { =20 camera-top-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 12>; =20 @@ -4457,7 +4429,6 @@ camera1_alert0: trip-point0 { =20 cam-bottom-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <1000>; =20 thermal-sensors =3D <&tsens1 13>; =20 --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30E80180A91 for ; Fri, 10 May 2024 12:00:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; cv=none; b=CTY1sbhx2ZfAsN/H/DdBajdNk1fvemIU229l4G0fcaqTquGBejGu/FmgbVMxrnKaN0FcvPRGgiUpEAssvry5PTlYcxiPuwjboYOi9QApyYHI9TBFBCx8K0vwp2aArNemmmpBCAAKwhHyrvxqfJX5Zuo5AGnjMf6CN6nRHEvnxUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; c=relaxed/simple; bh=WsEg8exRfc0/pJm1n1kQRHGck94wqFc0YqydjjlEEbY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H6tISZI/2euRlzgi4wEfRcYY/3H0pH1eDiyuBYxSao0Yb59xGxTbI9qbKOent7p3x1C9gPJEovM8d6Fo9lyT+3PEKcWPFXxJV00Wlg4si/shPY41Pw0ysEv62vzR02RlBoXgVJaUmpLsGCUO8PR8Gen68kLLhnnXtkha3+sNfKQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=m4SWEuvr; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m4SWEuvr" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59b49162aeso463660866b.3 for ; Fri, 10 May 2024 05:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342415; x=1715947215; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vr5d9ufG+ZHCGxE9GxEqTnSNJcFNwQq/i9Dw49zdab0=; b=m4SWEuvradj6p5JsZ0peR3e84v7t2MNzv2t+07sTV+td4l1rcJcmy+cxbOGy3G7+yR +TJAtyopwyS21rC8kCquZyXOA+qX3hhiK8dbmQQAkRZs/cjUgg64ZNZFZ/aaURj+hjF5 gVDYPX7o/sx3U47kU+IElne1rVtTZOnYvA9SARQ0k576wLsvUEM961RBtYkpv8eV6187 6u0FVbjN4LvD8AvtO1btlOzVfRtH/I5RykxIuc3/mpeVogGaZIlmoR7v/MGINxZKNCX+ sH9wtg1EI/8TqA0cPHHcMSSVBuMgzpOqn2iz3O96MYePL+cPNODeVCrnQg3JRm0vu1e/ JzZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342415; x=1715947215; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vr5d9ufG+ZHCGxE9GxEqTnSNJcFNwQq/i9Dw49zdab0=; b=EGcEQda/PBsavYTQk5H/qM9l+nZQgMudhIMFpMj1lFV3mlxulPJERsLjiaImSsMxyl 3Knu/5Dl0NywUaNas+MjHoPOpTH6An6+P1rtN/+JVi8snB5QG62MT74QM4CXPc1/6xkB hSDgDtVKpvi2ZstmXtt9KBix3kgXqjns/jfK5vq5C8gtNV+Iu6fJD0aVQPMd/WPB45FN +P8ISNpp66KfHCGhAfTaMVS5LU3/+u+lfwBvxI1BjqKErmz6bo03kkdj+xll0fXURMQ6 45Fb6kmM2mCu+2rfRLNfbWQ5GsMcolrCkNMWtVSJgV/5mv4WEge3sDGaqD+Sub9LttgW JTfw== X-Forwarded-Encrypted: i=1; AJvYcCXYXQGunvlVMHWUjj3XnvYl3S0ZSzjNi/7mI8MaOFYera+AXUcBp26lxCe3iZBfALV/s+VnpAJlmjatd7r+5uTlpf0Mzq2CF1hwPhrG X-Gm-Message-State: AOJu0YzGbDKybXz2MZh1SQCispadhsrr5ygonM9eYrEHfDgSGs9+QOQJ 6M3Lp5J2LAvUBR+Uy4P/2ehzy071BdH4w83WwOPS726aBekCWJKYaWHkLntnIV4= X-Google-Smtp-Source: AGHT+IGD1I/n+QJj+tye1pIOExZ6QeUqWASMVZyOf6mOcmsoW1vQJ2U3fZOwl2iJK6ga4Cf7TjEqXw== X-Received: by 2002:a17:906:235b:b0:a59:a532:ed58 with SMTP id a640c23a62f3a-a5a2d55ac04mr151336566b.28.1715342414836; Fri, 10 May 2024 05:00:14 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:14 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:52 +0200 Subject: [PATCH v2 29/31] arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-29-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8450.dtsi | 1 - arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 16 ++++----- arch/arm64/boot/dts/qcom/sm8450.dtsi | 64 ++++-------------------------= ---- 3 files changed, 13 insertions(+), 68 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8450.dtsi b/arch/arm64/boot/dts/qco= m/pm8450.dtsi index ae5bce3cf46e..decb8809fd36 100644 --- a/arch/arm64/boot/dts/qcom/pm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8450.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8450-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8450_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/= qcom/sm8450-hdk.dts index 3be46b56c723..27b80f52d5bf 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -138,7 +138,7 @@ pmic_glink_sbu: endpoint { thermal-zones { camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 2>; =20 trips { @@ -152,7 +152,7 @@ active-config0 { =20 rear-tof-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 5>; =20 trips { @@ -166,7 +166,7 @@ active-config0 { =20 skin-msm-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 1>; =20 trips { @@ -180,7 +180,7 @@ active-config0 { =20 therm1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 3>; =20 trips { @@ -194,7 +194,7 @@ active-config0 { =20 therm2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 6>; =20 trips { @@ -208,7 +208,7 @@ active-config0 { =20 usb-conn-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 7>; =20 trips { @@ -222,7 +222,7 @@ active-config0 { =20 wide-rfc-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 4>; =20 trips { @@ -235,8 +235,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pmk8350_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qco= m/sm8450.dtsi index 616461fcbab9..ee60fd257efe 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4610,8 +4610,6 @@ sound: sound { =20 thermal-zones { aoss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -4630,8 +4628,6 @@ reset-mon-cfg { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -4650,8 +4646,6 @@ reset-mon-cfg { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -4670,8 +4664,6 @@ reset-mon-cfg { }; =20 cpuss3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -4690,8 +4682,6 @@ reset-mon-cfg { }; =20 cpuss4-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -4710,8 +4700,6 @@ reset-mon-cfg { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -4736,8 +4724,6 @@ cpu4_top_crit: cpu-crit { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -4762,8 +4748,6 @@ cpu4_bottom_crit: cpu-crit { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -4788,8 +4772,6 @@ cpu5_top_crit: cpu-crit { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -4814,8 +4796,6 @@ cpu5_bottom_crit: cpu-crit { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -4840,8 +4820,6 @@ cpu6_top_crit: cpu-crit { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -4866,8 +4844,6 @@ cpu6_bottom_crit: cpu-crit { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -4892,8 +4868,6 @@ cpu7_top_crit: cpu-crit { }; =20 cpu7-middle-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -4918,8 +4892,6 @@ cpu7_middle_crit: cpu-crit { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -4945,7 +4917,7 @@ cpu7_bottom_crit: cpu-crit { =20 gpu-top-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens0 14>; =20 cooling-maps { @@ -4984,7 +4956,7 @@ gpu_top_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { @@ -5022,8 +4994,6 @@ gpu_bottom_alert0: trip-point0 { }; =20 aoss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -5042,8 +5012,6 @@ reset-mon-cfg { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -5068,8 +5036,6 @@ cpu0_crit: cpu-crit { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -5094,8 +5060,6 @@ cpu1_crit: cpu-crit { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -5120,8 +5084,6 @@ cpu2_crit: cpu-crit { }; =20 cpu3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -5147,7 +5109,7 @@ cpu3_crit: cpu-crit { =20 cdsp0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -5179,7 +5141,7 @@ cdsp_0_config: junction-config { =20 cdsp1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -5211,7 +5173,7 @@ cdsp_1_config: junction-config { =20 cdsp2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -5242,8 +5204,6 @@ cdsp_2_config: junction-config { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -5263,7 +5223,7 @@ reset-mon-cfg { =20 mem-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -5288,8 +5248,6 @@ reset-mon-cfg { }; =20 modem0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -5320,8 +5278,6 @@ reset-mon-cfg { }; =20 modem1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 11>; =20 trips { @@ -5352,8 +5308,6 @@ reset-mon-cfg { }; =20 modem2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 12>; =20 trips { @@ -5384,8 +5338,6 @@ reset-mon-cfg { }; =20 modem3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 13>; =20 trips { @@ -5416,8 +5368,6 @@ reset-mon-cfg { }; =20 camera0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 14>; =20 trips { @@ -5436,8 +5386,6 @@ reset-mon-cfg { }; =20 camera1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 15>; =20 trips { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0BE5181313 for ; Fri, 10 May 2024 12:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; cv=none; b=PE1SNP3hp8ubK4DEl3XsbWQgxOWhG8yhKxuDEvZxFmWr1VVPIawInV8rZoO+pzdkWBE9Kcmj33AkhtEWHBNTlbSYRnFCsTwLImmbhdCQza/QxCJPTZ0l2F57fvEZgpivUGo+GxipFcBx7AiH6kjk/s9GzEkbvrfJzDRZwo/H14A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; c=relaxed/simple; bh=RpnPX6L5xT+g4Ua7kreea8uTdb2RCBo6JonTQuVdkhw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I63vvhoEi4OH+od4SJxwXG9gLD7nK6XyIwHq/8w46KHnXG/sD9ykW0ET1KRlKRGFc+e01JFBKlhXS7rhNjHMxE9/iN599MNiGYBdr2XLZXlaI9afCgTersCLtHhPyGkU9BPoNHpuSmj1PAZi2rIfLomWhzScAxxXPCZjIRoQYMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IKAEE2D8; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IKAEE2D8" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso467161166b.1 for ; Fri, 10 May 2024 05:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342416; x=1715947216; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YVSziX7FJBjNCJO0YzAuPmmm9IFVtBI4omoARShpTks=; b=IKAEE2D8kWcOjv3Takcf5ZopJC1fPcR/zB0RSoFzCDwEX3ZoAdIYBo2/JbPXhFX6y7 JHCYFPk8rA5juvgQgtyDWn7hUNUqHoPptEZ4t/m0jOVSz//rd65xmoOvSAuAGLYK+8NK MyxjfgDEx/Wkf2cj1JvQHxXzKuvyyS8xG5Prsdft4HqAtRdwQ+xkpwT1IyAX+1rWELoa QkYI01TKcEKgWMrNT8zqCfgKesyGGghSisa1n0OyuzEj5hyzjojjyeCTu1c+p0muyB5y /n/Te3Z8NhoBmxUiUC/H3S9L8SDxPKTPu+7UAsUlF5QRJjnmLdJ2ognOGt/jht0LRdGM 2QKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342416; x=1715947216; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YVSziX7FJBjNCJO0YzAuPmmm9IFVtBI4omoARShpTks=; b=ARX/E7iU3qelwLpAsoMczH9rCp2dRFMNo6NXiEzEVQpLVIRFnP39fRYqH2oliyXTvH 1rdD26zrcSpq9Aq4zDYvYhFy9tfp6aiEtvNJX9zXsNFwsYXCOx4aEdqBKZIm1zSJVA1Q DsJLNV3Q7xYDuF3ksPt0KIThciLGw8aNXgryKqfswAiYOQFyLxvkjpc/tgg2NfuvQ/ZF +t4wHJdQaaOgNHxvELklIHsgl47nDfXLJhntNbPydL9flKgBzCgF2mRiWAYCYaMOZqp5 qcXDSMUQetyAp0kYHkQhDsrGD1Vl4a/5kN0zDho1P6AkChgz7vKbZcF64DNs6aE3eoQm wlAg== X-Forwarded-Encrypted: i=1; AJvYcCU+Jd5aJAJ1hfpCnRo8MoKLZp4wu+YRjk8BaG2HwOG3F6ZpNikRbja0Y6mSW3Tq3BiIaJh4uxqXSO6713NtQO8wDPBnJ0a1sqItaE8t X-Gm-Message-State: AOJu0YxhCML4Zkx2cI+o4OSziukIxO+0QK0GJ0zYkTYfgkorPMvY1y6j vxxaQYnKmVKxo4GLM/ronSWJgu4zfUfOdFvh0LRQpdYvq2EfHhee30hKt2fRrec= X-Google-Smtp-Source: AGHT+IH56uY1KTjaLHcIdfy5rNaclBoelCruvhUB0dsKKyrzE5fGplNMhBXktXc3gGc8I+vOXPmrCQ== X-Received: by 2002:a17:907:76d3:b0:a59:c7d7:8b0f with SMTP id a640c23a62f3a-a5a2d57a717mr161064366b.29.1715342416263; Fri, 10 May 2024 05:00:16 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:15 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:53 +0200 Subject: [PATCH v2 30/31] arm64: dts: qcom: sm8550-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-30-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8010.dtsi | 2 - arch/arm64/boot/dts/qcom/pm8550.dtsi | 1 - arch/arm64/boot/dts/qcom/pm8550b.dtsi | 1 - arch/arm64/boot/dts/qcom/pm8550ve.dtsi | 1 - arch/arm64/boot/dts/qcom/pm8550vs.dtsi | 4 -- arch/arm64/boot/dts/qcom/pmr735d_a.dtsi | 1 - arch/arm64/boot/dts/qcom/pmr735d_b.dtsi | 1 - arch/arm64/boot/dts/qcom/sm8550.dtsi | 82 ++++++-----------------------= ---- 8 files changed, 13 insertions(+), 80 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8010.dtsi b/arch/arm64/boot/dts/qco= m/pm8010.dtsi index 0ea641e12209..ef330194946b 100644 --- a/arch/arm64/boot/dts/qcom/pm8010.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8010.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8010-m-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8010_m_temp_alarm>; =20 @@ -31,7 +30,6 @@ trip1 { =20 pm8010-n-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8010_n_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qco= m/pm8550.dtsi index 797a18c249a4..896bcacb6490 100644 --- a/arch/arm64/boot/dts/qcom/pm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8550-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8550b.dtsi b/arch/arm64/boot/dts/qc= om/pm8550b.dtsi index 72609f31c890..74d23b8970f4 100644 --- a/arch/arm64/boot/dts/qcom/pm8550b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550b.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8550b-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550b_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi b/arch/arm64/boot/dts/q= com/pm8550ve.dtsi index 4dc1f03ab2c7..9d4734eabf5a 100644 --- a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8550ve-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550ve_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi b/arch/arm64/boot/dts/q= com/pm8550vs.dtsi index 97b1c18aa7d8..6426b431616b 100644 --- a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550vs.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8550vs-c-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550vs_c_temp_alarm>; =20 @@ -31,7 +30,6 @@ trip1 { =20 pm8550vs-d-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550vs_d_temp_alarm>; =20 @@ -52,7 +50,6 @@ trip1 { =20 pm8550vs-e-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550vs_e_temp_alarm>; =20 @@ -73,7 +70,6 @@ trip1 { =20 pm8550vs-g-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8550vs_g_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi b/arch/arm64/boot/dts/= qcom/pmr735d_a.dtsi index 37daaefe3431..f9f1793d310e 100644 --- a/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pmr735d-k-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmr735d_k_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi b/arch/arm64/boot/dts/= qcom/pmr735d_b.dtsi index 3b470f6ac46f..d91fbd3bff10 100644 --- a/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pmr735d-l-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pmr735d_l_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qco= m/sm8550.dtsi index bc5aeb05ffc3..51c547872438 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -4571,8 +4571,6 @@ compute-cb@8 { =20 thermal-zones { aoss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -4591,8 +4589,6 @@ reset-mon-config { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -4611,8 +4607,6 @@ reset-mon-config { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -4631,8 +4625,6 @@ reset-mon-config { }; =20 cpuss2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -4651,8 +4643,6 @@ reset-mon-config { }; =20 cpuss3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -4671,8 +4661,6 @@ reset-mon-config { }; =20 cpu3-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -4697,8 +4685,6 @@ cpu3_top_crit: cpu-critical { }; =20 cpu3-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -4723,8 +4709,6 @@ cpu3_bottom_crit: cpu-critical { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -4749,8 +4733,6 @@ cpu4_top_crit: cpu-critical { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -4775,8 +4757,6 @@ cpu4_bottom_crit: cpu-critical { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -4801,8 +4781,6 @@ cpu5_top_crit: cpu-critical { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -4827,8 +4805,6 @@ cpu5_bottom_crit: cpu-critical { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -4853,8 +4829,6 @@ cpu6_top_crit: cpu-critical { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -4879,8 +4853,6 @@ cpu6_bottom_crit: cpu-critical { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -4905,8 +4877,6 @@ cpu7_top_crit: cpu-critical { }; =20 cpu7-middle-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -4931,8 +4901,6 @@ cpu7_middle_crit: cpu-critical { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 15>; =20 trips { @@ -4957,8 +4925,6 @@ cpu7_bottom_crit: cpu-critical { }; =20 aoss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -4977,8 +4943,6 @@ reset-mon-config { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -5003,8 +4967,6 @@ cpu0_crit: cpu-critical { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -5029,8 +4991,6 @@ cpu1_crit: cpu-critical { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -5056,7 +5016,7 @@ cpu2_crit: cpu-critical { =20 cdsp0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 4>; =20 trips { @@ -5088,7 +5048,7 @@ cdsp0_junction_config: junction-config { =20 cdsp1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 5>; =20 trips { @@ -5120,7 +5080,7 @@ cdsp1_junction_config: junction-config { =20 cdsp2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 6>; =20 trips { @@ -5152,7 +5112,7 @@ cdsp2_junction_config: junction-config { =20 cdsp3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 7>; =20 trips { @@ -5183,8 +5143,6 @@ cdsp3_junction_config: junction-config { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -5204,7 +5162,7 @@ reset-mon-config { =20 mem-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -5229,8 +5187,6 @@ reset-mon-config { }; =20 modem0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -5261,8 +5217,6 @@ reset-mon-config { }; =20 modem1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 11>; =20 trips { @@ -5293,8 +5247,6 @@ reset-mon-config { }; =20 modem2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 12>; =20 trips { @@ -5325,8 +5277,6 @@ reset-mon-config { }; =20 modem3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 13>; =20 trips { @@ -5357,8 +5307,6 @@ reset-mon-config { }; =20 camera0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 14>; =20 trips { @@ -5377,8 +5325,6 @@ reset-mon-config { }; =20 camera1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 15>; =20 trips { @@ -5397,8 +5343,6 @@ reset-mon-config { }; =20 aoss2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 0>; =20 trips { @@ -5418,7 +5362,7 @@ reset-mon-config { =20 gpuss-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 1>; =20 cooling-maps { @@ -5457,7 +5401,7 @@ gpu0_junction_config: junction-config { =20 gpuss-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 2>; =20 cooling-maps { @@ -5496,7 +5440,7 @@ gpu1_junction_config: junction-config { =20 gpuss-2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 3>; =20 cooling-maps { @@ -5535,7 +5479,7 @@ gpu2_junction_config: junction-config { =20 gpuss-3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 4>; =20 cooling-maps { @@ -5574,7 +5518,7 @@ gpu3_junction_config: junction-config { =20 gpuss-4-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 5>; =20 cooling-maps { @@ -5613,7 +5557,7 @@ gpu4_junction_config: junction-config { =20 gpuss-5-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 6>; =20 cooling-maps { @@ -5652,7 +5596,7 @@ gpu5_junction_config: junction-config { =20 gpuss-6-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 7>; =20 cooling-maps { @@ -5691,7 +5635,7 @@ gpu6_junction_config: junction-config { =20 gpuss-7-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 8>; =20 cooling-maps { --=20 2.40.1 From nobody Sun Dec 14 19:11:27 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A39AD181B88 for ; Fri, 10 May 2024 12:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342421; cv=none; b=L3n0BoVsf8rLxwHEI+8CymjvBpT1A+2aK4A+RnxvCYcAThn3A0TrL+mYjNxD+ecu7rxEMgTuq9m6bLFvSV8k2rONynOJsAVkRwo98yriV0N0N+3a5Z3yj4OIEBFtbpPR5DbRroqx4puSfjRRQ2dm/wAIGJkz36IZTCnf86JByWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342421; c=relaxed/simple; bh=lTJ6K/Pp6aZuNm1LsZs8XB234soM5FV25Lbeq0UWqMQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Nmg2b/S8BYNw7zAxml7+dMFgNbZHzkkHgOIuAQc5C5A6AR9r03MtSsBniKL5U93IvHJ5Phikmdn8m5SXEOgt5OsRc4rePVF/PqmVqeU3Yq8g484D/TaDyJdr0FD24UqvWDEJWV6jrN4tKkH1mVnSB7GBubXHHdjDPQFdXz9xBzA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xccwzhcE; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xccwzhcE" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59cdd185b9so539551966b.1 for ; Fri, 10 May 2024 05:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342418; x=1715947218; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BERj8pLaPZ3uX/uMf+Fj+AKRTbTKw3vHyZCsluwXv+0=; b=xccwzhcEBMdagyBUBCXOWACpuCQsb8JOuGmzELOHuG7HelsPGcAnqQpWDS4QhQHrPz sun+6qAYeW82bCxWYiq8S38aV4SuOHvqZg4qu2HVQxKLyuqkyeqaw07cTCpCgkbP5pcS WUJLfiQozDgXq75vZ5VaP3JH3Jwo+Wj2ef9MYiUZXng+HgYiOrvL8gWUzeGkblltgE7Z R+da75+qPDJ0lIOpZlcqHRqtCaTaqosnynfYcvsxKuX9OhhwPjw3MwAMC6KA4mSNPij2 Soh9kU0xp/PdNF7ORoIVKGmVnYsmnxbn1GQV77YJXZnZrZSEa/HvxzjXpsLsG3FLFkiN yD8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342418; x=1715947218; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BERj8pLaPZ3uX/uMf+Fj+AKRTbTKw3vHyZCsluwXv+0=; b=M+k3bSgvpZ7iswWdEf+BTskr5DQGqEPcdVvl/I8NO5spg/lqQEoVX3bDX3bl61X1XG sjWXsnilj4bgdqlcNemGK5b1DcSQ5V2W2uPC6lgDwSdp3k4j+f+5kcIpogicV2BsIbdt TUhUodn66hectWvE30gmeNPbN4ABMqLaQ0OZ7Ofkgc505DoItMHHbZ1dt9eXBsLwXf5/ 9p4rzoBQeQ00/uouWYjuxNyJ5Z8asDXjvsHgOhS0lr4DNov/j50WoyCDJQTUEW2fqPEs TKJYEF7H0B3EaU5t+fgnqiFstMRVcEzWoy+956amky1df/6V6HqqyaRiN1odzbXtQgRA azpA== X-Forwarded-Encrypted: i=1; AJvYcCWF5S97aBAyU6Du+z00wgC9ZCbnQfDT5M+DpGStc0aDfhZg+mFJ0IWm4Mf4WxGqu/z1IZEstJiHAhvWlj4BMs5MVsLIheH9OJvX/GXJ X-Gm-Message-State: AOJu0YzXveS+f/UlGTspmiZwobPtfi/+FVYMEBlBMZeCphec73ODeI6X o8+rkqztGI95FMQOHQ/f+q0lPVHH4W6PU2sYkM8N7cR70DIJp9lRihmqU7qqihc= X-Google-Smtp-Source: AGHT+IFshxhb13HlEmsagkrBj3R5X4Rd0f8NQemiFOeZCNIFrBprbwJ4kwH0lvU2QDfbsvbr3096nQ== X-Received: by 2002:a17:906:fa16:b0:a59:c3a7:59d3 with SMTP id a640c23a62f3a-a5a2d1afdd1mr229036966b.13.1715342417680; Fri, 10 May 2024 05:00:17 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:17 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:54 +0200 Subject: [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240510-topic-msm-polling-cleanup-v2-31-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 88 +++++++-------------------------= ---- 1 file changed, 16 insertions(+), 72 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 62a6e77730bc..39e789b21acc 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5328,8 +5328,6 @@ compute-cb@12 { =20 thermal-zones { aoss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -5348,8 +5346,6 @@ aoss0-critical { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -5368,8 +5364,6 @@ cpuss0-critical { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -5388,8 +5382,6 @@ cpuss1-critical { }; =20 cpuss2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -5408,8 +5400,6 @@ cpuss2-critical { }; =20 cpuss3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -5428,8 +5418,6 @@ cpuss3-critical { }; =20 cpu2-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -5454,8 +5442,6 @@ cpu2-critical { }; =20 cpu2-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -5480,8 +5466,6 @@ cpu2-critical { }; =20 cpu3-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -5506,8 +5490,6 @@ cpu3-critical { }; =20 cpu3-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -5532,8 +5514,6 @@ cpu3-critical { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -5558,8 +5538,6 @@ cpu4-critical { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -5584,8 +5562,6 @@ cpu4-critical { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -5610,8 +5586,6 @@ cpu5-critical { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -5636,8 +5610,6 @@ cpu5-critical { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -5662,8 +5634,6 @@ cpu6-critical { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -5688,8 +5658,6 @@ cpu6-critical { }; =20 aoss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -5708,8 +5676,6 @@ aoss1-critical { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -5734,8 +5700,6 @@ cpu7-critical { }; =20 cpu7-middle-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -5760,8 +5724,6 @@ cpu7-critical { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -5786,8 +5748,6 @@ cpu7-critical { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -5812,8 +5772,6 @@ cpu0-critical { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -5839,7 +5797,7 @@ cpu1-critical { =20 nsphvx0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 6>; =20 trips { @@ -5859,7 +5817,7 @@ nsphvx1-critical { =20 nsphvx1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 7>; =20 trips { @@ -5879,7 +5837,7 @@ nsphvx1-critical { =20 nsphmx0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 8>; =20 trips { @@ -5899,7 +5857,7 @@ nsphmx0-critical { =20 nsphmx1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 9>; =20 trips { @@ -5919,7 +5877,7 @@ nsphmx1-critical { =20 nsphmx2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 10>; =20 trips { @@ -5939,7 +5897,7 @@ nsphmx2-critical { =20 nsphmx3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 11>; =20 trips { @@ -5959,7 +5917,7 @@ nsphmx3-critical { =20 video-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 12>; =20 trips { @@ -5979,7 +5937,7 @@ video-critical { =20 ddr-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 13>; =20 trips { @@ -5998,8 +5956,6 @@ ddr-critical { }; =20 camera0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 14>; =20 trips { @@ -6018,8 +5974,6 @@ camera0-critical { }; =20 camera1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 15>; =20 trips { @@ -6038,8 +5992,6 @@ camera1-critical { }; =20 aoss2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 0>; =20 trips { @@ -6059,7 +6011,7 @@ aoss2-critical { =20 gpuss0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 1>; =20 trips { @@ -6079,7 +6031,7 @@ gpuss0-critical { =20 gpuss1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 2>; =20 trips { @@ -6099,7 +6051,7 @@ gpuss1-critical { =20 gpuss2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 3>; =20 trips { @@ -6119,7 +6071,7 @@ gpuss2-critical { =20 gpuss3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 4>; =20 trips { @@ -6139,7 +6091,7 @@ gpuss3-critical { =20 gpuss4-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 5>; =20 trips { @@ -6159,7 +6111,7 @@ gpuss4-critical { =20 gpuss5-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 6>; =20 trips { @@ -6179,7 +6131,7 @@ gpuss5-critical { =20 gpuss6-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 7>; =20 trips { @@ -6199,7 +6151,7 @@ gpuss6-critical { =20 gpuss7-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens2 8>; =20 trips { @@ -6218,8 +6170,6 @@ gpuss7-critical { }; =20 modem0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 9>; =20 trips { @@ -6238,8 +6188,6 @@ modem0-critical { }; =20 modem1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 10>; =20 trips { @@ -6258,8 +6206,6 @@ modem1-critical { }; =20 modem2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 11>; =20 trips { @@ -6278,8 +6224,6 @@ modem2-critical { }; =20 modem3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens2 12>; =20 trips { --=20 2.40.1