2024-05-10 11:59:46

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 00/31] Clean up thermal zone polling-delay

A trivial follow-up on the changes introduced in Commit 488164006a28
("thermal/of: Assume polling-delay(-passive) 0 when absent").

Should probably wait until v6.9-rc1 so that the patch in question is
in the base tree, otherwise TZs will fail to register.

FWIW, Compile-tested only (except 8280).

To: Bjorn Andersson <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: [email protected]
To: Krzysztof Kozlowski <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Konrad Dybcio <[email protected]>

Changes in v2:
- Un-drop passive delays. Whether they're useful where they're enabled
is a topic for another patchset, as it requires examination on a case-
-by-case basis.
- Better unify the style (newlines between properties)
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Konrad Dybcio (31):
arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays
arm64: dts: qcom: ipq8074-*: Remove thermal zone polling delays
arm64: dts: qcom: ipq9574-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8916-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8939-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8976-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8996-*: Remove thermal zone polling delays
arm64: dts: qcom: msm8998-*: Remove thermal zone polling delays
arm64: dts: qcom: pm7550ba: Remove thermal zone polling delays
arm64: dts: qcom: pms405: Remove thermal zone polling delays
arm64: dts: qcom: pmx75: Remove thermal zone polling delays
arm64: dts: qcom: qcm2290-*: Remove thermal zone polling delays
arm64: dts: qcom: qcs404-*: Remove thermal zone polling delays
arm64: dts: qcom: sa8775p-*: Remove thermal zone polling delays
arm64: dts: qcom: sc7180-*: Remove thermal zone polling delays
arm64: dts: qcom: sc7280-*: Remove thermal zone polling delays
arm64: dts: qcom: sc8180x-*: Remove thermal zone polling delays
arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays
arm64: dts: qcom: sdm660-*: Remove thermal zone polling delays
arm64: dts: qcom: sdm845-*: Remove thermal zone polling delays
arm64: dts: qcom: sm6115-*: Remove thermal zone polling delays
arm64: dts: qcom: sm6125-*: Remove thermal zone polling delays
arm64: dts: qcom: sm6350-*: Remove thermal zone polling delays
arm64: dts: qcom: sm6375-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8150-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8550-*: Remove thermal zone polling delays
arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays

arch/arm64/boot/dts/qcom/ipq6018.dtsi | 6 --
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 12 ---
arch/arm64/boot/dts/qcom/ipq9574.dtsi | 26 -------
arch/arm64/boot/dts/qcom/msm8916.dtsi | 5 --
arch/arm64/boot/dts/qcom/msm8939.dtsi | 9 ---
arch/arm64/boot/dts/qcom/msm8953.dtsi | 17 ++---
arch/arm64/boot/dts/qcom/msm8976.dtsi | 18 ++---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 14 ----
arch/arm64/boot/dts/qcom/msm8998.dtsi | 19 -----
arch/arm64/boot/dts/qcom/pm6125.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm6150.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm6150l.dtsi | 3 -
arch/arm64/boot/dts/qcom/pm6350.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm660.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm660l.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm7250b.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm7325.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm7550ba.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm8010.dtsi | 2 -
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/pm8350.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8350b.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8350c.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pm8450.dtsi | 1 -
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/pm8953.dtsi | 3 -
arch/arm64/boot/dts/qcom/pm8994.dtsi | 1 -
arch/arm64/boot/dts/qcom/pm8998.dtsi | 1 -
arch/arm64/boot/dts/qcom/pmi632.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/pmr735a.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmr735b.dtsi | 2 +-
arch/arm64/boot/dts/qcom/pmr735d_a.dtsi | 1 -
arch/arm64/boot/dts/qcom/pmr735d_b.dtsi | 1 -
arch/arm64/boot/dts/qcom/pms405.dtsi | 1 -
arch/arm64/boot/dts/qcom/pmx75.dtsi | 1 -
arch/arm64/boot/dts/qcom/qcm2290.dtsi | 30 --------
arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 14 ++--
arch/arm64/boot/dts/qcom/qcs404.dtsi | 10 ---
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 10 ---
arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 8 +-
arch/arm64/boot/dts/qcom/sa8775p.dtsi | 82 --------------------
.../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 ------
arch/arm64/boot/dts/qcom/sc7280.dtsi | 45 -----------
arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 2 -
arch/arm64/boot/dts/qcom/sc8180x.dtsi | 26 -------
.../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 ----
arch/arm64/boot/dts/qcom/sdm630.dtsi | 9 ---
arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 12 ---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 21 ------
arch/arm64/boot/dts/qcom/sm6115.dtsi | 32 --------
.../dts/qcom/sm6125-sony-xperia-seine-pdx201.dts | 8 --
.../boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts | 6 --
arch/arm64/boot/dts/qcom/sm6350.dtsi | 81 --------------------
arch/arm64/boot/dts/qcom/sm6375.dtsi | 78 -------------------
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 4 -
arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 -------
arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 14 ----
arch/arm64/boot/dts/qcom/sm8250.dtsi | 25 ------
arch/arm64/boot/dts/qcom/sm8350.dtsi | 29 -------
arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 16 ++--
arch/arm64/boot/dts/qcom/sm8450.dtsi | 64 ++--------------
arch/arm64/boot/dts/qcom/sm8550.dtsi | 82 ++++----------------
arch/arm64/boot/dts/qcom/sm8650.dtsi | 88 ++++------------------
77 files changed, 78 insertions(+), 973 deletions(-)
---
base-commit: 704ba27ac55579704ba1289392448b0c66b56258
change-id: 20240319-topic-msm-polling-cleanup-2616a8bece70

Best regards,
--
Konrad Dybcio <[email protected]>



2024-05-10 12:00:10

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 02/31] arm64: dts: qcom: ipq8074-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

