Skip to contentSkip to conversation

arm64: dts: qcom: sc7180: Changed polling-delay in Thermal-zones node

PATCH Superseded Rajeshwari 4 participants 5 messages Mar 17, 2020 – Apr 3, 2020 1 message not in the archive

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Rajeshwari

author
#0 lore raw

PATCH 1/1 arm64: dts: qcom: sc7180: Changed polling-delay in Thermal-zones node

Changed polling-delay and polling-delay-passive to zero as per the requirement.

---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 100 +++++++++++++++++------------------
 1 file changed, 50 insertions(+), 50 deletions(-)
arch/arm64/boot/dts/qcom/sc7180.dtsi +50 -50
index ca876ed..d81c4f1 100644
@@ -1907,8 +1907,8 @@
 
 	thermal-zones {
 		cpu0-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 1>;
 
@@ -1955,8 +1955,8 @@
 		};
 
 		cpu1-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 2>;
 
@@ -2003,8 +2003,8 @@
 		};
 
 		cpu2-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 3>;
 
@@ -2051,8 +2051,8 @@
 		};
 
 		cpu3-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 4>;
 
@@ -2099,8 +2099,8 @@
 		};
 
 		cpu4-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 5>;
 
@@ -2147,8 +2147,8 @@
 		};
 
 		cpu5-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 6>;
 
@@ -2195,8 +2195,8 @@
 		};
 
 		cpu6-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 9>;
 
@@ -2235,8 +2235,8 @@
 		};
 
 		cpu7-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 10>;
 
@@ -2275,8 +2275,8 @@
 		};
 
 		cpu8-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 11>;
 
@@ -2315,8 +2315,8 @@
 		};
 
 		cpu9-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 12>;
 
@@ -2355,8 +2355,8 @@
 		};
 
 		aoss0-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 0>;
 
@@ -2376,8 +2376,8 @@
 		};
 
 		cpuss0-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 7>;
 
@@ -2396,8 +2396,8 @@
 		};
 
 		cpuss1-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 8>;
 
@@ -2416,8 +2416,8 @@
 		};
 
 		gpuss0-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 13>;
 
@@ -2437,8 +2437,8 @@
 		};
 
 		gpuss1-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 14>;
 
@@ -2458,8 +2458,8 @@
 		};
 
 		aoss1-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 0>;
 
@@ -2479,8 +2479,8 @@
 		};
 
 		cwlan-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 1>;
 
@@ -2500,8 +2500,8 @@
 		};
 
 		audio-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 2>;
 
@@ -2521,8 +2521,8 @@
 		};
 
 		ddr-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 3>;
 
@@ -2542,8 +2542,8 @@
 		};
 
 		q6-hvx-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 4>;
 
@@ -2563,8 +2563,8 @@
 		};
 
 		camera-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 5>;
 
@@ -2584,8 +2584,8 @@
 		};
 
 		mdm-core-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 6>;
 
@@ -2605,8 +2605,8 @@
 		};
 
 		mdm-dsp-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 7>;
 
@@ -2626,8 +2626,8 @@
 		};
 
 		npu-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 8>;
 
@@ -2647,8 +2647,8 @@
 		};
 
 		video-thermal {
-			polling-delay-passive = <250>;
-			polling-delay = <1000>;
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
 
 			thermal-sensors = <&tsens1 9>;
 
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member 
of Code Aurora Forum, hosted by The Linux Foundation
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rajeshwari

Changed polling-delay and polling-delay-passive to zero as per the requirement.

Quoted 287 lines
---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 100 +++++++++++++++++------------------
 1 file changed, 50 insertions(+), 50 deletions(-)
arch/arm64/boot/dts/qcom/sc7180.dtsi +50 -51
index ca876ed..d81c4f1 100644
@@ -1907,8 +1907,8 @@
 
        thermal-zones {
                cpu0-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 1>;
 
@@ -1955,8 +1955,8 @@
                };
 
                cpu1-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 2>;
 
@@ -2003,8 +2003,8 @@
                };
 
                cpu2-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 3>;
 
@@ -2051,8 +2051,8 @@
                };
 
                cpu3-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 4>;
 
@@ -2099,8 +2099,8 @@
                };
 
                cpu4-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 5>;
 
@@ -2147,8 +2147,8 @@
                };
 
                cpu5-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 6>;
 
