From: "André Draszik" <andre.draszik@linaro.org>
To: Christian Loehle <christian.loehle@arm.com>,
tudor.ambarus@linaro.org, bzolnier@gmail.com
Cc: krzk@kernel.org, rafael@kernel.org, daniel.lezcano@kernel.org,
lukasz.luba@arm.com, linux-kernel@vger.kernel.org,
linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCHv3] thermal/drivers/samsung/acpm-tmu: Fix spurious CPU throttling
Date: Thu, 26 Nov 2026 12:58:16 +0000 [thread overview]
Message-ID: <c3273007fcdc6e6e832ce3e24e6ff7052d46c14d.camel@linaro.org> (raw)
In-Reply-To: <20261125173959.2198116-1-christian.loehle@arm.com>
Hi Christian,
On Wed, 2026-11-25 at 17:39 +0000, Christian Loehle wrote:
> acpm_tmu_set_trips() supplies two thresholds, but the ACPM command writes
> all eight slots, zero-filling the rest. On GS101, slot 7 limits CPU clocks
> independently of its interrupt mask. Setting it to 0 C limits all three
> clusters to about 200 MHz while cpufreq reports the requested frequencies.
> This was found through trial and error while tracking EAS regressions.
>
> Program slot 7 from the lowest active hot trip so hardware throttling can
> precede the critical trip's system shutdown. Cache the low/high window and
> update the hot limit from set_trip_temp(), because the thermal core skips
> set_trips() when that window is unchanged.
>
> Fixes: 50a2c5d4062a ("thermal/drivers/samsung: Add Exynos ACPM TMU driver GS101")
> Signed-off-by: Christian Loehle <christian.loehle@arm.com>
> ---
> Since v2:
> - Use hot instead of critical s.t. it precedes shutdown. (Tudor)
> Since v1:
> - Rebase onto linux-next, including Daniel’s queued ACPM TMU fixes.
> - Cache only low/high and look up the lowest active critical trip when programming. (Tudor)
> - Retain the requested window even if programming fails, matching the thermal core.
> - Handle critical-trip deactivation and zones without an active critical trip.
>
>
> drivers/thermal/samsung/acpm-tmu.c | 76 +++++++++++++++++++++++++++---
> 1 file changed, 70 insertions(+), 6 deletions(-)
Thanks for this patch. I was indeed wondering what was going on... Boot
time on Oriole is back to normal in my debug kernel; just to add some
numbers:
• reaching multi-user.target drops from 99–111 s down to 20–28 s (saving
71–90 s)
• adbd readiness drops from 120–132 s down to 21–29 s (saving 92–109 s).
• cold copy_modules rsync throughput jumps from 4.37 MB/s (1,727 files)
to 30.71 MB/s (1,713 files)
• CPU die temperatures at boot end also reflect unthrottled execution
(46–48 °C unpatched vs 49–58 °C patched).
Tested-by: André Draszik <andre.draszik@linaro.org>
prev parent reply other threads:[~2026-11-26 12:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:39 Christian Loehle
2026-11-26 9:16 ` Alexey Klimov
2026-11-26 10:50 ` Christian Loehle
2026-11-26 11:03 ` Tudor Ambarus
2026-11-26 11:51 ` Alexey Klimov
2026-11-26 14:43 ` Tudor Ambarus
2026-11-26 14:50 ` Alexey Klimov
2026-11-26 15:01 ` Tudor Ambarus
2026-11-26 15:21 ` Alexey Klimov
2026-11-26 15:55 ` Tudor Ambarus
2026-11-26 15:31 ` Alexey Klimov
2026-11-26 11:33 ` Tudor Ambarus
2026-11-26 12:58 ` André Draszik [this message]
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=c3273007fcdc6e6e832ce3e24e6ff7052d46c14d.camel@linaro.org \
--to=andre.draszik@linaro.org \
--cc=bzolnier@gmail.com \
--cc=christian.loehle@arm.com \
--cc=daniel.lezcano@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
--cc=tudor.ambarus@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®