Repository navigation
arm64: dts: apple: t6040-j616s: Describe every SMC sensor and add die zones - #507
Merged
RyanTheTide merged 2 commits intoOct 27, 2026
Merged
Conversation
… zones The J616s DT listed one SMC temperature (TCMz) plus the shared hwmon includes: five temperatures, two fans and a handful of rails, while its SMC has 3462 keys. A read-only walk of the key table on this machine found 466 more readable float sensors that update: 278 temperatures (P and E cluster, GPU, SoC, VR, NAND, battery, ports), 49 voltages, 67 currents and 72 powers, including the three battery cells and the battery current and power. Describe all of them, in the style of the J700, so the machine reports at least what the fanless J700 does. Keys that only ever read a fixed placeholder (Tz1*, Ta0*) or a fixed limit (TVMx, TVmS, TVms, PHPB, PHPM) stay out; rails that read 0 W at idle stay in. The GPU sensors (Tg*) report placeholder values from -4 to 4 C while the GPU is powered off and read live while it runs. Add a zone per die-maximum sensor: Tex0-3 for the E cluster, Tpx0-5 and Tpx8-D for the two P clusters, with the TCMz backstop trips (113 C passive, 118 C critical), and the seven hottest GPU sensors, which shed package power through the CPU clusters from 105 C, above the 103.8 C peak seen during conformance runs. The PMP and the SMC fans regulate in normal use; these zones catch a failure of that loop. The fans already list their minimum, maximum, target and mode keys, so the existing fan_control module parameter makes fanN_target writable; no new parameter is needed. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
"Tp*/Te*" in the sensor comment closed the comment early and broke the build of the J616s DT. Spell the groups out. Fixes: 8b5a2d7 ("arm64: dts: apple: t6040-j616s: Describe every SMC sensor and add die zones") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Boot test on the J616s, tether set boot-7.3.0-aurora-j616s-sens1 (6363a87):
|
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.
Describe every readable SMC sensor on the J616s (M4 Pro MacBook Pro 16) and add per-cluster and GPU thermal zones. DT only: no driver, parameter, cmdline or config change.
Before: 14 SMC hwmon channels (5 temperatures, 2 voltages, 1 current, 4 powers, 2 fans) and one thermal zone (TCMz).
After: 480 channels (283 temperatures, 51 voltages, 68 currents, 76 powers, 2 fans) and 24 SMC zones. The J700 (Neo) DT describes 204.
How the keys were chosen: a read-only walk of all 3462 SMC keys on the machine, plus 40 dumps taken during a GPU benchmark. Every readable, non-function
fltkey in the T, V, I and P groups is included, and so are the battery cells, current and power (SBA1-3, SBAC, SBAP). Keys that only ever read a fixed placeholder (Tz1*, Ta0*) or a fixed limit (TVMx, TVmS, TVms, PHPB, PHPM) are left out. The full inventory with types, flags, values and the Neo comparison is in the private reportreports/j616s-sensors-20261027/KEYS.md.Labels follow the J700 style.
GPU,P-clusterandE-clusterprefixes are backed by behaviour: Tg* only reads live while the GPU is powered and rises with GPU load. Tp* and Te* rise with CPU load. Every other key is labelledSMC <key>.Zones:
On this machine the PMP and the SMC regulate in normal use, so these zones only act if that loop fails.
Fans: both fans already list min, max, target and mode, so the existing
fan_controlparameter makesfanN_targetwritable. Fan control was not enabled for testing and no SMC key was written.The second commit fixes a
*/inside the first commit's comment that broke the DTB build. Please squash-merge, or I can respin with Ryan's OK for a force push.Boot test on the J616s (tether set
boot-7.3.0-aurora-j616s-sens1): pending, results will follow as a comment.🤖 Generated with Claude Code