From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Christian Loehle <christian.loehle@arm.com>, 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: [PATCHv2] thermal: samsung: acpm-tmu: Fix spurious CPU throttling
Date: Wed, 25 Nov 2026 17:10:53 +0200 [thread overview]
Message-ID: <2b369a93-d20b-4df7-b667-1775117e9470@linaro.org> (raw)
In-Reply-To: <20261124132756.1306906-1-christian.loehle@arm.com>
Hi, Christian,
I tested and I confirm the CPU throttling.
The patch is looking good. I have a design question please.
On 11/24/26 3:27 PM, 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 critical trip. Cache the low/high
Do you think we shall program slot 7 from the hot trip rather than from
the critical one? If we keep the hardware throttle and linux shutdown at
the same temperature, the throttle only matters if linux fails to shut down.
As you already noticed, downstream programms slot 7 from the zone's last trip,
which is the hot trip (115 C), there's no critical trip defined in the zones.
I can't tell why downstream misses a critical trip and why the hot one is
in slot 7. But I guess it doesn't matter too much because in upstream,
the critical trip doesn't need a threshold slot of its own (we use the
low/high window in slots 0 and 1), so I think we could use the hot trip for
slot 7, even if there are critical trips defined.
> window and update the critical limit from set_trip_temp(), because the
> thermal core skips set_trips() when that window is unchanged.
>
> Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
thank you, but it's not needed, let's drop it, I commented only on the
implementation.
In case you're going to send a v3. I guess Daniel prefers the subject line
as "thermal/drivers/samsung/acpm-tmu:".
Cheers,
ta
prev parent reply other threads:[~2026-11-25 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:27 Christian Loehle
2026-11-25 15:10 ` Tudor Ambarus [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=2b369a93-d20b-4df7-b667-1775117e9470@linaro.org \
--to=tudor.ambarus@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 \
/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®