linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sc7180: Enable passive polling for cpu thermal zones
@ 2020-12-15  9:39 Manaf Meethalavalappu Pallikunhi
  2020-12-15 15:42 ` Doug Anderson
  0 siblings, 1 reply; 2+ messages in thread
From: Manaf Meethalavalappu Pallikunhi @ 2020-12-15  9:39 UTC (permalink / raw)
  To: Andy Gross, Rob Herring, Mark Rutland, Amit Kucheria,
	Matthias Kaehlcke, Doug Anderson
  Cc: linux-arm-msm, linux-kernel, devicetree,
	Manaf Meethalavalappu Pallikunhi

Enable passive polling delay for cpu thermal zone for sc7180. It
enables periodic thermal zone re-evaluation on post first trip
temperature violation.

Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
---
 arch/arm64/boot/dts/qcom/sc7180.dtsi | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
index 98050b3..79d0747 100644
--- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
@@ -4355,7 +4355,7 @@
 
 	thermal-zones {
 		cpu0-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 1>;
@@ -4403,7 +4403,7 @@
 		};
 
 		cpu1-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 2>;
@@ -4451,7 +4451,7 @@
 		};
 
 		cpu2-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 3>;
@@ -4499,7 +4499,7 @@
 		};
 
 		cpu3-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 4>;
@@ -4547,7 +4547,7 @@
 		};
 
 		cpu4-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 5>;
@@ -4595,7 +4595,7 @@
 		};
 
 		cpu5-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 6>;
@@ -4643,7 +4643,7 @@
 		};
 
 		cpu6-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 9>;
@@ -4683,7 +4683,7 @@
 		};
 
 		cpu7-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 10>;
@@ -4723,7 +4723,7 @@
 		};
 
 		cpu8-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 11>;
@@ -4763,7 +4763,7 @@
 		};
 
 		cpu9-thermal {
-			polling-delay-passive = <0>;
+			polling-delay-passive = <50>;
 			polling-delay = <0>;
 
 			thermal-sensors = <&tsens0 12>;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sc7180: Enable passive polling for cpu thermal zones
  2020-12-15  9:39 [PATCH] arm64: dts: qcom: sc7180: Enable passive polling for cpu thermal zones Manaf Meethalavalappu Pallikunhi
@ 2020-12-15 15:42 ` Doug Anderson
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Anderson @ 2020-12-15 15:42 UTC (permalink / raw)
  To: Manaf Meethalavalappu Pallikunhi
  Cc: Andy Gross, Rob Herring, Mark Rutland, Amit Kucheria,
	Matthias Kaehlcke, linux-arm-msm, LKML,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

Hi,

On Tue, Dec 15, 2020 at 1:39 AM Manaf Meethalavalappu Pallikunhi
<manafm@codeaurora.org> wrote:
>
> Enable passive polling delay for cpu thermal zone for sc7180. It
> enables periodic thermal zone re-evaluation on post first trip
> temperature violation.
>
> Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
> ---
>  arch/arm64/boot/dts/qcom/sc7180.dtsi | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> index 98050b3..79d0747 100644
> --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> @@ -4355,7 +4355,7 @@
>
>         thermal-zones {
>                 cpu0-thermal {
> -                       polling-delay-passive = <0>;
> +                       polling-delay-passive = <50>;

Matthias already landed a similar patch, see:

https://lore.kernel.org/r/20201111120334.1.Ifc04ea235c3c370e3b21ec3b4d5dead83cc403b4@changeid

I guess the question is whether 50 is better or 250 is better.  Is
this just a finger in the wind estimate or do you have data showing
that 50 is better than 250?

-Doug

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-15 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15  9:39 [PATCH] arm64: dts: qcom: sc7180: Enable passive polling for cpu thermal zones Manaf Meethalavalappu Pallikunhi
2020-12-15 15:42 ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).