All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
@ 2020-04-24  8:23 ` Michael Kao
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Kao @ 2020-04-24  8:23 UTC (permalink / raw)
  To: Zhang Rui, Eduardo Valentin, Daniel Lezcano, Rob Herring,
	Mark Rutland, Matthias Brugger, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, Michael Kao

When thermal reaches target temperature,it would be pinned to state 0
(max frequency and power).
Fix the throttling range to no limit.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Michael Kao <michael.kao@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index ccb8e88a60c5..cae2cec46cdc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -19,6 +19,7 @@
 #include <dt-bindings/power/mt8173-power.h>
 #include <dt-bindings/reset/mt8173-resets.h>
 #include <dt-bindings/gce/mt8173-gce.h>
+#include <dt-bindings/thermal/thermal.h>
 #include "mt8173-pinfunc.h"
 
 / {
@@ -294,14 +295,18 @@
 			cooling-maps {
 				map@0 {
 					trip = <&target>;
-					cooling-device = <&cpu0 0 0>,
-							 <&cpu1 0 0>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu1 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <3072>;
 				};
 				map@1 {
 					trip = <&target>;
-					cooling-device = <&cpu2 0 0>,
-							 <&cpu3 0 0>;
+					cooling-device = <&cpu2 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu3 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <1024>;
 				};
 			};
-- 
2.18.0

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

* [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
@ 2020-04-24  8:23 ` Michael Kao
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Kao @ 2020-04-24  8:23 UTC (permalink / raw)
  To: Zhang Rui, Eduardo Valentin, Daniel Lezcano, Rob Herring,
	Mark Rutland, Matthias Brugger, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel, Michael Kao

When thermal reaches target temperature,it would be pinned to state 0
(max frequency and power).
Fix the throttling range to no limit.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Michael Kao <michael.kao@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index ccb8e88a60c5..cae2cec46cdc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -19,6 +19,7 @@
 #include <dt-bindings/power/mt8173-power.h>
 #include <dt-bindings/reset/mt8173-resets.h>
 #include <dt-bindings/gce/mt8173-gce.h>
