Re: [PATCHv2] thermal: samsung: acpm-tmu: Fix spurious CPU throttling

From: Tudor Ambarus

Date: Wed Nov 25 2026 - 10:11:42 EST


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

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