Skip to content

arm64: dts: apple: t6040-j616s: Give the CPU zones a measured sustainable power - #635

Closed
RyanTheTide wants to merge 1 commit into
thermal/j616s-wip-20261030from
thermal/j616s-sustainable-power-20261031
Closed

RyanTheTide wants to merge 1 commit into
thermal/j616s-wip-20261030from
thermal/j616s-sustainable-power-20261031

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Follow-up to #606: measured sustainable-power for the 17 J616s CPU thermal zones. It sits on top of #606's branch, so this PR's base is thermal/j616s-wip-20261030. Retarget it or fold it in once #606 is ready.

Measurement (J616s, fleet10, 2026-10-30 23:54 to 00:06)

720 s of all-core load: one pinned busy loop on each of the 14 CPUs, headless, no audio, fans left to the SMC, display off. Guard at 117 C on any CPU zone (it never fired). Sampled about once a second.

whole load last 600 s
TCMz reaches 110 C at 19 s, peak 113.8 C 112.0 to 113.8 C, mean 112.8 C
P0 rail (PR0b) mean 25.3 W
P1 rail (PP0b) mean 23.9 W
E rail (PP2b) mean 2.1 W
P0+P1+E mean 51.3 W (36.8 to 57.8)
P clusters (cpuinfo_cur_freq) mean about 3.75 / 3.70 GHz, range 2868 to 3852 MHz
E cluster 2592 MHz throughout
fans 3450 / 3730 rpm (macOS settles at 3450/3730 under the same load)
SMC heatpipe power 58.1 W
total system / AC input 80.3 W

The PMP's fast die loop did the limiting. All cpufreq cooling devices stayed at state 0, since TCMz stays below the 116 C passive trip from #606. The rails are the ones the #606 energy model was measured from, so the numbers are in EM units.

Values

  • cpu-die-thermal: 51300 mW (E + P0 + P1)
  • cpu-p00..p05: 25300 mW (P0)
  • cpu-p10..p15: 23900 mW (P1)
  • cpu-e0..e3: 2100 mW (E)
  • GPU zones: unchanged. Their CPU shedding budget needs a CPU+GPU load run.

Testing

  • dtc builds t6040-j616s.dtb on this branch with no new warnings. fdtget reads 51300 on cpu-die-thermal and 23900 on cpu-p10-thermal.
  • Not runtime-tested. The J616s boots the DT embedded in its Stage 2, so this only goes live with a Stage 2 rebuild, together with the J616s: put the CPU thermal backstop above the PMP's operating point (aurora-wip) #606 trips and energy model. After that rebuild, check /sys/class/thermal/thermal_zone*/sustainable_power, and run a CPU+GPU load to see whether the zones reach 116 C and how hard they throttle.
  • Raw data and scripts are in the aurora-ctl reports directory j616s-night2-20261030/sustain/ (sustain-smcfans-fleet10.tsv, j6-sustain.sh, sustain-ana.py, analysis-600s.txt).

The integration/aurora twin (#605) needs the same change.

🤖 Generated with Claude Code

…able power

The CPU zones on the J616s use the power allocator, and with the energy
model they now have power actors. They carry no sustainable-power, so
the governor estimates a budget from the lowest states of their cooling
devices. That budget is far below what this machine sustains, so a zone
that reaches its passive trip would throttle much harder than needed.

Measure it on the J616s (fleet10, headless): 720 s of all-core load, one
busy loop pinned to each of the 14 CPUs, fans left to the SMC. TCMz
reached 110 C after 19 s. Over the last 600 s it held 112.0 to 113.8 C
(mean 112.8 C) while the PMP's fast die loop limited the P clusters to a
mean of about 3.7 GHz. The fans ran at 3450/3730 rpm, where macOS also
settles. The SMC core rails read (mean, last 600 s):

  P0 (PR0b)  25.3 W
  P1 (PP0b)  23.9 W
  E  (PP2b)   2.1 W

These are the units of the energy model, whose per-core values come
from the same rails. Give each zone the sum over the clusters it
throttles: 51300 mW for the die zone, 25300 mW for the first P
cluster's zones, 23900 mW for the second's and 2100 mW for the E
cluster's. The GPU zones also shed CPU power, but their budget needs a
CPU and GPU load, so they keep the estimate for now.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #715, merged into aurora-wip with house trailers.

@RyanTheTide
RyanTheTide deleted the thermal/j616s-sustainable-power-20261031 branch October 31, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant