From: Eric Woudstra <ericwouds@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix mt7622.dtsi thermal cpu
Date: Wed, 23 Jun 2021 17:35:27 +0200 [thread overview]
Message-ID: <56fb5540-fb86-4e6a-a596-1276026b37e5@gmail.com> (raw)
In-Reply-To: <e30a2d01-a200-80cb-88d9-6aea62dd49f1@linaro.org>
It is only useful to set 1 map with the regulated temperature for cpu frequency throttling. Same as in the kernel document example.
It has no use to set frequency scaling on 2 different temperature trip points, as the lowest one makes sure the higher one(s) are never reached. It can be applied only at 1 trip point. Multiple trip points is only usefully for fan control to make sure the fan is not too noisy when it is not necessary to be noisy.
The CPU will almost come to a dead stop when it starts to pass the lowest thermal map with frequency throttling.
This is why it is a bug and needs a fix, not only adjustment.
There is no fan... On the bpi r64.
Anyway without throttling at all a kernel build for more then an hour temperature creeps up to 85 degrees.
Get BlueMail for Android
On Jun 21, 2021, 8:29 PM, at 8:29 PM, Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>On 19/06/2021 14:19, ericwouds@gmail.com wrote:
>> From: Eric Woudstra <ericwouds@gmail.com>
>>
>> Cpu-thermal is set to use all frequencies already at 47 degrees.
>> Using the CPU at 50 for a minute, the CPU has reached 48 degrees, is
>> throttled back to lowest setting, making the mt7622 terrribly slow.
>> Even at this low speed, the CPU does not cool down lower then 47 so
>> the CPU is stuck at lowest possible frequency until it shut down and
>> stays off for 15 minutes.
>>
>> cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>>
>> This should not be set al every cooling map. It should only be set at
>> the highest cooling map. Same as in the example:
>>
>> https://www.kernel.org/doc/Documentation/devicetree/bindings/
>> thermal/thermal.txt line 272
>>
>> But then without the fan and added a third map.
>>
>> Now temperature will be regulated at 87 degrees celcius. At
>temperatures
>> lower then 87, all frequencies can be used.
>
>47°C is really a too low temperature and this performance drop is
>normal.
>
>I would not remove the passive mitigation but try by increasing the CPU
>temp to 70°C and by changing the active trip point to 80°C. If it works
>fine, try 75°C and 85°C.
>
>To test, the thermal killer is dhrystone (one thread per cpu).
>
>With a 75°C passive trip point, the step wise thermal governor, I think
>the mitigation will happen smoothly providing better performances, and
>probably the fan won't fire.
>
>> Also see the post:
>>
>> http://forum.banana-pi.org/t/bpi-r64-only-10-cpu-speed-at-already-48-
>> degrees-celcius-speed-not-increasing-anymore/12262
>>
>> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
>> ---
>> arch/arm64/boot/dts/mediatek/mt7622.dtsi | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> index 890a942ec..b779c7aa6 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> @@ -170,14 +170,14 @@ cpu-crit {
>> cooling-maps {
>> map0 {
>> trip = <&cpu_passive>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map1 {
>> trip = <&cpu_active>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map2 {
>>
>
>
>--
><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
WARNING: multiple messages have this Message-ID (diff)
From: Eric Woudstra <ericwouds@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
devicetree@vger.kernel.org,linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix mt7622.dtsi thermal cpu
Date: Wed, 23 Jun 2021 17:35:27 +0200 [thread overview]
Message-ID: <56fb5540-fb86-4e6a-a596-1276026b37e5@gmail.com> (raw)
In-Reply-To: <e30a2d01-a200-80cb-88d9-6aea62dd49f1@linaro.org>
It is only useful to set 1 map with the regulated temperature for cpu frequency throttling. Same as in the kernel document example.
It has no use to set frequency scaling on 2 different temperature trip points, as the lowest one makes sure the higher one(s) are never reached. It can be applied only at 1 trip point. Multiple trip points is only usefully for fan control to make sure the fan is not too noisy when it is not necessary to be noisy.
The CPU will almost come to a dead stop when it starts to pass the lowest thermal map with frequency throttling.
This is why it is a bug and needs a fix, not only adjustment.
There is no fan... On the bpi r64.
Anyway without throttling at all a kernel build for more then an hour temperature creeps up to 85 degrees.
Get BlueMail for Android
On Jun 21, 2021, 8:29 PM, at 8:29 PM, Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>On 19/06/2021 14:19, ericwouds@gmail.com wrote:
>> From: Eric Woudstra <ericwouds@gmail.com>
>>
>> Cpu-thermal is set to use all frequencies already at 47 degrees.
>> Using the CPU at 50 for a minute, the CPU has reached 48 degrees, is
>> throttled back to lowest setting, making the mt7622 terrribly slow.
>> Even at this low speed, the CPU does not cool down lower then 47 so
>> the CPU is stuck at lowest possible frequency until it shut down and
>> stays off for 15 minutes.
>>
>> cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>>
>> This should not be set al every cooling map. It should only be set at
>> the highest cooling map. Same as in the example:
>>
>> https://www.kernel.org/doc/Documentation/devicetree/bindings/
>> thermal/thermal.txt line 272
>>
>> But then without the fan and added a third map.
>>
>> Now temperature will be regulated at 87 degrees celcius. At
>temperatures
>> lower then 87, all frequencies can be used.
>
>47°C is really a too low temperature and this performance drop is
>normal.
>
>I would not remove the passive mitigation but try by increasing the CPU
>temp to 70°C and by changing the active trip point to 80°C. If it works
>fine, try 75°C and 85°C.
>
>To test, the thermal killer is dhrystone (one thread per cpu).
>
>With a 75°C passive trip point, the step wise thermal governor, I think
>the mitigation will happen smoothly providing better performances, and
>probably the fan won't fire.
>
>> Also see the post:
>>
>> http://forum.banana-pi.org/t/bpi-r64-only-10-cpu-speed-at-already-48-
>> degrees-celcius-speed-not-increasing-anymore/12262
>>
>> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
>> ---
>> arch/arm64/boot/dts/mediatek/mt7622.dtsi | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> index 890a942ec..b779c7aa6 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> @@ -170,14 +170,14 @@ cpu-crit {
>> cooling-maps {
>> map0 {
>> trip = <&cpu_passive>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map1 {
>> trip = <&cpu_active>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map2 {
>>
>
>
>--
><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-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
WARNING: multiple messages have this Message-ID (diff)
From: Eric Woudstra <ericwouds@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
devicetree@vger.kernel.org,linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix mt7622.dtsi thermal cpu
Date: Wed, 23 Jun 2021 17:35:27 +0200 [thread overview]
Message-ID: <56fb5540-fb86-4e6a-a596-1276026b37e5@gmail.com> (raw)
In-Reply-To: <e30a2d01-a200-80cb-88d9-6aea62dd49f1@linaro.org>
It is only useful to set 1 map with the regulated temperature for cpu frequency throttling. Same as in the kernel document example.
It has no use to set frequency scaling on 2 different temperature trip points, as the lowest one makes sure the higher one(s) are never reached. It can be applied only at 1 trip point. Multiple trip points is only usefully for fan control to make sure the fan is not too noisy when it is not necessary to be noisy.
The CPU will almost come to a dead stop when it starts to pass the lowest thermal map with frequency throttling.
This is why it is a bug and needs a fix, not only adjustment.
There is no fan... On the bpi r64.
Anyway without throttling at all a kernel build for more then an hour temperature creeps up to 85 degrees.
Get BlueMail for Android
On Jun 21, 2021, 8:29 PM, at 8:29 PM, Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>On 19/06/2021 14:19, ericwouds@gmail.com wrote:
>> From: Eric Woudstra <ericwouds@gmail.com>
>>
>> Cpu-thermal is set to use all frequencies already at 47 degrees.
>> Using the CPU at 50 for a minute, the CPU has reached 48 degrees, is
>> throttled back to lowest setting, making the mt7622 terrribly slow.
>> Even at this low speed, the CPU does not cool down lower then 47 so
>> the CPU is stuck at lowest possible frequency until it shut down and
>> stays off for 15 minutes.
>>
>> cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>>
>> This should not be set al every cooling map. It should only be set at
>> the highest cooling map. Same as in the example:
>>
>> https://www.kernel.org/doc/Documentation/devicetree/bindings/
>> thermal/thermal.txt line 272
>>
>> But then without the fan and added a third map.
>>
>> Now temperature will be regulated at 87 degrees celcius. At
>temperatures
>> lower then 87, all frequencies can be used.
>
>47°C is really a too low temperature and this performance drop is
>normal.
>
>I would not remove the passive mitigation but try by increasing the CPU
>temp to 70°C and by changing the active trip point to 80°C. If it works
>fine, try 75°C and 85°C.
>
>To test, the thermal killer is dhrystone (one thread per cpu).
>
>With a 75°C passive trip point, the step wise thermal governor, I think
>the mitigation will happen smoothly providing better performances, and
>probably the fan won't fire.
>
>> Also see the post:
>>
>> http://forum.banana-pi.org/t/bpi-r64-only-10-cpu-speed-at-already-48-
>> degrees-celcius-speed-not-increasing-anymore/12262
>>
>> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
>> ---
>> arch/arm64/boot/dts/mediatek/mt7622.dtsi | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> index 890a942ec..b779c7aa6 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
>> @@ -170,14 +170,14 @@ cpu-crit {
>> cooling-maps {
>> map0 {
>> trip = <&cpu_passive>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map1 {
>> trip = <&cpu_active>;
>> - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
>> - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
>> + cooling-device = <&cpu0 0 0>,
>> + <&cpu1 0 0>;
>> };
>>
>> map2 {
>>
>
>
>--
><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
next prev parent reply other threads:[~2021-06-23 15:35 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-19 12:19 [PATCH] Fix mt7622.dtsi thermal cpu ericwouds
2021-06-19 12:19 ` ericwouds
2021-06-19 12:19 ` ericwouds
2021-06-21 18:29 ` Daniel Lezcano
2021-06-21 18:29 ` Daniel Lezcano
2021-06-21 18:29 ` Daniel Lezcano
2021-06-23 15:35 ` Eric Woudstra [this message]
2021-06-23 15:35 ` Eric Woudstra
2021-06-23 15:35 ` Eric Woudstra
2021-06-23 15:58 ` Daniel Lezcano
2021-06-23 15:58 ` Daniel Lezcano
2021-06-23 15:58 ` Daniel Lezcano
2021-06-23 18:43 ` Eric Woudstra
2021-06-23 18:43 ` Eric Woudstra
2021-06-23 18:43 ` Eric Woudstra
2021-06-23 20:08 ` Daniel Lezcano
2021-06-23 20:08 ` Daniel Lezcano
2021-06-23 20:08 ` Daniel Lezcano
2021-06-24 9:59 ` Eric Woudstra
2021-06-24 9:59 ` Eric Woudstra
2021-06-24 9:59 ` Eric Woudstra
2021-06-24 10:21 ` Daniel Lezcano
2021-06-24 10:21 ` Daniel Lezcano
2021-06-24 10:21 ` Daniel Lezcano
2021-06-24 13:29 ` Eric Woudstra
2021-06-24 13:29 ` Eric Woudstra
2021-06-24 13:29 ` Eric Woudstra
2021-06-25 8:16 ` Aw: " Frank Wunderlich
2021-06-25 8:16 ` Frank Wunderlich
2021-06-25 8:16 ` Frank Wunderlich
2021-06-25 9:22 ` Daniel Golle
2021-06-25 9:22 ` Daniel Golle
2021-06-25 9:22 ` Daniel Golle
2021-06-25 9:31 ` Aw: " Frank Wunderlich
2021-06-25 9:31 ` Frank Wunderlich
2021-06-25 9:31 ` Frank Wunderlich
2021-06-25 10:11 ` Daniel Golle
2021-06-25 10:11 ` Daniel Golle
2021-06-25 10:11 ` Daniel Golle
2021-06-25 9:57 ` Aw: " Daniel Lezcano
2021-06-25 9:57 ` Daniel Lezcano
2021-06-25 9:57 ` Daniel Lezcano
2021-06-25 11:03 ` Aw: " Frank Wunderlich
2021-06-25 11:03 ` Frank Wunderlich
2021-06-25 11:03 ` Frank Wunderlich
2021-06-25 11:07 ` Eric Woudstra
2021-06-25 11:07 ` Eric Woudstra
2021-06-25 11:07 ` Eric Woudstra
2021-06-25 11:47 ` Aw: " Daniel Lezcano
2021-06-25 11:47 ` Daniel Lezcano
2021-06-25 11:47 ` Daniel Lezcano
2021-06-25 12:28 ` Aw: " Frank Wunderlich
2021-06-25 12:28 ` Frank Wunderlich
2021-06-25 12:28 ` Frank Wunderlich
2021-06-25 12:50 ` Daniel Lezcano
2021-06-25 12:50 ` Daniel Lezcano
2021-06-25 12:50 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56fb5540-fb86-4e6a-a596-1276026b37e5@gmail.com \
--to=ericwouds@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.