Re: [PATCHv3] thermal/drivers/samsung/acpm-tmu: Fix spurious CPU throttling

From: André Draszik

Date: Thu Nov 26 2026 - 07:58:05 EST


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@xxxxxxx>
> ---
> 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@xxxxxxxxxx>