@@ -997,7 +996,6 @@ nss-top-crit {

nss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 5>;

@@ -1012,7 +1010,6 @@ nss-0-crit {

nss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 6>;

@@ -1027,7 +1024,6 @@ nss-1-crit {

wcss-phya0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 7>;

@@ -1042,7 +1038,6 @@ wcss-phya0-crit {

wcss-phya1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 8>;

@@ -1057,7 +1052,6 @@ wcss-phya1-crit {

cpu0_thermal: cpu0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 9>;

@@ -1072,7 +1066,6 @@ cpu0-crit {

cpu1_thermal: cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 10>;

@@ -1087,7 +1080,6 @@ cpu1-crit {

cpu2_thermal: cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 11>;

@@ -1102,7 +1094,6 @@ cpu2-crit {

cpu3_thermal: cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 12>;

@@ -1117,7 +1108,6 @@ cpu3-crit {

cluster_thermal: cluster-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 13>;

@@ -1132,7 +1122,6 @@ cluster-crit {

wcss-phyb0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 14>;

@@ -1147,7 +1136,6 @@ wcss-phyb0-crit {

wcss-phyb1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 15>;


--
2.40.1


2024-05-10 12:00:25

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 03/31] arm64: dts: qcom: ipq9574-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 {

thermal-zones {
nss-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 3>;

trips {
@@ -763,8 +761,6 @@ nss-top-critical {
};

ubi-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 4>;

trips {
@@ -777,8 +773,6 @@ ubi_0-critical {
};

ubi-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 5>;

trips {
@@ -791,8 +785,6 @@ ubi_1-critical {
};

ubi-2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 6>;

trips {
@@ -805,8 +797,6 @@ ubi_2-critical {
};

ubi-3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 7>;

trips {
@@ -819,8 +809,6 @@ ubi_3-critical {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 8>;

trips {
@@ -833,8 +821,6 @@ cpu-critical {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 9>;

trips {
@@ -847,8 +833,6 @@ cpu-critical {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 10>;

trips {
@@ -877,8 +861,6 @@ map0 {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 11>;

trips {
@@ -907,8 +889,6 @@ map0 {
};

cpu2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 12>;

trips {
@@ -937,8 +917,6 @@ map0 {
};

cpu3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 13>;

trips {
@@ -967,8 +945,6 @@ map0 {
};

wcss-phyb-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 14>;

trips {
@@ -981,8 +957,6 @@ wcss_phyb-critical {
};

top-glue-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens 15>;

trips {

--
2.40.1


2024-05-10 12:00:41

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 04/31] arm64: dts: qcom: msm8916-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 5>;

@@ -2656,7 +2655,6 @@ map0 {

cpu2-3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

@@ -2686,7 +2684,6 @@ map0 {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

@@ -2713,7 +2710,6 @@ gpu_crit: gpu-crit {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 1>;

@@ -2728,7 +2724,6 @@ cam_alert0: trip-point0 {

modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 0>;


--
2.40.1


2024-05-10 12:00:57

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 05/31] arm64: dts: qcom: msm8939-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 5>;

@@ -2330,7 +2329,6 @@ map0 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 6>;

@@ -2361,7 +2359,6 @@ map0 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 7>;

@@ -2392,7 +2389,6 @@ map0 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 8>;

@@ -2423,7 +2419,6 @@ map0 {

cpu4567-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 9>;

@@ -2454,7 +2449,6 @@ map0 {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 3>;

@@ -2482,7 +2476,6 @@ gpu_crit: gpu-crit {

modem1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 0>;

@@ -2497,7 +2490,6 @@ modem1_alert0: trip-point0 {

modem2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

@@ -2512,7 +2504,6 @@ modem2_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 1>;


--
2.40.1


2024-05-10 12:01:42

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 08/31] arm64: dts: qcom: msm8996-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -3675,7 +3674,6 @@ cpu0_crit: cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -3696,7 +3694,6 @@ cpu1_crit: cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -3717,7 +3714,6 @@ cpu2_crit: cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -3738,7 +3734,6 @@ cpu3_crit: cpu-crit {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -3760,7 +3755,6 @@ map0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;

@@ -3782,7 +3776,6 @@ map0 {

m4m-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -3797,7 +3790,6 @@ m4m_alert0: trip-point0 {

l3-or-venus-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -3812,7 +3804,6 @@ l3_or_venus_alert0: trip-point0 {

cluster0-l2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -3827,7 +3818,6 @@ cluster0_l2_alert0: trip-point0 {

cluster1-l2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -3842,7 +3832,6 @@ cluster1_l2_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -3857,7 +3846,6 @@ camera_alert0: trip-point0 {

q6-dsp-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -3872,7 +3860,6 @@ q6_dsp_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -3887,7 +3874,6 @@ mem_alert0: trip-point0 {

modemtx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&pm8994_temp>;


--
2.40.1


2024-05-10 12:03:14

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 10/31] arm64: dts: qcom: pm7550ba: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm7550ba_temp_alarm>;


--
2.40.1


2024-05-10 12:04:06

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 18/31] arm64: dts: qcom: sc8180x-*: Remove thermal zone polling delays

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 <[email protected]>
---
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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmc8180_temp>;

@@ -40,7 +39,6 @@ trip2 {

pmc8180c-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmc8180c_temp>;

diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -3786,7 +3785,6 @@ cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -3801,7 +3799,6 @@ cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -3816,7 +3813,6 @@ cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -3831,7 +3827,6 @@ cpu-crit {

cpu4-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -3846,7 +3841,6 @@ cpu-crit {

cpu5-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -3861,7 +3855,6 @@ cpu-crit {

cpu6-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -3876,7 +3869,6 @@ cpu-crit {

cpu7-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -3891,7 +3883,6 @@ cpu-crit {

cpu4-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -3906,7 +3897,6 @@ cpu-crit {

cpu5-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -3921,7 +3911,6 @@ cpu-crit {

cpu6-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 13>;

@@ -3936,7 +3925,6 @@ cpu-crit {

cpu7-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 14>;

@@ -3951,7 +3939,6 @@ cpu-crit {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 0>;

@@ -3966,7 +3953,6 @@ trip-point0 {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -3981,7 +3967,6 @@ cluster-crit {

cluster1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -3996,7 +3981,6 @@ cluster-crit {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 15>;

@@ -4018,7 +4002,6 @@ gpu_top_alert0: trip-point0 {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 0>;

@@ -4033,7 +4016,6 @@ trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -4048,7 +4030,6 @@ trip-point0 {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -4063,7 +4044,6 @@ trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -4078,7 +4058,6 @@ trip-point0 {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -4093,7 +4072,6 @@ trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -4108,7 +4086,6 @@ trip-point0 {

compute-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -4123,7 +4100,6 @@ trip-point0 {

mdm-dsp-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;

@@ -4138,7 +4114,6 @@ trip-point0 {

npu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 8>;

@@ -4153,7 +4128,6 @@ trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 11>;


--
2.40.1


2024-05-10 12:04:23

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 19/31] arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/arch/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 = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8280_adc_tm 5>;

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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm8280_1_temp_alarm>;

trips {
@@ -34,7 +34,7 @@ trip1 {

pm8280_2_thermal: pm8280-2-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm8280_2_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -5846,7 +5845,6 @@ cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -5861,7 +5859,6 @@ cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -5876,7 +5873,6 @@ cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -5891,7 +5887,6 @@ cpu-crit {

cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -5906,7 +5901,6 @@ cpu-crit {

cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -5921,7 +5915,6 @@ cpu-crit {

cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -5936,7 +5929,6 @@ cpu-crit {

cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -5951,7 +5943,6 @@ cpu-crit {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -5965,9 +5956,6 @@ cpu-crit {
};

gpu-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens2 2>;

trips {
@@ -5981,7 +5969,6 @@ gpu-crit {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 15>;


--
2.40.1


2024-05-10 12:04:23

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 16/31] arm64: dts: qcom: sc7180-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm6150_temp>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qcom/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 = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm6150l_temp>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm64/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 = <250>;
- polling-delay = <0>;

thermal-sensors = <&pm6150_adc_tm 1>;
sustainable-power = <965>;
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi b/arch/arm64/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 = <250>;
- polling-delay = <0>;

thermal-sensors = <&pm6150_adc_tm 1>;
sustainable-power = <965>;
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi b/arch/arm64/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 = <0>;
- polling-delay = <250>;
-
thermal-sensors = <&pm6150_adc_tm 1>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi b/arch/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 = <250>;
- polling-delay = <0>;

thermal-sensors = <&pm6150_adc_tm 1>;
sustainable-power = <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 = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm6150_adc_tm 0>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 1>;
sustainable-power = <1052>;
@@ -4085,7 +4084,6 @@ map1 {

cpu1_thermal: cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 2>;
sustainable-power = <1052>;
@@ -4134,7 +4132,6 @@ map1 {

cpu2_thermal: cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 3>;
sustainable-power = <1052>;
@@ -4183,7 +4180,6 @@ map1 {

cpu3_thermal: cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 4>;
sustainable-power = <1052>;
@@ -4232,7 +4228,6 @@ map1 {

cpu4_thermal: cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 5>;
sustainable-power = <1052>;
@@ -4281,7 +4276,6 @@ map1 {

cpu5_thermal: cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 6>;
sustainable-power = <1052>;
@@ -4330,7 +4324,6 @@ map1 {

cpu6_thermal: cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 9>;
sustainable-power = <1425>;
@@ -4371,7 +4364,6 @@ map1 {

cpu7_thermal: cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 10>;
sustainable-power = <1425>;
@@ -4412,7 +4404,6 @@ map1 {

cpu8_thermal: cpu8-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 11>;
sustainable-power = <1425>;
@@ -4453,7 +4444,6 @@ map1 {

cpu9_thermal: cpu9-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 12>;
sustainable-power = <1425>;
@@ -4494,7 +4484,6 @@ map1 {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 0>;

@@ -4515,7 +4504,6 @@ aoss0_crit: aoss0-crit {

cpuss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 7>;

@@ -4535,7 +4523,6 @@ cpuss0_crit: cluster0-crit {

cpuss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 8>;

@@ -4555,7 +4542,6 @@ cpuss1_crit: cluster0-crit {

gpuss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 13>;

@@ -4583,7 +4569,6 @@ map0 {

gpuss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 14>;

@@ -4611,7 +4596,6 @@ map0 {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 0>;

@@ -4632,7 +4616,6 @@ aoss1_crit: aoss1-crit {

cwlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 1>;

@@ -4653,7 +4636,6 @@ cwlan_crit: cwlan-crit {

audio-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 2>;

@@ -4674,7 +4656,6 @@ audio_crit: audio-crit {

ddr-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 3>;

@@ -4695,7 +4676,6 @@ ddr_crit: ddr-crit {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 4>;

@@ -4716,7 +4696,6 @@ q6_hvx_crit: q6-hvx-crit {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 5>;

@@ -4737,7 +4716,6 @@ camera_crit: camera-crit {

mdm-core-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 6>;

@@ -4758,7 +4736,6 @@ mdm_crit: mdm-crit {

mdm-dsp-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 7>;

@@ -4779,7 +4756,6 @@ mdm_dsp_crit: mdm-dsp-crit {

npu-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 8>;

@@ -4800,7 +4776,6 @@ npu_crit: npu-crit {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 9>;


--
2.40.1


2024-05-10 12:05:28

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 21/31] arm64: dts: qcom: sdm845-*: Remove thermal zone polling delays

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 <[email protected]>
---
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 {

thermal-zones {
xo_thermal: xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 1>;

trips {
@@ -66,9 +63,6 @@ trip-point {
};

msm_thermal: msm-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 2>;

trips {
@@ -81,9 +75,6 @@ trip-point {
};

pa_thermal: pa-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 3>;

trips {
@@ -96,9 +87,6 @@ trip-point {
};

quiet_thermal: quiet-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8998_adc_tm 4>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -5385,7 +5384,6 @@ cpu0_crit: cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -5412,7 +5410,6 @@ cpu1_crit: cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -5439,7 +5436,6 @@ cpu2_crit: cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -5466,7 +5462,6 @@ cpu3_crit: cpu-crit {

cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -5493,7 +5488,6 @@ cpu4_crit: cpu-crit {

cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -5520,7 +5514,6 @@ cpu5_crit: cpu-crit {

cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -5547,7 +5540,6 @@ cpu6_crit: cpu-crit {

cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -5574,7 +5566,6 @@ cpu7_crit: cpu-crit {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 0>;

@@ -5589,7 +5580,6 @@ aoss0_alert0: trip-point0 {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -5609,7 +5599,6 @@ cluster0_crit: cluster0-crit {

cluster1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -5629,7 +5618,6 @@ cluster1_crit: cluster1-crit {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -5651,7 +5639,6 @@ gpu_top_alert0: trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -5673,7 +5660,6 @@ gpu_bottom_alert0: trip-point0 {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 0>;

@@ -5688,7 +5674,6 @@ aoss1_alert0: trip-point0 {

q6-modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -5703,7 +5688,6 @@ q6_modem_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -5718,7 +5702,6 @@ mem_alert0: trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -5733,7 +5716,6 @@ wlan_alert0: trip-point0 {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -5748,7 +5730,6 @@ q6_hvx_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -5763,7 +5744,6 @@ camera_alert0: trip-point0 {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -5778,7 +5758,6 @@ video_alert0: trip-point0 {

modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;


--
2.40.1


2024-05-10 12:05:44

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 22/31] arm64: dts: qcom: sm6115-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmi632_temp>;

diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/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 {

thermal-zones {
mapss-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 0>;

trips {
@@ -3031,8 +3029,6 @@ trip-point1 {
};

cdsp-hvx-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 1>;

trips {
@@ -3051,8 +3047,6 @@ trip-point1 {
};

wlan-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 2>;

trips {
@@ -3071,8 +3065,6 @@ trip-point1 {
};

camera-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 3>;

trips {
@@ -3091,8 +3083,6 @@ trip-point1 {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 4>;

trips {
@@ -3111,8 +3101,6 @@ trip-point1 {
};

modem1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 5>;

trips {
@@ -3131,8 +3119,6 @@ trip-point1 {
};

cpu4-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 6>;

trips {
@@ -3157,8 +3143,6 @@ cpu4_crit: cpu-crit {
};

cpu5-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 7>;

trips {
@@ -3183,8 +3167,6 @@ cpu5_crit: cpu-crit {
};

cpu6-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 8>;

trips {
@@ -3209,8 +3191,6 @@ cpu6_crit: cpu-crit {
};

cpu7-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 9>;

trips {
@@ -3235,8 +3215,6 @@ cpu7_crit: cpu-crit {
};

cpu45-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 10>;

trips {
@@ -3261,8 +3239,6 @@ cpu45_crit: cpu-crit {
};

cpu67-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 11>;

trips {
@@ -3287,8 +3263,6 @@ cpu67_crit: cpu-crit {
};

cpu0123-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 12>;

trips {
@@ -3313,8 +3287,6 @@ cpu0123_crit: cpu-crit {
};

modem0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 13>;

trips {
@@ -3333,8 +3305,6 @@ trip-point1 {
};

display-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 14>;

trips {
@@ -3353,8 +3323,6 @@ trip-point1 {
};

gpu-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 15>;

cooling-maps {

--
2.40.1


2024-05-10 12:06:00

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 24/31] arm64: dts: qcom: sm6350-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm6350_temp>;

diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/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 {

thermal-zones {
aoss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 0>;

trips {
@@ -2846,9 +2843,6 @@ aoss0-crit {
};

aoss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 0>;

trips {
@@ -2861,9 +2855,6 @@ aoss1-crit {
};

audio-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 2>;

trips {
@@ -2876,9 +2867,6 @@ audio-crit {
};

camera-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 5>;

trips {
@@ -2891,9 +2879,6 @@ camera-crit {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 1>;

trips {
@@ -2919,9 +2904,6 @@ map0 {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 2>;

trips {
@@ -2947,9 +2929,6 @@ map0 {
};

cpu2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 3>;

trips {
@@ -2975,9 +2954,6 @@ map0 {
};

cpu3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 4>;

trips {
@@ -3003,9 +2979,6 @@ map0 {
};

cpu4-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 5>;

trips {
@@ -3031,9 +3004,6 @@ map0 {
};

cpu5-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 6>;

trips {
@@ -3059,9 +3029,6 @@ map0 {
};

cpu6-left-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 9>;

trips {
@@ -3087,9 +3054,6 @@ map0 {
};

cpu6-right-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 10>;

trips {
@@ -3115,9 +3079,6 @@ map0 {
};

cpu7-left-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 11>;

trips {
@@ -3143,9 +3104,6 @@ map0 {
};

cpu7-right-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 12>;

trips {
@@ -3171,9 +3129,6 @@ map0 {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 7>;

trips {
@@ -3186,9 +3141,6 @@ cpuss0-crit {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 8>;

trips {
@@ -3201,9 +3153,6 @@ cpuss1-crit {
};

cwlan-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 1>;

trips {
@@ -3216,9 +3165,6 @@ cwlan-crit {
};

ddr-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 3>;

trips {
@@ -3231,9 +3177,6 @@ ddr-crit {
};

gpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 13>;

trips {
@@ -3259,9 +3202,6 @@ map0 {
};

gpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 14>;

trips {
@@ -3287,9 +3227,6 @@ map0 {
};

modem-core0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 6>;

trips {
@@ -3302,9 +3239,6 @@ modem-core0-crit {
};

modem-core1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 7>;

trips {
@@ -3317,9 +3251,6 @@ modem-core1-crit {
};

modem-scl-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 9>;

trips {
@@ -3332,9 +3263,6 @@ modem-scl-crit {
};

modem-vec-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 8>;

trips {
@@ -3347,9 +3275,6 @@ modem-vec-crit {
};

npu-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 10>;

trips {
@@ -3362,9 +3287,6 @@ npu-crit {
};

q6-hvx-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 4>;

trips {
@@ -3377,9 +3299,6 @@ q6-hvx-crit {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 11>;

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 {

thermal-zones {
chg-skin-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm7250b_adc_tm 0>;

trips {
@@ -108,8 +106,6 @@ active-config0 {
};

conn-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm7250b_adc_tm 1>;

trips {

--
2.40.1


2024-05-10 12:06:13

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 25/31] arm64: dts: qcom: sm6375-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 {

thermal-zones {
mapss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 0>;

trips {
@@ -1864,9 +1861,6 @@ mapss0_crit: mapss-crit {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 1>;

trips {
@@ -1891,9 +1885,6 @@ cpu0_crit: cpu-crit {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 2>;

trips {
@@ -1918,9 +1909,6 @@ cpu1_crit: cpu-crit {
};

cpu2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 3>;

trips {
@@ -1945,9 +1933,6 @@ cpu2_crit: cpu-crit {
};

cpu3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 4>;

trips {
@@ -1972,9 +1957,6 @@ cpu3_crit: cpu-crit {
};

cpu4-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 5>;

trips {
@@ -1999,9 +1981,6 @@ cpu4_crit: cpu-crit {
};

cpu5-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 6>;

trips {
@@ -2026,9 +2005,6 @@ cpu5_crit: cpu-crit {
};

cluster0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 7>;

trips {
@@ -2053,9 +2029,6 @@ cluster0_crit: cpu-crit {
};

cluster1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 8>;

trips {
@@ -2080,9 +2053,6 @@ cluster1_crit: cpu-crit {
};

cpu6-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 9>;

trips {
@@ -2107,9 +2077,6 @@ cpu6_crit: cpu-crit {
};

cpu7-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 10>;

trips {
@@ -2134,9 +2101,6 @@ cpu7_crit: cpu-crit {
};

cpu-unk0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 11>;

trips {
@@ -2161,9 +2125,6 @@ cpu_unk0_crit: cpu-crit {
};

cpu-unk1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 12>;

trips {
@@ -2188,9 +2149,6 @@ cpu_unk1_crit: cpu-crit {
};

gpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 13>;

trips {
@@ -2215,9 +2173,6 @@ gpuss0_crit: gpu-crit {
};

gpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 14>;

trips {
@@ -2242,9 +2197,6 @@ gpuss1_crit: gpu-crit {
};

mapss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 0>;

trips {
@@ -2269,9 +2221,6 @@ mapss1_crit: mapss-crit {
};

cwlan-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 1>;

trips {
@@ -2296,9 +2245,6 @@ cwlan_crit: cwlan-crit {
};

audio-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 2>;

trips {
@@ -2323,9 +2269,6 @@ audio_crit: audio-crit {
};

ddr-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 3>;

trips {
@@ -2350,9 +2293,6 @@ ddr_crit: ddr-crit {
};

q6hvx-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 4>;

trips {
@@ -2377,9 +2317,6 @@ q6hvx_crit: q6hvx-crit {
};

camera-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 5>;

trips {
@@ -2404,9 +2341,6 @@ camera_crit: camera-crit {
};

mdm-core0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 6>;

trips {
@@ -2431,9 +2365,6 @@ mdm_core0_crit: mdm-core0-crit {
};

mdm-core1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 7>;

trips {
@@ -2458,9 +2389,6 @@ mdm_core1_crit: mdm-core1-crit {
};

mdm-vec-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 8>;

trips {
@@ -2485,9 +2413,6 @@ mdm_vec_crit: mdm-vec-crit {
};

msm-scl-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 9>;

trips {
@@ -2512,9 +2437,6 @@ msm_scl_crit: msm-scl-crit {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 10>;

trips {

--
2.40.1


2024-05-10 12:07:02

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 29/31] arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8450_temp_alarm>;

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 = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 2>;

trips {
@@ -152,7 +152,7 @@ active-config0 {

rear-tof-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 5>;

trips {
@@ -166,7 +166,7 @@ active-config0 {

skin-msm-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 1>;

trips {
@@ -180,7 +180,7 @@ active-config0 {

therm1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 3>;

trips {
@@ -194,7 +194,7 @@ active-config0 {

therm2-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 6>;

trips {
@@ -208,7 +208,7 @@ active-config0 {

usb-conn-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 7>;

trips {
@@ -222,7 +222,7 @@ active-config0 {

wide-rfc-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 4>;

trips {
@@ -235,8 +235,6 @@ active-config0 {
};

xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pmk8350_adc_tm 0>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/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 {

thermal-zones {
aoss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 0>;

trips {
@@ -4630,8 +4628,6 @@ reset-mon-cfg {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 1>;

trips {
@@ -4650,8 +4646,6 @@ reset-mon-cfg {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 2>;

trips {
@@ -4670,8 +4664,6 @@ reset-mon-cfg {
};

cpuss3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 3>;

trips {
@@ -4690,8 +4682,6 @@ reset-mon-cfg {
};

cpuss4-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 4>;

trips {
@@ -4710,8 +4700,6 @@ reset-mon-cfg {
};

cpu4-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 5>;

trips {
@@ -4736,8 +4724,6 @@ cpu4_top_crit: cpu-crit {
};

cpu4-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 6>;

trips {
@@ -4762,8 +4748,6 @@ cpu4_bottom_crit: cpu-crit {
};

cpu5-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 7>;

trips {
@@ -4788,8 +4772,6 @@ cpu5_top_crit: cpu-crit {
};

cpu5-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 8>;

trips {
@@ -4814,8 +4796,6 @@ cpu5_bottom_crit: cpu-crit {
};

cpu6-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 9>;

trips {
@@ -4840,8 +4820,6 @@ cpu6_top_crit: cpu-crit {
};

cpu6-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 10>;

trips {
@@ -4866,8 +4844,6 @@ cpu6_bottom_crit: cpu-crit {
};

cpu7-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 11>;

trips {
@@ -4892,8 +4868,6 @@ cpu7_top_crit: cpu-crit {
};

cpu7-middle-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 12>;

trips {
@@ -4918,8 +4892,6 @@ cpu7_middle_crit: cpu-crit {
};

cpu7-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 13>;

trips {
@@ -4945,7 +4917,7 @@ cpu7_bottom_crit: cpu-crit {

gpu-top-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens0 14>;

cooling-maps {
@@ -4984,7 +4956,7 @@ gpu_top_alert0: trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens0 15>;

cooling-maps {
@@ -5022,8 +4994,6 @@ gpu_bottom_alert0: trip-point0 {
};

aoss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 0>;

trips {
@@ -5042,8 +5012,6 @@ reset-mon-cfg {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 1>;

trips {
@@ -5068,8 +5036,6 @@ cpu0_crit: cpu-crit {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 2>;

trips {
@@ -5094,8 +5060,6 @@ cpu1_crit: cpu-crit {
};

cpu2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 3>;

trips {
@@ -5120,8 +5084,6 @@ cpu2_crit: cpu-crit {
};

cpu3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 4>;

trips {
@@ -5147,7 +5109,7 @@ cpu3_crit: cpu-crit {

cdsp0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 5>;

trips {
@@ -5179,7 +5141,7 @@ cdsp_0_config: junction-config {

cdsp1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 6>;

trips {
@@ -5211,7 +5173,7 @@ cdsp_1_config: junction-config {

cdsp2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 7>;

trips {
@@ -5242,8 +5204,6 @@ cdsp_2_config: junction-config {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 8>;

trips {
@@ -5263,7 +5223,7 @@ reset-mon-cfg {

mem-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 9>;

trips {
@@ -5288,8 +5248,6 @@ reset-mon-cfg {
};

modem0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 10>;

trips {
@@ -5320,8 +5278,6 @@ reset-mon-cfg {
};

modem1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 11>;

trips {
@@ -5352,8 +5308,6 @@ reset-mon-cfg {
};

modem2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 12>;

trips {
@@ -5384,8 +5338,6 @@ reset-mon-cfg {
};

modem3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 13>;

trips {
@@ -5416,8 +5368,6 @@ reset-mon-cfg {
};

camera0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 14>;

trips {
@@ -5436,8 +5386,6 @@ reset-mon-cfg {
};

camera1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 15>;

trips {

--
2.40.1


2024-05-10 12:07:18

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 {

thermal-zones {
aoss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 0>;

trips {
@@ -5348,8 +5346,6 @@ aoss0-critical {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 1>;

trips {
@@ -5368,8 +5364,6 @@ cpuss0-critical {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 2>;

trips {
@@ -5388,8 +5382,6 @@ cpuss1-critical {
};

cpuss2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 3>;

trips {
@@ -5408,8 +5400,6 @@ cpuss2-critical {
};

cpuss3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 4>;

trips {
@@ -5428,8 +5418,6 @@ cpuss3-critical {
};

cpu2-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 5>;

trips {
@@ -5454,8 +5442,6 @@ cpu2-critical {
};

cpu2-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 6>;

trips {
@@ -5480,8 +5466,6 @@ cpu2-critical {
};

cpu3-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 7>;

trips {
@@ -5506,8 +5490,6 @@ cpu3-critical {
};

cpu3-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 8>;

trips {
@@ -5532,8 +5514,6 @@ cpu3-critical {
};

cpu4-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 9>;

trips {
@@ -5558,8 +5538,6 @@ cpu4-critical {
};

cpu4-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 10>;

trips {
@@ -5584,8 +5562,6 @@ cpu4-critical {
};

cpu5-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 11>;

trips {
@@ -5610,8 +5586,6 @@ cpu5-critical {
};

cpu5-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 12>;

trips {
@@ -5636,8 +5610,6 @@ cpu5-critical {
};

cpu6-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 13>;

trips {
@@ -5662,8 +5634,6 @@ cpu6-critical {
};

cpu6-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 14>;

trips {
@@ -5688,8 +5658,6 @@ cpu6-critical {
};

aoss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 0>;

trips {
@@ -5708,8 +5676,6 @@ aoss1-critical {
};

cpu7-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 1>;

trips {
@@ -5734,8 +5700,6 @@ cpu7-critical {
};

cpu7-middle-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 2>;

trips {
@@ -5760,8 +5724,6 @@ cpu7-critical {
};

cpu7-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 3>;

trips {
@@ -5786,8 +5748,6 @@ cpu7-critical {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 4>;

trips {
@@ -5812,8 +5772,6 @@ cpu0-critical {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 5>;

trips {
@@ -5839,7 +5797,7 @@ cpu1-critical {

nsphvx0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 6>;

trips {
@@ -5859,7 +5817,7 @@ nsphvx1-critical {

nsphvx1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 7>;

trips {
@@ -5879,7 +5837,7 @@ nsphvx1-critical {

nsphmx0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 8>;

trips {
@@ -5899,7 +5857,7 @@ nsphmx0-critical {

nsphmx1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 9>;

trips {
@@ -5919,7 +5877,7 @@ nsphmx1-critical {

nsphmx2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 10>;

trips {
@@ -5939,7 +5897,7 @@ nsphmx2-critical {

nsphmx3-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 11>;

trips {
@@ -5959,7 +5917,7 @@ nsphmx3-critical {

video-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 12>;

trips {
@@ -5979,7 +5937,7 @@ video-critical {

ddr-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 13>;

trips {
@@ -5998,8 +5956,6 @@ ddr-critical {
};

camera0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 14>;

trips {
@@ -6018,8 +5974,6 @@ camera0-critical {
};

camera1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 15>;

trips {
@@ -6038,8 +5992,6 @@ camera1-critical {
};

aoss2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 0>;

trips {
@@ -6059,7 +6011,7 @@ aoss2-critical {

gpuss0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 1>;

trips {
@@ -6079,7 +6031,7 @@ gpuss0-critical {

gpuss1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 2>;

trips {
@@ -6099,7 +6051,7 @@ gpuss1-critical {

gpuss2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 3>;

trips {
@@ -6119,7 +6071,7 @@ gpuss2-critical {

gpuss3-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 4>;

trips {
@@ -6139,7 +6091,7 @@ gpuss3-critical {

gpuss4-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 5>;

trips {
@@ -6159,7 +6111,7 @@ gpuss4-critical {

gpuss5-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 6>;

trips {
@@ -6179,7 +6131,7 @@ gpuss5-critical {

gpuss6-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 7>;

trips {
@@ -6199,7 +6151,7 @@ gpuss6-critical {

gpuss7-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 8>;

trips {
@@ -6218,8 +6170,6 @@ gpuss7-critical {
};

modem0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 9>;

trips {
@@ -6238,8 +6188,6 @@ modem0-critical {
};

modem1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 10>;

trips {
@@ -6258,8 +6206,6 @@ modem1-critical {
};

modem2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 11>;

trips {
@@ -6278,8 +6224,6 @@ modem2-critical {
};

modem3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 12>;

trips {

--
2.40.1


2024-05-10 12:11:10

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 23/31] arm64: dts: qcom: sm6125-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm6125_temp>;

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 {

thermal-zones {
rf-pa0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm 0>;

trips {
@@ -104,8 +102,6 @@ active-config0 {
};

quiet-thermal {
- polling-delay-passive = <0>;
- polling-delay = <5000>;
thermal-sensors = <&pm6125_adc_tm 1>;

trips {
@@ -118,8 +114,6 @@ active-config0 {
};

xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm 2>;

trips {
@@ -132,8 +126,6 @@ active-config0 {
};

rf-pa1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm 3>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts b/arch/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 {

thermal-zones {
rf-pa0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm 0>;

trips {
@@ -98,8 +96,6 @@ active-config0 {
};

quiet-thermal {
- polling-delay-passive = <0>;
- polling-delay = <5000>;
thermal-sensors = <&pm6125_adc_tm 1>;

trips {
@@ -112,8 +108,6 @@ active-config0 {
};

xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm6125_adc_tm 2>;

trips {

--
2.40.1


2024-05-10 12:12:22

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 12/31] arm64: dts: qcom: pmx75: Remove thermal zone polling delays

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 <[email protected]>
---
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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmx75_temp_alarm>;


--
2.40.1


2024-05-10 12:12:30

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 27/31] arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays

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 <[email protected]>
---
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 {

thermal-zones {
conn-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150b_adc_tm 0>;

trips {
@@ -124,8 +122,6 @@ active-config0 {
};

pm8150l-pcb-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150l_adc_tm 1>;

trips {
@@ -138,8 +134,6 @@ active-config0 {
};

skin-msm-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150l_adc_tm 0>;

trips {
@@ -152,8 +146,6 @@ active-config0 {
};

wifi-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm 1>;

trips {
@@ -166,8 +158,6 @@ active-config0 {
};

xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm 0>;

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 {

thermal-zones {
camera-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150l_adc_tm 0>;

trips {
@@ -67,8 +65,6 @@ active-config0 {
};

conn-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150b_adc_tm 0>;

trips {
@@ -81,8 +77,6 @@ active-config0 {
};

mmw-pa1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm 2>;

trips {
@@ -95,8 +89,6 @@ active-config0 {
};

mmw-pa2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150l_adc_tm 2>;

trips {
@@ -109,8 +101,6 @@ active-config0 {
};

skin-msm-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150l_adc_tm 1>;

trips {
@@ -123,8 +113,6 @@ active-config0 {
};

skin-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm 1>;

trips {
@@ -137,8 +125,6 @@ active-config0 {
};

xo-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&pm8150_adc_tm 0>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -6319,7 +6318,6 @@ map1 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -6363,7 +6361,6 @@ map1 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -6407,7 +6404,6 @@ map1 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -6451,7 +6447,6 @@ map1 {

cpu4-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -6495,7 +6490,6 @@ map1 {

cpu5-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -6539,7 +6533,6 @@ map1 {

cpu6-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -6583,7 +6576,6 @@ map1 {

cpu7-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -6627,7 +6619,6 @@ map1 {

cpu4-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -6671,7 +6662,6 @@ map1 {

cpu5-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -6715,7 +6705,6 @@ map1 {

cpu6-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 13>;

@@ -6759,7 +6748,6 @@ map1 {

cpu7-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 14>;

@@ -6803,7 +6791,6 @@ map1 {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 0>;

@@ -6818,7 +6805,6 @@ aoss0_alert0: trip-point0 {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -6838,7 +6824,6 @@ cluster0_crit: cluster0-crit {

cluster1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -6858,7 +6843,6 @@ cluster1_crit: cluster1-crit {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 15>;

@@ -6880,7 +6864,6 @@ gpu_top_alert0: trip-point0 {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 0>;

@@ -6895,7 +6878,6 @@ aoss1_alert0: trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -6910,7 +6892,6 @@ wlan_alert0: trip-point0 {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -6925,7 +6906,6 @@ video_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -6940,7 +6920,6 @@ mem_alert0: trip-point0 {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -6955,7 +6934,6 @@ q6_hvx_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -6970,7 +6948,6 @@ camera_alert0: trip-point0 {

compute-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -6985,7 +6962,6 @@ compute_alert0: trip-point0 {

npu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;

@@ -7000,7 +6976,6 @@ npu_alert0: trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 8>;


--
2.40.1


2024-05-10 12:12:35

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 26/31] arm64: dts: qcom: sm8150-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8150_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8150b_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8150l_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi b/arch/arm64/boot/dts/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmm8155au_1_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi b/arch/arm64/boot/dts/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmm8155au_2_temp>;

diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -4621,7 +4620,6 @@ map1 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -4665,7 +4663,6 @@ map1 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -4709,7 +4706,6 @@ map1 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -4753,7 +4749,6 @@ map1 {

cpu4-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -4797,7 +4792,6 @@ map1 {

cpu5-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -4841,7 +4835,6 @@ map1 {

cpu6-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -4885,7 +4878,6 @@ map1 {

cpu7-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -4929,7 +4921,6 @@ map1 {

cpu4-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -4973,7 +4964,6 @@ map1 {

cpu5-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -5017,7 +5007,6 @@ map1 {

cpu6-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 13>;

@@ -5061,7 +5050,6 @@ map1 {

cpu7-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 14>;

@@ -5105,7 +5093,6 @@ map1 {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 0>;

@@ -5120,7 +5107,6 @@ aoss0_alert0: trip-point0 {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -5140,7 +5126,6 @@ cluster0_crit: cluster0-crit {

cluster1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -5160,7 +5145,6 @@ cluster1_crit: cluster1-crit {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 15>;

@@ -5182,7 +5166,6 @@ gpu_top_alert0: trip-point0 {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 0>;

@@ -5197,7 +5180,6 @@ aoss1_alert0: trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -5212,7 +5194,6 @@ wlan_alert0: trip-point0 {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -5227,7 +5208,6 @@ video_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -5242,7 +5222,6 @@ mem_alert0: trip-point0 {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -5257,7 +5236,6 @@ q6_hvx_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -5272,7 +5250,6 @@ camera_alert0: trip-point0 {

compute-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -5287,7 +5264,6 @@ compute_alert0: trip-point0 {

modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;

@@ -5302,7 +5278,6 @@ modem_alert0: trip-point0 {

npu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 8>;

@@ -5317,7 +5292,6 @@ npu_alert0: trip-point0 {

modem-vec-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 9>;

@@ -5332,7 +5306,6 @@ modem_vec_alert0: trip-point0 {

modem-scl-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 10>;

@@ -5347,7 +5320,6 @@ modem_scl_alert0: trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 11>;


--
2.40.1


2024-05-10 12:12:42

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 28/31] arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm8350_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm8350b_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm8350c_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmr735a_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmr735b_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -3709,7 +3708,6 @@ map1 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -3753,7 +3751,6 @@ map1 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -3797,7 +3794,6 @@ map1 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -3841,7 +3837,6 @@ map1 {

cpu4-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -3885,7 +3880,6 @@ map1 {

cpu5-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -3929,7 +3923,6 @@ map1 {

cpu6-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -3973,7 +3966,6 @@ map1 {

cpu7-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -4017,7 +4009,6 @@ map1 {

cpu4-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -4061,7 +4052,6 @@ map1 {

cpu5-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -4105,7 +4095,6 @@ map1 {

cpu6-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 13>;

@@ -4149,7 +4138,6 @@ map1 {

cpu7-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 14>;

@@ -4193,7 +4181,6 @@ map1 {

aoss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 0>;

@@ -4208,7 +4195,6 @@ aoss0_alert0: trip-point0 {

cluster0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -4228,7 +4214,6 @@ cluster0_crit: cluster0-crit {

cluster1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -4248,7 +4233,6 @@ cluster1_crit: cluster1-crit {

aoss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 0>;

@@ -4263,7 +4247,6 @@ aoss1_alert0: trip-point0 {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -4285,7 +4268,6 @@ gpu_top_alert0: trip-point0 {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -4307,7 +4289,6 @@ gpu_bottom_alert0: trip-point0 {

nspss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -4322,7 +4303,6 @@ nspss1_alert0: trip-point0 {

nspss2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -4337,7 +4317,6 @@ nspss2_alert0: trip-point0 {

nspss3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -4352,7 +4331,6 @@ nspss3_alert0: trip-point0 {

video-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

@@ -4367,7 +4345,6 @@ video_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 7>;

@@ -4382,7 +4359,6 @@ mem_alert0: trip-point0 {

modem1-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 8>;

@@ -4397,7 +4373,6 @@ modem1_alert0: trip-point0 {

modem2-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 9>;

@@ -4412,7 +4387,6 @@ modem2_alert0: trip-point0 {

modem3-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 10>;

@@ -4427,7 +4401,6 @@ modem3_alert0: trip-point0 {

modem4-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 11>;

@@ -4442,7 +4415,6 @@ modem4_alert0: trip-point0 {

camera-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 12>;

@@ -4457,7 +4429,6 @@ camera1_alert0: trip-point0 {

cam-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 13>;


--
2.40.1


2024-05-10 12:16:59

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 14/31] arm64: dts: qcom: qcs404-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 0>;

@@ -1615,7 +1614,6 @@ aoss_alert0: trip-point0 {

q6-hvx-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 1>;

@@ -1630,7 +1628,6 @@ q6_hvx_alert0: trip-point0 {

lpass-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

@@ -1645,7 +1642,6 @@ lpass_alert0: trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 3>;

@@ -1660,7 +1656,6 @@ wlan_alert0: trip-point0 {

cluster-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

@@ -1694,7 +1689,6 @@ map0 {

cpu0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 5>;

@@ -1728,7 +1722,6 @@ map0 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 6>;

@@ -1762,7 +1755,6 @@ map0 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 7>;

@@ -1796,7 +1788,6 @@ map0 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 8>;

@@ -1830,7 +1821,6 @@ map0 {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 9>;


--
2.40.1


2024-05-10 12:18:26

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 13/31] arm64: dts: qcom: qcm2290-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 {

thermal-zones {
mapss-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 0>;

trips {
@@ -1951,9 +1948,6 @@ mapss_crit: mapss-crit {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 1>;

trips {
@@ -1978,9 +1972,6 @@ video_crit: video-crit {
};

wlan-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 2>;

trips {
@@ -2005,9 +1996,6 @@ wlan_crit: wlan-crit {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 3>;

trips {
@@ -2032,9 +2020,6 @@ cpuss0_crit: cpuss0-crit {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 4>;

trips {
@@ -2059,9 +2044,6 @@ cpuss1_crit: cpuss1-crit {
};

mdm0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 5>;

trips {
@@ -2086,9 +2068,6 @@ mdm0_crit: mdm0-crit {
};

mdm1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 6>;

trips {
@@ -2113,9 +2092,6 @@ mdm1_crit: mdm1-crit {
};

gpu-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 7>;

trips {
@@ -2140,9 +2116,6 @@ gpu_crit: gpu-crit {
};

hm-center-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 8>;

trips {
@@ -2167,9 +2140,6 @@ hm_center_crit: hm-center-crit {
};

camera-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 9>;

trips {

--
2.40.1


2024-05-10 12:19:16

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 09/31] arm64: dts: qcom: msm8998-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 1>;

@@ -509,7 +508,6 @@ cpu0_crit: cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 2>;

@@ -530,7 +528,6 @@ cpu1_crit: cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 3>;

@@ -551,7 +548,6 @@ cpu2_crit: cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 4>;

@@ -572,7 +568,6 @@ cpu3_crit: cpu-crit {

cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 7>;

@@ -593,7 +588,6 @@ cpu4_crit: cpu-crit {

cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 8>;

@@ -614,7 +608,6 @@ cpu5_crit: cpu-crit {

cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 9>;

@@ -635,7 +628,6 @@ cpu6_crit: cpu-crit {

cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 10>;

@@ -656,7 +648,6 @@ cpu7_crit: cpu-crit {

gpu-bottom-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 12>;

@@ -671,7 +662,6 @@ gpu1_alert0: trip-point0 {

gpu-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 13>;

@@ -686,7 +676,6 @@ gpu2_alert0: trip-point0 {

clust0-mhm-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 5>;

@@ -701,7 +690,6 @@ cluster0_mhm_alert0: trip-point0 {

clust1-mhm-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 6>;

@@ -716,7 +704,6 @@ cluster1_mhm_alert0: trip-point0 {

cluster1-l2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens0 11>;

@@ -731,7 +718,6 @@ cluster1_l2_alert0: trip-point0 {

modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 1>;

@@ -746,7 +732,6 @@ modem_alert0: trip-point0 {

mem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 2>;

@@ -761,7 +746,6 @@ mem_alert0: trip-point0 {

wlan-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 3>;

@@ -776,7 +760,6 @@ wlan_alert0: trip-point0 {

q6-dsp-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 4>;

@@ -791,7 +774,6 @@ q6_dsp_alert0: trip-point0 {

camera-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 5>;

@@ -806,7 +788,6 @@ camera_alert0: trip-point0 {

multimedia-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens1 6>;

diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&pm8998_temp>;


--
2.40.1


2024-05-10 12:19:16

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 06/31] arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens0 9>;
+
trips {
cpu0_alert: trip-point0 {
temperature = <80000>;
@@ -1991,8 +1992,9 @@ map0 {
};
cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens0 10>;
+
trips {
cpu1_alert: trip-point0 {
temperature = <80000>;
@@ -2014,8 +2016,9 @@ map0 {
};
cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens0 11>;
+
trips {
cpu2_alert: trip-point0 {
temperature = <80000>;
@@ -2037,8 +2040,9 @@ map0 {
};
cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens0 12>;
+
trips {
cpu3_alert: trip-point0 {
temperature = <80000>;
@@ -2060,7 +2064,6 @@ map0 {
};
cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens0 4>;
trips {
cpu4_alert: trip-point0 {
@@ -2083,7 +2086,6 @@ map0 {
};
cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens0 5>;
trips {
cpu5_alert: trip-point0 {
@@ -2106,7 +2108,6 @@ map0 {
};
cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens0 6>;
trips {
cpu6_alert: trip-point0 {
@@ -2129,7 +2130,6 @@ map0 {
};
cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens0 7>;
trips {
cpu7_alert: trip-point0 {
@@ -2153,7 +2153,6 @@ map0 {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens0 15>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi b/arch/arm64/boot/dts/qcom/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 = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&pm8953_temp>;

trips {

--
2.40.1


2024-05-10 12:19:20

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 11/31] arm64: dts: qcom: pms405: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&pms405_temp>;


--
2.40.1


2024-05-10 12:19:54

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 07/31] arm64: dts: qcom: msm8976-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 0>;

@@ -1139,7 +1138,6 @@ aoss0_alert0: trip-point0 {

modem-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 1>;
trips {
@@ -1153,7 +1151,6 @@ modem_alert0: trip-point0 {

qdsp-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 2>;
trips {
@@ -1167,7 +1164,6 @@ qdsp_alert0: trip-point0 {

cam-isp-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 3>;
trips {
@@ -1181,7 +1177,7 @@ cam_isp_alert0: trip-point0 {

cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 4>;

trips {
@@ -1205,7 +1201,7 @@ cpu4_crit: cpu-crit {

cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 5>;

trips {
@@ -1229,7 +1225,7 @@ cpu5_crit: cpu-crit {

cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 6>;

trips {
@@ -1253,7 +1249,7 @@ cpu6_crit: cpu-crit {

cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 7>;

trips {
@@ -1277,7 +1273,7 @@ cpu7_crit: cpu-crit {

big-l2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 8>;

trips {
@@ -1301,7 +1297,7 @@ l2_crit: l2-crit {

cpu0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 9>;

trips {
@@ -1325,7 +1321,7 @@ cpu0_crit: cpu-crit {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
+
thermal-sensors = <&tsens 10>;

trips {

--
2.40.1


2024-05-10 12:20:03

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 17/31] arm64: dts: qcom: sc7280-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm7250b_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pm7325.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pm7325_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/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 = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 2>;

trips {
@@ -181,7 +181,7 @@ active-config0 {

chg-skin-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pm7250b_adc_tm 0>;

trips {
@@ -195,7 +195,7 @@ active-config0 {

conn-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pm7250b_adc_tm 1>;

trips {
@@ -209,7 +209,7 @@ active-config0 {

quiet-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 1>;

trips {
@@ -223,7 +223,7 @@ active-config0 {

rear-cam-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 4>;

trips {
@@ -237,7 +237,7 @@ active-config0 {

sdm-skin-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 3>;

trips {
@@ -251,7 +251,7 @@ active-config0 {

xo-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;
+
thermal-sensors = <&pmk8350_adc_tm 0>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 1>;

@@ -6038,7 +6037,6 @@ map1 {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 2>;

@@ -6082,7 +6080,6 @@ map1 {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 3>;

@@ -6126,7 +6123,6 @@ map1 {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 4>;

@@ -6170,7 +6166,6 @@ map1 {

cpu4-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 7>;

@@ -6214,7 +6209,6 @@ map1 {

cpu5-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 8>;

@@ -6258,7 +6252,6 @@ map1 {

cpu6-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 9>;

@@ -6302,7 +6295,6 @@ map1 {

cpu7-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 10>;

@@ -6346,7 +6338,6 @@ map1 {

cpu8-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 11>;

@@ -6390,7 +6381,6 @@ map1 {

cpu9-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 12>;

@@ -6434,7 +6424,6 @@ map1 {

cpu10-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 13>;

@@ -6478,7 +6467,6 @@ map1 {

cpu11-thermal {
polling-delay-passive = <250>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 14>;

@@ -6522,7 +6510,6 @@ map1 {

aoss0-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 0>;

@@ -6543,7 +6530,6 @@ aoss0_crit: aoss0-crit {

aoss1-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 0>;

@@ -6564,7 +6550,6 @@ aoss1_crit: aoss1-crit {

cpuss0-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 5>;

@@ -6584,7 +6569,6 @@ cpuss0_crit: cluster0-crit {

cpuss1-thermal {
polling-delay-passive = <0>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 6>;

@@ -6604,7 +6588,6 @@ cpuss1_crit: cluster0-crit {

gpuss0-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 1>;

@@ -6632,7 +6615,6 @@ map0 {

gpuss1-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 2>;

@@ -6659,9 +6641,6 @@ map0 {
};

nspss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 3>;

trips {
@@ -6680,9 +6659,6 @@ nspss0_crit: nspss0-crit {
};

nspss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 4>;

trips {
@@ -6701,9 +6677,6 @@ nspss1_crit: nspss1-crit {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 5>;

trips {
@@ -6722,9 +6695,6 @@ video_crit: video-crit {
};

ddr-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 6>;

trips {
@@ -6743,9 +6713,6 @@ ddr_crit: ddr-crit {
};

mdmss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 7>;

trips {
@@ -6764,9 +6731,6 @@ mdmss0_crit: mdmss0-crit {
};

mdmss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 8>;

trips {
@@ -6785,9 +6749,6 @@ mdmss1_crit: mdmss1-crit {
};

mdmss2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 9>;

trips {
@@ -6806,9 +6767,6 @@ mdmss2_crit: mdmss2-crit {
};

mdmss3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 10>;

trips {
@@ -6827,9 +6785,6 @@ mdmss3_crit: mdmss3-crit {
};

camera0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 11>;

trips {

--
2.40.1


2024-05-10 12:20:21

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 01/31] arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 4>;

trips {
@@ -937,7 +936,6 @@ nss-top-critical {

nss-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 5>;

trips {
@@ -951,7 +949,6 @@ nss-critical {

wcss-phya0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 7>;

trips {
@@ -979,7 +976,6 @@ wcss-phya1-critical {

cpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 13>;

trips {
@@ -1009,7 +1005,6 @@ map0 {

lpass-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 14>;

trips {
@@ -1023,7 +1018,6 @@ lpass-critical {

ddrss-top-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;
thermal-sensors = <&tsens 15>;

trips {

--
2.40.1


2024-05-10 12:20:56

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 15/31] arm64: dts: qcom: sa8775p-*: Remove thermal zone polling delays

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 <[email protected]>
---
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 = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmm8654au_0_temp_alarm>;

trips {
@@ -30,7 +30,7 @@ trip1 {

pmm8654au_1_thermal: pm8775-1-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmm8654au_1_temp_alarm>;

trips {
@@ -50,7 +50,7 @@ trip1 {

pmm8654au_2_thermal: pm8775-2-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmm8654au_2_temp_alarm>;

trips {
@@ -70,7 +70,7 @@ trip1 {

pmm8654au_3_thermal: pm8775-3-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;
+
thermal-sensors = <&pmm8654au_3_temp_alarm>;

trips {
diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/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 {

thermal-zones {
aoss-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 0>;

trips {
@@ -2572,7 +2569,6 @@ trip-point1 {

cpu-0-0-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 1>;

@@ -2593,7 +2589,6 @@ trip-point1 {

cpu-0-1-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 2>;

@@ -2614,7 +2609,6 @@ trip-point1 {

cpu-0-2-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 3>;

@@ -2635,7 +2629,6 @@ trip-point1 {

cpu-0-3-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 4>;

@@ -2656,7 +2649,6 @@ trip-point1 {

gpuss-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 5>;

@@ -2677,7 +2669,6 @@ trip-point1 {

gpuss-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 6>;

@@ -2698,7 +2689,6 @@ trip-point1 {

gpuss-2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens0 7>;

@@ -2718,9 +2708,6 @@ trip-point1 {
};

audio-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 8>;

trips {
@@ -2739,9 +2726,6 @@ trip-point1 {
};

camss-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 9>;

trips {
@@ -2760,9 +2744,6 @@ trip-point1 {
};

pcie-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 10>;

trips {
@@ -2781,9 +2762,6 @@ trip-point1 {
};

cpuss-0-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens0 11>;

trips {
@@ -2802,9 +2780,6 @@ trip-point1 {
};

aoss-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 0>;

trips {
@@ -2824,7 +2799,6 @@ trip-point1 {

cpu-0-0-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 1>;

@@ -2845,7 +2819,6 @@ trip-point1 {

cpu-0-1-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 2>;

@@ -2866,7 +2839,6 @@ trip-point1 {

cpu-0-2-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 3>;

@@ -2887,7 +2859,6 @@ trip-point1 {

cpu-0-3-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 4>;

@@ -2908,7 +2879,6 @@ trip-point1 {

gpuss-3-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 5>;

@@ -2929,7 +2899,6 @@ trip-point1 {

gpuss-4-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 6>;

@@ -2950,7 +2919,6 @@ trip-point1 {

gpuss-5-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens1 7>;

@@ -2970,9 +2938,6 @@ trip-point1 {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 8>;

trips {
@@ -2991,9 +2956,6 @@ trip-point1 {
};

camss-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 9>;

trips {
@@ -3012,9 +2974,6 @@ trip-point1 {
};

pcie-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 10>;

trips {
@@ -3033,9 +2992,6 @@ trip-point1 {
};

cpuss-0-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens1 11>;

trips {
@@ -3054,9 +3010,6 @@ trip-point1 {
};

aoss-2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens2 0>;

trips {
@@ -3076,7 +3029,6 @@ trip-point1 {

cpu-1-0-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 1>;

@@ -3097,7 +3049,6 @@ trip-point1 {

cpu-1-1-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 2>;

@@ -3118,7 +3069,6 @@ trip-point1 {

cpu-1-2-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 3>;

@@ -3139,7 +3089,6 @@ trip-point1 {

cpu-1-3-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 4>;

@@ -3160,7 +3109,6 @@ trip-point1 {

nsp-0-0-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 5>;

@@ -3181,7 +3129,6 @@ trip-point1 {

nsp-0-1-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 6>;

@@ -3202,7 +3149,6 @@ trip-point1 {

nsp-0-2-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 7>;

@@ -3223,7 +3169,6 @@ trip-point1 {

nsp-1-0-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 8>;

@@ -3244,7 +3189,6 @@ trip-point1 {

nsp-1-1-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 9>;

@@ -3265,7 +3209,6 @@ trip-point1 {

nsp-1-2-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens2 10>;

@@ -3285,9 +3228,6 @@ trip-point1 {
};

ddrss-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens2 11>;

trips {
@@ -3306,9 +3246,6 @@ trip-point1 {
};

cpuss-1-0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens2 12>;

trips {
@@ -3327,9 +3264,6 @@ trip-point1 {
};

aoss-3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens3 0>;

trips {
@@ -3349,7 +3283,6 @@ trip-point1 {

cpu-1-0-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 1>;

@@ -3370,7 +3303,6 @@ trip-point1 {

cpu-1-1-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 2>;

@@ -3391,7 +3323,6 @@ trip-point1 {

cpu-1-2-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 3>;

@@ -3412,7 +3343,6 @@ trip-point1 {

cpu-1-3-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 4>;

@@ -3433,7 +3363,6 @@ trip-point1 {

nsp-0-0-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 5>;

@@ -3454,7 +3383,6 @@ trip-point1 {

nsp-0-1-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 6>;

@@ -3475,7 +3403,6 @@ trip-point1 {

nsp-0-2-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 7>;

@@ -3496,7 +3423,6 @@ trip-point1 {

nsp-1-0-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 8>;

@@ -3517,7 +3443,6 @@ trip-point1 {

nsp-1-1-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 9>;

@@ -3538,7 +3463,6 @@ trip-point1 {

nsp-1-2-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;

thermal-sensors = <&tsens3 10>;

@@ -3558,9 +3482,6 @@ trip-point1 {
};

ddrss-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens3 11>;

trips {
@@ -3579,9 +3500,6 @@ trip-point1 {
};

cpuss-1-1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
-
thermal-sensors = <&tsens3 12>;

trips {

--
2.40.1


2024-05-10 12:22:26

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 20/31] arm64: dts: qcom: sdm660-*: Remove thermal zone polling delays

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 <[email protected]>
---
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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&pm660_temp>;

diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&pm660l_temp>;

diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/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 = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 0>;

@@ -2437,7 +2436,6 @@ aoss_alert0: trip-point0 {

cpuss0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 1>;

@@ -2452,7 +2450,6 @@ cpuss0_alert0: trip-point0 {

cpuss1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

@@ -2467,7 +2464,6 @@ cpuss1_alert0: trip-point0 {

cpu0-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 3>;

@@ -2488,7 +2484,6 @@ cpu0_crit: cpu-crit {

cpu1-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

@@ -2509,7 +2504,6 @@ cpu1_crit: cpu-crit {

cpu2-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 5>;

@@ -2530,7 +2524,6 @@ cpu2_crit: cpu-crit {

cpu3-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 6>;

@@ -2557,7 +2550,6 @@ cpu3_crit: cpu-crit {

pwr-cluster-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 7>;

@@ -2578,7 +2570,6 @@ pwr_cluster_crit: cpu-crit {

gpu-thermal {
polling-delay-passive = <250>;
- polling-delay = <1000>;

thermal-sensors = <&tsens 8>;


--
2.40.1


2024-05-10 12:28:10

by Konrad Dybcio

[permalink] [raw]
Subject: [PATCH v2 30/31] arm64: dts: qcom: sm8550-*: Remove thermal zone polling delays

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 <[email protected]>
---
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/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8010_m_temp_alarm>;

@@ -31,7 +30,6 @@ trip1 {

pm8010-n-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8010_n_temp_alarm>;

diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550_temp_alarm>;

diff --git a/arch/arm64/boot/dts/qcom/pm8550b.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550b_temp_alarm>;

diff --git a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550ve_temp_alarm>;

diff --git a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi b/arch/arm64/boot/dts/qcom/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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550vs_c_temp_alarm>;

@@ -31,7 +30,6 @@ trip1 {

pm8550vs-d-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550vs_d_temp_alarm>;

@@ -52,7 +50,6 @@ trip1 {

pm8550vs-e-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550vs_e_temp_alarm>;

@@ -73,7 +70,6 @@ trip1 {

pm8550vs-g-thermal {
polling-delay-passive = <100>;
- polling-delay = <0>;

thermal-sensors = <&pm8550vs_g_temp_alarm>;

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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmr735d_k_temp_alarm>;

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 = <100>;
- polling-delay = <0>;

thermal-sensors = <&pmr735d_l_temp_alarm>;

diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/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 {

thermal-zones {
aoss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 0>;

trips {
@@ -4591,8 +4589,6 @@ reset-mon-config {
};

cpuss0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 1>;

trips {
@@ -4611,8 +4607,6 @@ reset-mon-config {
};

cpuss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 2>;

trips {
@@ -4631,8 +4625,6 @@ reset-mon-config {
};

cpuss2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 3>;

trips {
@@ -4651,8 +4643,6 @@ reset-mon-config {
};

cpuss3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 4>;

trips {
@@ -4671,8 +4661,6 @@ reset-mon-config {
};

cpu3-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 5>;

trips {
@@ -4697,8 +4685,6 @@ cpu3_top_crit: cpu-critical {
};

cpu3-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 6>;

trips {
@@ -4723,8 +4709,6 @@ cpu3_bottom_crit: cpu-critical {
};

cpu4-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 7>;

trips {
@@ -4749,8 +4733,6 @@ cpu4_top_crit: cpu-critical {
};

cpu4-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 8>;

trips {
@@ -4775,8 +4757,6 @@ cpu4_bottom_crit: cpu-critical {
};

cpu5-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 9>;

trips {
@@ -4801,8 +4781,6 @@ cpu5_top_crit: cpu-critical {
};

cpu5-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 10>;

trips {
@@ -4827,8 +4805,6 @@ cpu5_bottom_crit: cpu-critical {
};

cpu6-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 11>;

trips {
@@ -4853,8 +4829,6 @@ cpu6_top_crit: cpu-critical {
};

cpu6-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 12>;

trips {
@@ -4879,8 +4853,6 @@ cpu6_bottom_crit: cpu-critical {
};

cpu7-top-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 13>;

trips {
@@ -4905,8 +4877,6 @@ cpu7_top_crit: cpu-critical {
};

cpu7-middle-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 14>;

trips {
@@ -4931,8 +4901,6 @@ cpu7_middle_crit: cpu-critical {
};

cpu7-bottom-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens0 15>;

trips {
@@ -4957,8 +4925,6 @@ cpu7_bottom_crit: cpu-critical {
};

aoss1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 0>;

trips {
@@ -4977,8 +4943,6 @@ reset-mon-config {
};

cpu0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 1>;

trips {
@@ -5003,8 +4967,6 @@ cpu0_crit: cpu-critical {
};

cpu1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 2>;

trips {
@@ -5029,8 +4991,6 @@ cpu1_crit: cpu-critical {
};

cpu2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 3>;

trips {
@@ -5056,7 +5016,7 @@ cpu2_crit: cpu-critical {

cdsp0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 4>;

trips {
@@ -5088,7 +5048,7 @@ cdsp0_junction_config: junction-config {

cdsp1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 5>;

trips {
@@ -5120,7 +5080,7 @@ cdsp1_junction_config: junction-config {

cdsp2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 6>;

trips {
@@ -5152,7 +5112,7 @@ cdsp2_junction_config: junction-config {

cdsp3-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 7>;

trips {
@@ -5183,8 +5143,6 @@ cdsp3_junction_config: junction-config {
};

video-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 8>;

trips {
@@ -5204,7 +5162,7 @@ reset-mon-config {

mem-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens1 9>;

trips {
@@ -5229,8 +5187,6 @@ reset-mon-config {
};

modem0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 10>;

trips {
@@ -5261,8 +5217,6 @@ reset-mon-config {
};

modem1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 11>;

trips {
@@ -5293,8 +5247,6 @@ reset-mon-config {
};

modem2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 12>;

trips {
@@ -5325,8 +5277,6 @@ reset-mon-config {
};

modem3-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 13>;

trips {
@@ -5357,8 +5307,6 @@ reset-mon-config {
};

camera0-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 14>;

trips {
@@ -5377,8 +5325,6 @@ reset-mon-config {
};

camera1-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens1 15>;

trips {
@@ -5397,8 +5343,6 @@ reset-mon-config {
};

aoss2-thermal {
- polling-delay-passive = <0>;
- polling-delay = <0>;
thermal-sensors = <&tsens2 0>;

trips {
@@ -5418,7 +5362,7 @@ reset-mon-config {

gpuss-0-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 1>;

cooling-maps {
@@ -5457,7 +5401,7 @@ gpu0_junction_config: junction-config {

gpuss-1-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 2>;

cooling-maps {
@@ -5496,7 +5440,7 @@ gpu1_junction_config: junction-config {

gpuss-2-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 3>;

cooling-maps {
@@ -5535,7 +5479,7 @@ gpu2_junction_config: junction-config {

gpuss-3-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 4>;

cooling-maps {
@@ -5574,7 +5518,7 @@ gpu3_junction_config: junction-config {

gpuss-4-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 5>;

cooling-maps {
@@ -5613,7 +5557,7 @@ gpu4_junction_config: junction-config {

gpuss-5-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 6>;

cooling-maps {
@@ -5652,7 +5596,7 @@ gpu5_junction_config: junction-config {

gpuss-6-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 7>;

cooling-maps {
@@ -5691,7 +5635,7 @@ gpu6_junction_config: junction-config {

gpuss-7-thermal {
polling-delay-passive = <10>;
- polling-delay = <0>;
+
thermal-sensors = <&tsens2 8>;

cooling-maps {

--
2.40.1


2024-05-10 12:47:33

by Bryan O'Donoghue

[permalink] [raw]
Subject: Re: [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays

On 10/05/2024 12:59, Konrad Dybcio wrote:
> 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 <[email protected]>
> ---
> 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/qcom/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 {
>
> thermal-zones {
> aoss0-thermal {
> - polling-delay-passive = <0>;
> - polling-delay = <0>;

Commit log doesn't really match the values being subtracted

polling-delay:
$ref: /schemas/types.yaml#/definitions/uint32
description:
The maximum number of milliseconds to wait between polls when
checking this thermal zone. Setting this to 0 disables the polling
timers setup by the thermal framework and assumes that the thermal
sensors in this zone support interrupts.


2024-05-10 12:50:10

by Bryan O'Donoghue

[permalink] [raw]
Subject: Re: [PATCH v2 00/31] Clean up thermal zone polling-delay

On 10/05/2024 12:59, Konrad Dybcio wrote:
> A trivial follow-up on the changes introduced in Commit 488164006a28
> ("thermal/of: Assume polling-delay(-passive) 0 when absent").
>
> Should probably wait until v6.9-rc1 so that the patch in question is
> in the base tree, otherwise TZs will fail to register.
>
> FWIW, Compile-tested only (except 8280).
>
> To: Bjorn Andersson <[email protected]>
> To: Rob Herring <[email protected]>
> To: Krzysztof Kozlowski <[email protected]>
> To: Conor Dooley <[email protected]>
> To: [email protected]
> To: Krzysztof Kozlowski <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Konrad Dybcio <[email protected]>
>
> Changes in v2:
> - Un-drop passive delays. Whether they're useful where they're enabled
> is a topic for another patchset, as it requires examination on a case-
> -by-case basis.
> - Better unify the style (newlines between properties)
> - Link to v1: https://lore.kernel.org/r/[email protected]

So perhaps you can answer the question I have.

Right now, we have non-zero delay values, doesn't this mean the thermal
framework driver has a delay between evaluating dT/dt values per

Documentation/devicetree/bindings/thermal/thermal-zones.yaml

Your commit log implies or my reading of it is, there's no functional
change because its currently driven by an IRQ but, is that actually _so_
with non-zero values in the DT?

---
bod


2024-06-06 10:51:12

by Konrad Dybcio

[permalink] [raw]
Subject: Re: [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays

On 10.05.2024 2:47 PM, Bryan O'Donoghue wrote:
> On 10/05/2024 12:59, Konrad Dybcio wrote:
>> 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 <[email protected]>
>> ---
>>   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/qcom/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 {
>>         thermal-zones {
>>           aoss0-thermal {
>> -            polling-delay-passive = <0>;
>> -            polling-delay = <0>;
>
> Commit log doesn't really match the values being subtracted
>
> polling-delay:
>   $ref: /schemas/types.yaml#/definitions/uint32
>   description:
>     The maximum number of milliseconds to wait between polls when
>     checking this thermal zone. Setting this to 0 disables the polling
>     timers setup by the thermal framework and assumes that the thermal
>     sensors in this zone support interrupts.
>

OK I suppose there are 3 things at play:

1) for devices with polling-delay = <non_zero> without this patchset, the
polling is removed and threshold crossings are defered to the PMIC periph
or TSENS interrupts

2) for devices with polling-delay = <0>, this is a NOP cleanup, saving LoC

3) for devices with polling-delay-passive = <0>, this is a NOP, however in 99%
of cases, this was a misconfiguration in the first place. I can leave such
entries so that somebody has an easier time spotting it down the line. I'm not
however willing to go over each one of them and assess what the value should be,
as that requires significant effort across tens of platforms

Konrad

2024-06-06 10:51:56

by Konrad Dybcio

[permalink] [raw]
Subject: Re: [PATCH v2 00/31] Clean up thermal zone polling-delay

On 10.05.2024 2:49 PM, Bryan O'Donoghue wrote:
> On 10/05/2024 12:59, Konrad Dybcio wrote:
>> A trivial follow-up on the changes introduced in Commit 488164006a28
>> ("thermal/of: Assume polling-delay(-passive) 0 when absent").
>>
>> Should probably wait until v6.9-rc1 so that the patch in question is
>> in the base tree, otherwise TZs will fail to register.
>>
>> FWIW, Compile-tested only (except 8280).
>>
>> To: Bjorn Andersson <[email protected]>
>> To: Rob Herring <[email protected]>
>> To: Krzysztof Kozlowski <[email protected]>
>> To: Conor Dooley <[email protected]>
>> To: [email protected]
>> To: Krzysztof Kozlowski <[email protected]>
>> Cc: [email protected]
>> Cc: [email protected]
>> Cc: [email protected]
>> Signed-off-by: Konrad Dybcio <[email protected]>
>>
>> Changes in v2:
>> - Un-drop passive delays. Whether they're useful where they're enabled
>>    is a topic for another patchset, as it requires examination on a case-
>>    -by-case basis.
>> - Better unify the style (newlines between properties)
>> - Link to v1: https://lore.kernel.org/r/[email protected]
>
> So perhaps you can answer the question I have.
>
> Right now, we have non-zero delay values, doesn't this mean the thermal framework driver has a delay between evaluating dT/dt values per
>
> Documentation/devicetree/bindings/thermal/thermal-zones.yaml
>
> Your commit log implies or my reading of it is, there's no functional change because its currently driven by an IRQ but, is that actually _so_ with non-zero values in the DT?

Yes, tsens irq fires a threshold change notification down the thermal framework

Konrad

2024-06-08 16:11:37

by Bjorn Andersson

[permalink] [raw]
Subject: Re: [PATCH v2 00/31] Clean up thermal zone polling-delay


On Fri, 10 May 2024 13:59:23 +0200, Konrad Dybcio wrote:
> A trivial follow-up on the changes introduced in Commit 488164006a28
> ("thermal/of: Assume polling-delay(-passive) 0 when absent").
>
> Should probably wait until v6.9-rc1 so that the patch in question is
> in the base tree, otherwise TZs will fail to register.
>
> FWIW, Compile-tested only (except 8280).
>
> [...]

Applied, thanks!

[01/31] arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays
commit: 28930820bf8928c8247d6b001e042ce7e0037350
[02/31] arm64: dts: qcom: ipq8074-*: Remove thermal zone polling delays
commit: bebd3c6476c97d0aee8985eb9544dfd82f6e8e36
[03/31] arm64: dts: qcom: ipq9574-*: Remove thermal zone polling delays
commit: 88dd10e237ee1cfc70595c0feb37c8a71e521bfc
[04/31] arm64: dts: qcom: msm8916-*: Remove thermal zone polling delays
commit: b3f0d522b548e969b138c48c0fd4098703363c53
[05/31] arm64: dts: qcom: msm8939-*: Remove thermal zone polling delays
commit: 19c658e5bfe71b01ae41e85dab076da051814857
[06/31] arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays
commit: 1a43ff5b5f5a51c2dd0859bc46020e7f1c282414
[07/31] arm64: dts: qcom: msm8976-*: Remove thermal zone polling delays
commit: adfb64b78f2f0e894c2520b8e2ff8bd5f2d49825
[08/31] arm64: dts: qcom: msm8996-*: Remove thermal zone polling delays
commit: 612f017315fb466bc9348fb9a5f1d9506f4b5260
[09/31] arm64: dts: qcom: msm8998-*: Remove thermal zone polling delays
commit: 47d92455f59f7e8414ebc962f60bd7a990563a7c
[10/31] arm64: dts: qcom: pm7550ba: Remove thermal zone polling delays
commit: d96854de5d69a08a893d4a137d69c65f2feb40d5
[11/31] arm64: dts: qcom: pms405: Remove thermal zone polling delays
commit: 1a78b5da8164afc1d60bec7c02b8fd8e6451f0f3
[12/31] arm64: dts: qcom: pmx75: Remove thermal zone polling delays
commit: 8e49df9200591c469dfbdd29c93ee6cbe970aa2a
[13/31] arm64: dts: qcom: qcm2290-*: Remove thermal zone polling delays
commit: d3eb8179f21f86439053745bb1504791236d38bf
[14/31] arm64: dts: qcom: qcs404-*: Remove thermal zone polling delays
commit: 8d7807d24746af11ba966bce854ef3cd8df5267e
[15/31] arm64: dts: qcom: sa8775p-*: Remove thermal zone polling delays
commit: a759962163af22b7f50c8f43ed8b3fc5e09bec19
[16/31] arm64: dts: qcom: sc7180-*: Remove thermal zone polling delays
commit: 7cd2d9080a6eb281701f7303b1699719640380d0
[17/31] arm64: dts: qcom: sc7280-*: Remove thermal zone polling delays
commit: 7747a49db7e54978151d74b22907a373c9b4de1b
[18/31] arm64: dts: qcom: sc8180x-*: Remove thermal zone polling delays
commit: 1f57b1cff485c02678ea2dfe0ff7efa3b9f51e9d
[19/31] arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays
commit: e388421387e8b1b51c507883aaf13f40277fe137
[20/31] arm64: dts: qcom: sdm660-*: Remove thermal zone polling delays
commit: 82162bf535a76f87e20a6eece83375d2dd791655
[21/31] arm64: dts: qcom: sdm845-*: Remove thermal zone polling delays
commit: 2e58dbeae40e5fc7b2742bed05957cae32031387
[22/31] arm64: dts: qcom: sm6115-*: Remove thermal zone polling delays
commit: 190f743561a44cf0176707b6e2f37b1a1b7ff367
[23/31] arm64: dts: qcom: sm6125-*: Remove thermal zone polling delays
commit: d1a12560ef38021ce42ac31408fc53d2b8e08cc8
[24/31] arm64: dts: qcom: sm6350-*: Remove thermal zone polling delays
commit: 2aad3fd3820d047fa70b62906565c185d830465c
[25/31] arm64: dts: qcom: sm6375-*: Remove thermal zone polling delays
commit: 088d826d5af3cda20deb04dce406c95ef1ed8563
[26/31] arm64: dts: qcom: sm8150-*: Remove thermal zone polling delays
commit: fc2f92b522019a5bfd464c946b15d180c31b092b
[27/31] arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays
commit: 2d10e2e28df7a690d670b3452d4891b50011dc42
[28/31] arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays
commit: 07fab48327ad0d85c2b2763d26ce56c84043515a
[29/31] arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays
commit: d0730a729f1a723f06e7b9db7f1a540cf72de871
[30/31] arm64: dts: qcom: sm8550-*: Remove thermal zone polling delays
commit: fe5cb7d30795d81ed55888bcfb896086af3adc01
[31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays
commit: 92332cca0551b7c5c44f4236b8d1ce2828888e92

Best regards,
--
Bjorn Andersson <[email protected]>