Skip to content

arm64: dts: apple: t6040-j616s: Describe every SMC sensor and add die zones - #507

Merged
RyanTheTide merged 2 commits into
wip/j616s-gpu-parity-20261026from
j616s/smc-sensors-20261027
Oct 27, 2026
Merged

RyanTheTide merged 2 commits into
wip/j616s-gpu-parity-20261026from
j616s/smc-sensors-20261027

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 flt key 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 report reports/j616s-sensors-20261027/KEYS.md.

Labels follow the J700 style. GPU, P-cluster and E-cluster prefixes 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 labelled SMC <key>.

Zones:

  • E cluster: one zone each on Tex0-3.
  • P0 cluster: one zone each on Tpx0-5.
  • P1 cluster: one zone each on Tpx8-D.
  • All CPU zones use 113 C passive and 118 C critical, the same backstop as the existing TCMz zone.
  • GPU: seven zones on the hottest Tg sensors, 105 C passive (cooling all three CPU clusters, since the GPU has no cooling device) and 118 C critical.

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_control parameter makes fanN_target writable. 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

… 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]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Boot test on the J616s, tether set boot-7.3.0-aurora-j616s-sens1 (6363a87):

  • 480 SMC hwmon inputs (283 temperatures, 51 voltages, 68 currents, 76 powers, 2 fans). All 480 read with no errors. r6g had 14.
  • The fans show input, min, max and target. fan_control was left off.
  • 25 thermal zones. Every SMC zone has its trips and cooling devices bound.
  • 0 WARN, Wi-Fi associated, BT on, GPU firmware loaded.
  • Pinned per-cluster loads confirm the sensor mapping. P1 (cpus 9-13) drives Tpx8/9/C/D, P0 (cpus 0,5-8) drives Tpx0/1/4/5, and E (cpus 1-4) drives Tex0-3.

@RyanTheTide
RyanTheTide marked this pull request as ready for review October 27, 2026 06:13
@RyanTheTide
RyanTheTide merged commit 73fb974 into wip/j616s-gpu-parity-20261026 Oct 27, 2026
@RyanTheTide
RyanTheTide deleted the j616s/smc-sensors-20261027 branch October 27, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant