linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
@ 2021-06-09  1:28 xieqinick
  2021-06-11  6:44 ` Neil Armstrong
  0 siblings, 1 reply; 6+ messages in thread
From: xieqinick @ 2021-06-09  1:28 UTC (permalink / raw)
  To: robh+dt, narmstrong, khilman, jbrunet, martin.blumenstingl,
	devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
  Cc: nick, artem

From: Nick Xie <nick@khadas.com>

Reduce the MCU FAN trigger temperature from
80 degree centigrade to 50 degree centigrade.

Signed-off-by: Nick Xie <nick@khadas.com>
---
 arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
index 66d67524b031..a9c34fee91f4 100644
--- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
@@ -256,7 +256,7 @@ &cecb_AO {
 &cpu_thermal {
 	trips {
 		cpu_active: cpu-active {
-			temperature = <80000>; /* millicelsius */
+			temperature = <50000>; /* millicelsius */
 			hysteresis = <2000>; /* millicelsius */
 			type = "active";
 		};
-- 
2.25.1


_______________________________________________
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] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
  2021-06-09  1:28 [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature xieqinick
@ 2021-06-11  6:44 ` Neil Armstrong
       [not found]   ` <CAP4nuTVMZV7pz8NrM2MHcZzBdueRXjS+KYsU4=cQ1CB67gr_Hg@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Armstrong @ 2021-06-11  6:44 UTC (permalink / raw)
  To: xieqinick, robh+dt, khilman, jbrunet, martin.blumenstingl,
	devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
  Cc: nick, artem

Hi Nick,

On 09/06/2021 03:28, xieqinick@gmail.com wrote:
> From: Nick Xie <nick@khadas.com>
> 
> Reduce the MCU FAN trigger temperature from
> 80 degree centigrade to 50 degree centigrade.

Can you add some more rationale to this change ?

> 
> Signed-off-by: Nick Xie <nick@khadas.com>
> ---
>  arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> index 66d67524b031..a9c34fee91f4 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> @@ -256,7 +256,7 @@ &cecb_AO {
>  &cpu_thermal {
>  	trips {
>  		cpu_active: cpu-active {
> -			temperature = <80000>; /* millicelsius */
> +			temperature = <50000>; /* millicelsius */
>  			hysteresis = <2000>; /* millicelsius */
>  			type = "active";
>  		};
> 

With that:
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

_______________________________________________
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

* Re: [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
       [not found]   ` <CAP4nuTVMZV7pz8NrM2MHcZzBdueRXjS+KYsU4=cQ1CB67gr_Hg@mail.gmail.com>
@ 2021-06-11  7:15     ` Neil Armstrong
  2021-06-11  7:30       ` Nick Xie
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Armstrong @ 2021-06-11  7:15 UTC (permalink / raw)
  To: Nick Xie
  Cc: robh+dt, khilman, jbrunet, martin.blumenstingl, devicetree,
	linux-arm-kernel, linux-amlogic, linux-kernel, Nick, artem

Hi,

On 11/06/2021 08:54, Nick Xie wrote:
> Hello Neil,
> 
> The MCU FAN won't work until the temperature reach to 80 degree centigrade,
> Do you think the temperature is too high?

I think 80 is tool high, but I fear 50 is way too low, but if you think 50 is OK after you ran some tests, just add it to the commit log and it's ok for me.

Neil

> 
> Thanks.
> 
> Neil Armstrong <narmstrong@baylibre.com <mailto:narmstrong@baylibre.com>> 于2021年6月11日周五 下午2:44写道:
> 
>     Hi Nick,
> 
>     On 09/06/2021 03:28, xieqinick@gmail.com <mailto:xieqinick@gmail.com> wrote:
>     > From: Nick Xie <nick@khadas.com <mailto:nick@khadas.com>>
>     >
>     > Reduce the MCU FAN trigger temperature from
>     > 80 degree centigrade to 50 degree centigrade.
> 
>     Can you add some more rationale to this change ?
> 
>     >
>     > Signed-off-by: Nick Xie <nick@khadas.com <mailto:nick@khadas.com>>
>     > ---
>     >  arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 2 +-
>     >  1 file changed, 1 insertion(+), 1 deletion(-)
>     >
>     > diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
>     > index 66d67524b031..a9c34fee91f4 100644
>     > --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
>     > +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
>     > @@ -256,7 +256,7 @@ &cecb_AO {
>     >  &cpu_thermal {
>     >       trips {
>     >               cpu_active: cpu-active {
>     > -                     temperature = <80000>; /* millicelsius */
>     > +                     temperature = <50000>; /* millicelsius */
>     >                       hysteresis = <2000>; /* millicelsius */
>     >                       type = "active";
>     >               };
>     >
> 
>     With that:
>     Reviewed-by: Neil Armstrong <narmstrong@baylibre.com <mailto:narmstrong@baylibre.com>>
> 


_______________________________________________
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

* Re: [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
  2021-06-11  7:15     ` Neil Armstrong
@ 2021-06-11  7:30       ` Nick Xie
  2021-06-11  7:45         ` Daniel Lezcano
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Xie @ 2021-06-11  7:30 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: robh+dt, khilman, jbrunet, martin.blumenstingl, devicetree,
	linux-arm-kernel, linux-amlogic, linux-kernel, Nick, artem

Hello Neil,


Neil Armstrong <narmstrong@baylibre.com> 于2021年6月11日周五 下午3:15写道:
>
> Hi,
>
> On 11/06/2021 08:54, Nick Xie wrote:
> > Hello Neil,
> >
> > The MCU FAN won't work until the temperature reach to 80 degree centigrade,
> > Do you think the temperature is too high?
>
> I think 80 is tool high, but I fear 50 is way too low, but if you think 50 is OK after you ran some tests, just add it to the commit log and it's ok for me.

I think it is OK, we use it for a long time.

Thanks.

>
> Neil
>
> >
> > Thanks.
> >
> > Neil Armstrong <narmstrong@baylibre.com <mailto:narmstrong@baylibre.com>> 于2021年6月11日周五 下午2:44写道:
> >
> >     Hi Nick,
> >
> >     On 09/06/2021 03:28, xieqinick@gmail.com <mailto:xieqinick@gmail.com> wrote:
> >     > From: Nick Xie <nick@khadas.com <mailto:nick@khadas.com>>
> >     >
> >     > Reduce the MCU FAN trigger temperature from
> >     > 80 degree centigrade to 50 degree centigrade.
> >
> >     Can you add some more rationale to this change ?
> >
> >     >
> >     > Signed-off-by: Nick Xie <nick@khadas.com <mailto:nick@khadas.com>>
> >     > ---
> >     >  arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 2 +-
> >     >  1 file changed, 1 insertion(+), 1 deletion(-)
> >     >
> >     > diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> >     > index 66d67524b031..a9c34fee91f4 100644
> >     > --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> >     > +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi
> >     > @@ -256,7 +256,7 @@ &cecb_AO {
> >     >  &cpu_thermal {
> >     >       trips {
> >     >               cpu_active: cpu-active {
> >     > -                     temperature = <80000>; /* millicelsius */
> >     > +                     temperature = <50000>; /* millicelsius */
> >     >                       hysteresis = <2000>; /* millicelsius */
> >     >                       type = "active";
> >     >               };
> >     >
> >
> >     With that:
> >     Reviewed-by: Neil Armstrong <narmstrong@baylibre.com <mailto:narmstrong@baylibre.com>>
> >
>

_______________________________________________
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

* Re: [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
  2021-06-11  7:30       ` Nick Xie
@ 2021-06-11  7:45         ` Daniel Lezcano
  2021-06-14 13:17           ` Neil Armstrong
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lezcano @ 2021-06-11  7:45 UTC (permalink / raw)
  To: Nick Xie, Neil Armstrong
  Cc: robh+dt, khilman, jbrunet, martin.blumenstingl, devicetree,
	linux-arm-kernel, linux-amlogic, linux-kernel, Nick, artem

On 11/06/2021 09:30, Nick Xie wrote:
> Hello Neil,
> 
> 
> Neil Armstrong <narmstrong@baylibre.com> 于2021年6月11日周五 下午3:15写道:
>>
>> Hi,
>>
>> On 11/06/2021 08:54, Nick Xie wrote:
>>> Hello Neil,
>>>
>>> The MCU FAN won't work until the temperature reach to 80 degree centigrade,
>>> Do you think the temperature is too high?
>>
>> I think 80 is tool high, but I fear 50 is way too low, but if you think 50 is OK after you ran some tests, just add it to the commit log and it's ok for me.
> 
> I think it is OK, we use it for a long time.

50°C sounds like normal temperature with regular load. That means the
fan will be switched on most of the time when the board is used.

And this change may be put in regard with the other trip points in the
common DT. For instance, enable the fan when reaching 80°C but set the
passive trip point to 75°C instead of 85°C.

All that depends on the hardware characteristics and TDP which are in
the TRM normally.


-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

_______________________________________________
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

* Re: [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature
  2021-06-11  7:45         ` Daniel Lezcano
@ 2021-06-14 13:17           ` Neil Armstrong
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Armstrong @ 2021-06-14 13:17 UTC (permalink / raw)
  To: Daniel Lezcano, Nick Xie
  Cc: robh+dt, khilman, jbrunet, martin.blumenstingl, devicetree,
	linux-arm-kernel, linux-amlogic, linux-kernel, Nick, artem

Hi,
On 11/06/2021 09:45, Daniel Lezcano wrote:
> On 11/06/2021 09:30, Nick Xie wrote:
>> Hello Neil,
>>
>>
>> Neil Armstrong <narmstrong@baylibre.com> 于2021年6月11日周五 下午3:15写道:
>>>
>>> Hi,
>>>
>>> On 11/06/2021 08:54, Nick Xie wrote:
>>>> Hello Neil,
>>>>
>>>> The MCU FAN won't work until the temperature reach to 80 degree centigrade,
>>>> Do you think the temperature is too high?
>>>
>>> I think 80 is tool high, but I fear 50 is way too low, but if you think 50 is OK after you ran some tests, just add it to the commit log and it's ok for me.
>>
>> I think it is OK, we use it for a long time.
> 
> 50°C sounds like normal temperature with regular load. That means the
> fan will be switched on most of the time when the board is used.
> 
> And this change may be put in regard with the other trip points in the
> common DT. For instance, enable the fan when reaching 80°C but set the
> passive trip point to 75°C instead of 85°C.
> 
> All that depends on the hardware characteristics and TDP which are in
> the TRM normally.
> 

I don't think such data exist in the datasheet or other public document, but the vendor source tree
sets:
- passive: 75°C
- hot 85°C
- critical 110°C

we set upstream:
- passive: 85°C
- hot 95°C
- critical 110°C

so maybe we should lower the passive & hot trip points, then the FAN 80°C trip point would be ok now according to Daniel's explanation.

Neil

_______________________________________________
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:[~2021-06-14 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09  1:28 [PATCH] arm64: dts: meson: vim3: reduce cpu thermal fan trigger temperature xieqinick
2021-06-11  6:44 ` Neil Armstrong
     [not found]   ` <CAP4nuTVMZV7pz8NrM2MHcZzBdueRXjS+KYsU4=cQ1CB67gr_Hg@mail.gmail.com>
2021-06-11  7:15     ` Neil Armstrong
2021-06-11  7:30       ` Nick Xie
2021-06-11  7:45         ` Daniel Lezcano
2021-06-14 13:17           ` Neil Armstrong

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).