Repository navigation
J616s: CPU thermal backstop, energy model and sustainable power (replaces 606 and 635) - #715
Merged
Merged
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]>
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 Signed-off-by: Ryan Murray <[email protected]>
…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]>
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #606 and #635 with the same three J616s thermal commits on the current aurora-wip:
Why a reland: two of the original commits ended with a Co-Authored-By line and one had no Signed-off-by, and the stacked sustainable-power commit no longer applied, because aurora-wip has since rewritten the thermal comment block for the fan ladder. Here every commit is authored by Ryan with the house trailers, and the comment keeps both the fan ladder paragraph and the sustainable-power paragraph. The code is otherwise unchanged.
Testing: built as part of the 7.3.0-aurora-tt1 tree (aurora-wip plus this night's merge train) on the buildbox with the fleet recipe, asahi.config 136/136 kept, t6040-j616s.dtb builds. run-host-tests 158/158 and apple-dcp selftests 82/82 on that tree. Not booted: J616s hardware behaviour under sustained load still needs the run described in the original PRs.
🤖 Generated with Claude Code