Repository navigation
J616s: put the CPU thermal backstop above the PMP's operating point (aurora-wip) - #606
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 |
|
Superseded by #715, merged into aurora-wip with house trailers. |
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