[PATCH v2 2/6] arm64: dts: exynos: gs101: tune CPU thermal zones

From: André Draszik

Date: Fri Dec 04 2026 - 05:05:41 EST


The GS101 CPU thermal zones are polled every 250 ms while a passive
trip is exceeded and have no sustainable-power.

A 250 ms polling period is too slow for these clusters: on Pixel 6 with
both Cortex-X1 cores loaded, the big cluster zone rises from 85 °C to
above 100 °C from one sensor reading to the next (about 13 ms apart).
With all eight cores loaded for 60 s under step_wise, the big cluster
zone reaches the hot trip at 100 °C, where the hardware throttles the
CPUs. power_allocator recomputes its power budget only on zone updates,
which outside TMU interrupts happen once per polling period. Without
sustainable-power, it estimates the budget from the lowest OPPs and
keeps the big cluster at 851-984 MHz for about 90% of an 8 s dual-X1
run.

Poll every 10 ms instead. Add sustainable-power, lower the switch-on
trips from 80 °C to 70 °C and raise little-mitigate from 90 °C to
95 °C; these are the values of the vendor kernel's gs101.dtsi
(sustainable_power, switch-on and control temperature), and boards can
override them.

The vendor kernel polls every 50 ms. 50 ms suffices for step_wise, but
not for power_allocator: with the gains it derives from
sustainable-power (100 mW/K above and 200 mW/K below the control
temperature of the big cluster) it oscillates at 50 ms and at 20 ms,
and is only steady at 10 ms. The vendor kernel's own controller uses
60 mW/K. Using the vendor's k_po/k_pu/k_i/integral_cutoff gains via
sysfs stabilizes power_allocator at 50 ms (5-7 interrupts, 92-93 °C,
1.05-1.11 M iter/s), but those gains have no DT binding.

Pixel 6, non-debug kernel. Columns are TMU interrupts, peak temperature
of the big cluster zone and the throughput of a busy loop on the two
Cortex-X1 cores in million iterations per second. Measured with
"thermal/drivers/samsung: acpm-tmu: fix IRQ storm" and
"thermal/drivers/samsung: acpm-tmu: add .get_trend()" applied; all rows
but the first have sustainable-power and the updated trips applied.

Both Cortex-X1 cores loaded for 8 s, 2 to 10 runs per cell from up to
three boots:

polling (ms) step_wise power_allocator
250 (before) 2-6 96-99 °C 1.01-1.12 29-30 81-89 °C 0.48-0.52
250 4-8 95-99 °C 1.01-1.12 30-32 91-93 °C 0.80-0.87
50 3-4 93-95 °C 1.09-1.18 97-116 91-93 °C 0.87-1.02
20 3-4 91-93 °C 1.06-1.15 5-202 90-92 °C 0.79-1.09
10 3-4 93-95 °C 1.08-1.18 4-6 89-91 °C 1.03-1.14

All eight cores loaded for 60 s, 1 to 7 runs per cell:

polling (ms) step_wise power_allocator
250 (before) 11-75 100-101 °C 0.68-0.74 368 84 °C 0.42
250 44-46 101 °C 0.69-0.73 162 99 °C 0.52
50 5-6 95-98 °C 0.75-0.80 573 97 °C 0.51
20 5 92-94 °C 0.71-0.79 5-389 91-92 °C 0.62-0.78
10 5 91-93 °C 0.70-0.79 4-5 91-92 °C 0.69-0.77

A zone is only polled while its switch-on trip is active (above 70 °C
until cooling below 68 °C), so an idle phone is not polled at all. With
the switch-on trips lowered so that all three zones of an idle phone are
polled continuously, polling takes less than 1% of one CPU at 10 ms,
and the battery current rises by 42-49 mA at 10 ms, 20 ms and 50 ms
alike, and by 24 mA at 250 ms.

Signed-off-by: André Draszik <andre.draszik@xxxxxxxxxx>
---
arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi b/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi
index b81c332e6c42..4be34b4087c8 100644
--- a/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi
+++ b/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi
@@ -12,8 +12,9 @@
/ {
thermal-zones {
cpucl0-thermal {
- polling-delay-passive = <250>;
+ polling-delay-passive = <10>;
polling-delay = <0>;
+ sustainable-power = <200>;
thermal-sensors = <&tmu_top 2>;

cooling-maps {
@@ -28,13 +29,13 @@ map0 {

trips {
little_switch_on: little-switch-on {
- temperature = <80000>;
+ temperature = <70000>;
hysteresis = <2000>;
type = "passive";
};

little_mitigate: little-mitigate {
- temperature = <90000>;
+ temperature = <95000>;
hysteresis = <5000>;
type = "passive";
};
@@ -54,8 +55,9 @@ little_critical: little-critical {
};

cpucl1-thermal {
- polling-delay-passive = <250>;
+ polling-delay-passive = <10>;
polling-delay = <0>;
+ sustainable-power = <1000>;
thermal-sensors = <&tmu_top 1>;

cooling-maps {
@@ -68,7 +70,7 @@ map0 {

trips {
mid_switch_on: mid-switch-on {
- temperature = <80000>;
+ temperature = <70000>;
hysteresis = <2000>;
type = "passive";
};
@@ -94,8 +96,9 @@ mid_critical: mid-critical {
};

cpucl2-thermal {
- polling-delay-passive = <250>;
+ polling-delay-passive = <10>;
polling-delay = <0>;
+ sustainable-power = <2000>;
thermal-sensors = <&tmu_top 0>;

cooling-maps {
@@ -108,7 +111,7 @@ map0 {

trips {
big_switch_on: big-switch-on {
- temperature = <80000>;
+ temperature = <70000>;
hysteresis = <2000>;
type = "passive";
};

--
2.56.1.915.g69d5ec7298-goog