@@ -2195,8 +2195,8 @@
                };
 
                cpu6-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 9>;
 
@@ -2235,8 +2235,8 @@
                };
 
                cpu7-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 10>;
 
@@ -2275,8 +2275,8 @@
                };
 
                cpu8-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 11>;
 
@@ -2315,8 +2315,8 @@
                };
 
                cpu9-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 12>;
 
@@ -2355,8 +2355,8 @@
                };
 
                aoss0-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 0>;
 
@@ -2376,8 +2376,8 @@
                };
 
                cpuss0-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 7>;
 
@@ -2396,8 +2396,8 @@
                };
 
                cpuss1-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 8>;
 
@@ -2416,8 +2416,8 @@
                };
 
                gpuss0-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 13>;
 
@@ -2437,8 +2437,8 @@
                };
 
                gpuss1-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens0 14>;
 
@@ -2458,8 +2458,8 @@
                };
 
                aoss1-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 0>;
 
@@ -2479,8 +2479,8 @@
                };
 
                cwlan-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 1>;
 
@@ -2500,8 +2500,8 @@
                };
 
                audio-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 2>;
 
@@ -2521,8 +2521,8 @@
                };
 
                ddr-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 3>;
 
@@ -2542,8 +2542,8 @@
                };
 
                q6-hvx-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 4>;
 
@@ -2563,8 +2563,8 @@
                };
 
                camera-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 5>;
 
@@ -2584,8 +2584,8 @@
                };
 
                mdm-core-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 6>;
 
@@ -2605,8 +2605,8 @@
                };
 
                mdm-dsp-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 7>;
 
@@ -2626,8 +2626,8 @@
                };
 
                npu-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 8>;
 
@@ -2647,8 +2647,8 @@
                };
 
                video-thermal {
-                       polling-delay-passive = <250>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>;
+                       polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 9>;
 
--

QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

Reviewed-by on v1 1/1
#2 lore raw
In reply to Rajeshwari

Hi,

Quoted 8 lines · Rajeshwari

Changed polling-delay and polling-delay-passive to zero as per the requirement.

---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 100 +++++++++++++++++------------------
 1 file changed, 50 insertions(+), 50 deletions(-)

It probably wouldn't hurt to mention in the commit message that this is because the thermal sensor interrupts are all hooked up and thus the polling is not a useful thing to do. ...but other than that:

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 23 lines · Rajeshwari Ravindra Kamble (Temp)

On 3/17/2020 10:20 PM, Doug Anderson wrote:

Hi,

On Tue, Mar 17, 2020 at 12:42 AM Rajeshwari <[email protected]> wrote:

Changed polling-delay and polling-delay-passive to zero as per the requirement.

---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 100 +++++++++++++++++------------------
 1 file changed, 50 insertions(+), 50 deletions(-)

It probably wouldn't hurt to mention in the commit message that this is because the thermal sensor interrupts are all hooked up and thus the polling is not a useful thing to do. ...but other than that:

Quoted 6 lines

Hi Douglas

I didn't get your comment.

Thanks,
Rajeshwari

I think he means that you haven't mentioned WHY this patch is needed in the message. The reason you should mention is "to disable polling mode of the framework since interrupts for tsens are already configured."

Regards,
Amit

#5 lore raw

Hi Rajeshwari,

do you plan to send v2 with an updated commit message?

Thanks

Matthias

Quoted 39 lines · Amit Kucheria
Quoted 23 lines · Rajeshwari Ravindra Kamble (Temp)

On 3/17/2020 10:20 PM, Doug Anderson wrote:

Hi,

On Tue, Mar 17, 2020 at 12:42 AM Rajeshwari <[email protected]> wrote:

Changed polling-delay and polling-delay-passive to zero as per the requirement.

---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 100 +++++++++++++++++------------------
 1 file changed, 50 insertions(+), 50 deletions(-)

It probably wouldn't hurt to mention in the commit message that this is because the thermal sensor interrupts are all hooked up and thus the polling is not a useful thing to do. ...but other than that:

Quoted 6 lines

Hi Douglas

I didn't get your comment.

Thanks,
Rajeshwari

I think he means that you haven't mentioned WHY this patch is needed in the message. The reason you should mention is "to disable polling mode of the framework since interrupts for tsens are already configured."

Regards,
Amit