Repository navigation
J616s: put the CPU thermal backstop above the PMP's operating point - #605
RyanTheTide wants to merge 2 commits into
Conversation
…operating point The CPU zones' passive trip sat at 113 C on the assumption that the PMP's fast die-temperature loop settles TCMz near 111 C. It does not. The loop holds the PMP's own hot-spot sensors at 110.0 C (the target in the ADT's fast-die-ctrl-loop), and the SMC's die maxima read a few degrees above that. A 90 s all-core busy loop on the J616s with both fans running took TCMz to 113.4 C after 19 s and held it between 113.4 and 114.7 C, the P clusters trimmed by the PMP's effort limit (their cpufreq maximum stepping between 2868 and 4512 MHz) and the E cluster untouched at 2592 MHz. A backstop at 113 C would therefore act in normal use and fight the firmware loop as soon as the zones can throttle. Move it to 116 C on all seventeen CPU zones, above the measured settling band and below the 118 C critical trip, and correct the comment. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
T6040's CPU OPP tables carry no opp-microwatt, so no energy model registers and power_allocator has no power actors. The CPU thermal zones then never throttle anything. Add per-core power for the E, P0 and P1 tables, measured on a J616s running at each state with the cluster pinned and read from the SMC core-rail meters: PR0b for P0, PP0b for P1 and PP2b for E. The meters were identified by busying one core of each cluster at its lowest and highest state and checking which power and voltage keys follow. One busy P core gives clean readings up to 4104 MHz. At 4416 and 4512 MHz the PMP's die-temperature limit pulls the core back to 4044 MHz within two seconds, so the P values come from a k * V^2 * f + c fit to the clean points (rms 0.2 W), using the rail voltage measured at each state. This also keeps the tables monotonic where the 4 s samples are noisy. One busy E core does not register on PP2b below 2352 MHz. As on T8140, the E values are the idle cluster at that state plus a quarter of the increase with all four E cores busy. Assisted-by: LLM Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Added the T6040 energy model ( Rails. Method. One pinned busy core per state, 4 s average after 1.2 s settle, start below 52 C, guard at 110 C, each run under 90 s, scaling limits restored on exit. P clusters were swept in two halves.
E detail (uW, idle / one busy core / four busy cores): 1020: 8170 / 8125 / 302978, 1788: 4985 / 9473 / 822455, 2352: 11754 / 419816 / 1500196, 2592: 16765 / 464015 / 2073718. At 2352 and above, the single-core reading (420 to 483 mW) agrees with the derived per-core value (384 to 531 mW).
Raw data and scripts are in the aurora-ctl reports directory 🤖 Generated with Claude Code |
|
Boot-tested in fleet10 (7.3.0-aurora-fleet10): integration/aurora 1173b79 plus 587, 588, 589, 590, 596, 599, 600, 601, 603, 604, 605, 607 and 608, built with the shipping recipe (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80, and the other host tests match integration/aurora exactly (62 pass, the same 26 pre-existing failures). One-shot boots on the Neo (J700), the M2 and the M1 Pro, compared with each machine's fleet9 boot; fleet10 is now the default on all three. Full dmesg and journals are in aurora-ctl reports/fleet10-20261030. This PR only touches the J616s DT, and the J616s boots the DT built into its Stage 2, so fleet10 on the other machines tells nothing about it. Still open: a Stage 2 rebuild with this DT, then the energy model check and the guarded load test on the J616s. |
On the M4 Pro MacBook Pro 16 (J616s) the CPU thermal zones' passive trips can't throttle anything today, and they sit below the point where the firmware already holds the die. This PR moves the trips and adds the measured energy model that lets them act.
What a guarded load test showed (fleet9, 2026-10-30)
A 90 s all-core busy loop (14 pinned spinners, stopped automatically at 116 C) gave these results:
The ADT's
fast-die-ctrl-loopputs the PMP loop's target at 110.0 C on its own hot-spot sensors. Itstemp-sensorentries list 110 and 125 C per sensor. The SMC die maxima read a few degrees above the PMP's sensors.Why the zones don't act
power_allocatoris the default governor. It only drives power actors, and T6040's CPU OPPs carry noopp-microwatt, so no energy model registers./sys/kernel/debug/energy_modelis empty, and with no actors the governor returns without throttling. Every other Apple SoC DT in the tree (T8103, T8112, T600x, T602x, T8140) has OPP power values. The critical trip (orderly shutdown at 118 C) does work, because it doesn't depend on the governor.This change
The trip move alone changes nothing at runtime. With the energy model commit, the CPUs become power actors and the zones can throttle.
Pending, not in this PR
opp-microwattfor the E, P0 and P1 tables, measured on the J616s from the SMC core rails (method and raw data in the PR comment). With an EM, the seven GPU zones' 101 C CPU shedding also becomes active for the first time. That needs a GPU+CPU benchmark before merge.Evidence (load log, scripts, ADT decode) is in the aurora-ctl reports directory
j616s-thermal-backstop-20261030.dtcbuilds the J616s DTB on both bases.🤖 Generated with Claude Code