Repository navigation
arm64: dts: apple: t604x-j614-j616: leave fast thermal control to the PMP, critical at the ADT limit - #907
Merged
Conversation
Commit 03ce684 ("arm64: dts: apple: Use firmware fan policy and expose thermal pressure") left the fans to the SMC, as macOS does, and 52cbd7f404cd deleted the remaining ladder instances at the end of the file so that branches still adding them would land cleanly. Those branches have landed, so the ladder macros, their call sites and the deletion pass only describe trips the device tree never contains. Remove all three and say in the zones' comment that the fans stay with the SMC. The compiled t6040-j616s and t6040-j614s device trees do not change. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
A sustained mixed load on the J616s (stress-ng cpu, vm, matrix and io, a glmark2 loop and an ANE loop) powered the machine off after 16 minutes: one cpu-p15-thermal sample reached the 118 C critical trip. The CPU zones' sensors are the SMC per-core die maxima (Tpx*, Tex*) and TCMz, their maximum. They follow a core's power within a second, and under that load they move by 9-10 C (one standard deviation) between the 1 s samples the zones see. The PMP's fast die-temperature loop, which cpufreq already enforces, regulates its own hot-spot sensors at the ADT target of 110 C and does not see these excursions: its effort stayed at zero while Tpx read 116 C. With the power allocator emulated at a 100, 105 or 110 C control point, single samples still reached 116.5-117 C within 30-150 s, with the clusters held as low as 1.26 GHz. No control point a 1 Hz controller can hold stops single excursions to 118 C, and the proportional gains made the allocator swing between no limit and full cooling every second. The 118 C trip was chosen by Linux, not Apple. The ADT temp-sensor table gives every PMP sensor a 110 C target and a 125 C maximum, the sochot level, and the SMC sensors read a few degrees above the PMP's. So: - Critical trips move to 125 C on the 17 CPU zones, with a 120 C hot trip that only reports. - The control trip moves from 116 to 115 C, above the PMP's operating point (TCMz 113-114 C under an all-core build), so the PMP keeps the fast control as on macOS and the allocator only trims what it lets through. - Switch-on moves from 100 to 75 C. The 40 C window lowers the proportional gains to 40%, and integral-time-constant-ms = 20000 sets an integral term of k_pu / 20 per second, so the zones act on the average rather than on single samples. - Each zone keeps throttling only its own cluster: a variant that mapped all three clusters to every zone left a hot P1 core at 3.1-3.9 GHz while P0 dropped to 1.26 GHz, because the allocator divides a zone's budget by requested power. The GPU zones and the fans are unchanged; the fans stay with the SMC, as on macOS. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 3, 2026
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
Brings in aurora-silicon#907 (J614/J616 thermal DT) so the J616s run covers the final tree. Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 6, 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.
On the J616s (M4 Pro MacBook Pro 16), a sustained mixed load powered the machine off after 16 minutes. The load was stress-ng (7 cpu, 2 vm, 2 matrix, io), a glmark2 loop and an ANE MobileNet loop. One
cpu-p15-thermalsample hit the 118 C critical trip and triggered the HARDWARE PROTECTION shutdown. This PR changes only the device tree.Why it happened
The CPU zones read the SMC per-core die maxima (Tpx/Tex) and TCMz. These follow a core's power within a second.
Changes
integral-time-constant-ms = 20000is added. Together they lower the proportional gains to 40% and make the zones integral-led.Hardware results (J616s, fleet15, Stage 2 ec7e1217 with only the DTB swapped, one-shot aura-try)
Follow-up
A
critical-samplesthermal_of property: a critical trip acts only after N consecutive samples, with KUnit coverage. It is ready onthermal/critical-samplesand comes as the next PR.Evidence (per-second logs, scripts, ADT decode): aurora-ctl
reports/thermal-j616s-20261103.🤖 Generated with Claude Code