+#include <dt-bindings/thermal/thermal.h>
 #include "mt8173-pinfunc.h"
 
 / {
@@ -294,14 +295,18 @@
 			cooling-maps {
 				map@0 {
 					trip = <&target>;
-					cooling-device = <&cpu0 0 0>,
-							 <&cpu1 0 0>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu1 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <3072>;
 				};
 				map@1 {
 					trip = <&target>;
-					cooling-device = <&cpu2 0 0>,
-							 <&cpu3 0 0>;
+					cooling-device = <&cpu2 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu3 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <1024>;
 				};
 			};
-- 
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

* [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
@ 2020-04-24  8:23 ` Michael Kao
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Kao @ 2020-04-24  8:23 UTC (permalink / raw)
  To: Zhang Rui, Eduardo Valentin, Daniel Lezcano, Rob Herring,
	Mark Rutland, Matthias Brugger, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel, Michael Kao

When thermal reaches target temperature,it would be pinned to state 0
(max frequency and power).
Fix the throttling range to no limit.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Michael Kao <michael.kao@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index ccb8e88a60c5..cae2cec46cdc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -19,6 +19,7 @@
 #include <dt-bindings/power/mt8173-power.h>
 #include <dt-bindings/reset/mt8173-resets.h>
 #include <dt-bindings/gce/mt8173-gce.h>
+#include <dt-bindings/thermal/thermal.h>
 #include "mt8173-pinfunc.h"
 
 / {
@@ -294,14 +295,18 @@
 			cooling-maps {
 				map@0 {
 					trip = <&target>;
-					cooling-device = <&cpu0 0 0>,
-							 <&cpu1 0 0>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu1 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <3072>;
 				};
 				map@1 {
 					trip = <&target>;
-					cooling-device = <&cpu2 0 0>,
-							 <&cpu3 0 0>;
+					cooling-device = <&cpu2 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>,
+							 <&cpu3 THERMAL_NO_LIMIT
+							  THERMAL_NO_LIMIT>;
 					contribution = <1024>;
 				};
 			};
-- 
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
  2020-04-24  8:23 ` Michael Kao
  (?)
@ 2020-05-15 15:33   ` Matthias Brugger
  -1 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2020-05-15 15:33 UTC (permalink / raw)
  To: Michael Kao, Zhang Rui, Eduardo Valentin, Daniel Lezcano,
	Rob Herring, Mark Rutland, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek



On 24/04/2020 10:23, Michael Kao wrote:
> When thermal reaches target temperature,it would be pinned to state 0
> (max frequency and power).
> Fix the throttling range to no limit.
> 
> Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
> Signed-off-by: Michael Kao <michael.kao@mediatek.com>

applied to v5.7-next/dts64

Thanks!

> ---
>  arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> index ccb8e88a60c5..cae2cec46cdc 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -19,6 +19,7 @@
>  #include <dt-bindings/power/mt8173-power.h>
>  #include <dt-bindings/reset/mt8173-resets.h>
>  #include <dt-bindings/gce/mt8173-gce.h>
> +#include <dt-bindings/thermal/thermal.h>
>  #include "mt8173-pinfunc.h"
>  
>  / {
> @@ -294,14 +295,18 @@
>  			cooling-maps {
>  				map@0 {
>  					trip = <&target>;
> -					cooling-device = <&cpu0 0 0>,
> -							 <&cpu1 0 0>;
> +					cooling-device = <&cpu0 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu1 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <3072>;
>  				};
>  				map@1 {
>  					trip = <&target>;
> -					cooling-device = <&cpu2 0 0>,
> -							 <&cpu3 0 0>;
> +					cooling-device = <&cpu2 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu3 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <1024>;
>  				};
>  			};
> 

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

* Re: [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
@ 2020-05-15 15:33   ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2020-05-15 15:33 UTC (permalink / raw)
  To: Michael Kao, Zhang Rui, Eduardo Valentin, Daniel Lezcano,
	Rob Herring, Mark Rutland, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel



On 24/04/2020 10:23, Michael Kao wrote:
> When thermal reaches target temperature,it would be pinned to state 0
> (max frequency and power).
> Fix the throttling range to no limit.
> 
> Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
> Signed-off-by: Michael Kao <michael.kao@mediatek.com>

applied to v5.7-next/dts64

Thanks!

> ---
>  arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> index ccb8e88a60c5..cae2cec46cdc 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -19,6 +19,7 @@
>  #include <dt-bindings/power/mt8173-power.h>
>  #include <dt-bindings/reset/mt8173-resets.h>
>  #include <dt-bindings/gce/mt8173-gce.h>
> +#include <dt-bindings/thermal/thermal.h>
>  #include "mt8173-pinfunc.h"
>  
>  / {
> @@ -294,14 +295,18 @@
>  			cooling-maps {
>  				map@0 {
>  					trip = <&target>;
> -					cooling-device = <&cpu0 0 0>,
> -							 <&cpu1 0 0>;
> +					cooling-device = <&cpu0 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu1 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <3072>;
>  				};
>  				map@1 {
>  					trip = <&target>;
> -					cooling-device = <&cpu2 0 0>,
> -							 <&cpu3 0 0>;
> +					cooling-device = <&cpu2 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu3 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <1024>;
>  				};
>  			};
> 

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

* Re: [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range
@ 2020-05-15 15:33   ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2020-05-15 15:33 UTC (permalink / raw)
  To: Michael Kao, Zhang Rui, Eduardo Valentin, Daniel Lezcano,
	Rob Herring, Mark Rutland, hsinyi, linux-pm, srv_heupstream
  Cc: devicetree, linux-mediatek, linux-kernel, linux-arm-kernel



On 24/04/2020 10:23, Michael Kao wrote:
> When thermal reaches target temperature,it would be pinned to state 0
> (max frequency and power).
> Fix the throttling range to no limit.
> 
> Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
> Signed-off-by: Michael Kao <michael.kao@mediatek.com>

applied to v5.7-next/dts64

Thanks!

> ---
>  arch/arm64/boot/dts/mediatek/mt8173.dtsi | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> index ccb8e88a60c5..cae2cec46cdc 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -19,6 +19,7 @@
>  #include <dt-bindings/power/mt8173-power.h>
>  #include <dt-bindings/reset/mt8173-resets.h>
>  #include <dt-bindings/gce/mt8173-gce.h>
> +#include <dt-bindings/thermal/thermal.h>
>  #include "mt8173-pinfunc.h"
>  
>  / {
> @@ -294,14 +295,18 @@
>  			cooling-maps {
>  				map@0 {
>  					trip = <&target>;
> -					cooling-device = <&cpu0 0 0>,
> -							 <&cpu1 0 0>;
> +					cooling-device = <&cpu0 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu1 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <3072>;
>  				};
>  				map@1 {
>  					trip = <&target>;
> -					cooling-device = <&cpu2 0 0>,
> -							 <&cpu3 0 0>;
> +					cooling-device = <&cpu2 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>,
> +							 <&cpu3 THERMAL_NO_LIMIT
> +							  THERMAL_NO_LIMIT>;
>  					contribution = <1024>;
>  				};
>  			};
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24  8:23 [PATCH] [RESEND] arm64: dts: mt8173: fix cooling device range Michael Kao
2020-04-24  8:23 ` Michael Kao
2020-04-24  8:23 ` Michael Kao
2020-05-15 15:33 ` Matthias Brugger
2020-05-15 15:33   ` Matthias Brugger
2020-05-15 15:33   ` Matthias Brugger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.