Skip to content

arm64: dts: apple: t6031: add SoC die thermal limits and mTPL key - #3855

Merged
RyanTheTide merged 1 commit into
mainfrom
dts/t6031-smc-thermal-limits
Dec 2, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
dts/t6031-smc-thermal-limits

Conversation

@maralcbr

@maralcbr maralcbr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

t6031.dtsi's &smc_hwmon node (also inherited by t6034.dtsi) defines apple,soc-die-keys but omits apple,soc-die-passive-millicelsius, apple,soc-die-hot-millicelsius, and apple,thermal-pressure-key, leaving the macsmc_soc_die thermal zone without trip points and without mTPL thermal-pressure telemetry.

Add the three properties matching t6030.dtsi and verified directly against a live 16-inch M3 Max (J516C, T6031):

  • apple,soc-die-passive-millicelsius = <100000>; (apple,tunable-fast-die-ctrl-ts-avg-temp = 0x64 / 100 °C)
  • apple,soc-die-hot-millicelsius = <110000>; (apple,tunable-fast-die-ctrl-loop target = 0x6e / 110 °C)
  • apple,thermal-pressure-key = "mTPL"; (SMC key table index 2246, mTPL si32 4 85)

Tested: MacBook Pro 16-inch (M3 Max, J516C, T6031) at 78c7268 (live PMP tunable table and /sys/kernel/debug/macsmc-hwmon/keys readout on naeems-m3-max; ARM64 kernel + DTB build b1202-103918-3651 and all affected DTBs compile cleanly with zero new warnings; checkpatch --strict clean; Codex review VERIFIED 01a23427-73a4-75d1-b4e9-39a20be8b9c5).
Risk: two-way · T6031/T6034 macsmc-hwmon SoC die thermal limits and mTPL thermal pressure key

T6031's smc_hwmon node (also inherited by T6034) defines
apple,soc-die-keys but omits the SoC die thermal limits and SMC thermal
pressure key, leaving the macsmc_soc_die thermal zone without trip
points and without mTPL pressure telemetry.

Add apple,soc-die-passive-millicelsius (100 C),
apple,soc-die-hot-millicelsius (110 C), and apple,thermal-pressure-key
("mTPL"), verified directly against a live J516c (16-inch M3 Max)
PMP tunable table (fast-die-ctrl-ts-avg-temp = 0x64 / 100 C,
fast-die-ctrl-loop target = 0x6e / 110 C) and SMC key table (mTPL si32,
index 2246), matching T6030.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@maralcbr
maralcbr requested review from a team as code owners December 2, 2026 00:46
@maralcbr
maralcbr requested review from LiamRay11 and malik-na and a balanced review from Copilot December 2, 2026 00:46
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 78c72680: ready to merge

Check Detail
CI at head ok 5 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 78c72680
Conflicts ok none
PR text ok Risk: two-way · T6031/T6034 macsmc-hwmon SoC die thermal limits and mTPL thermal pressure key

Areas: area:platform
Merge: gh pr merge 3855 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the T6031/T6034 thermal-limit and pressure-telemetry additions.

No open issues 🎉

What changed in this PR

Adds missing SoC die thermal limits and pressure telemetry for T6031 and inheriting T6034 devices, matching T6030.

Changes:

  • Sets passive and hot thresholds to 100°C and 110°C, with a comment documenting their firmware source.
  • Configures mTPL as the thermal-pressure key.
File Description
arch/​arm64/​boot/​dts/​apple/​t6031.dtsi Adds thermal thresholds and pressure telemetry to smc_hwmon.

Review effort: Balanced

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 78c7268. The trip points and pressure key match t6030.dtsi and the comment says where the two temperatures come from. Merge needs a boot of this DTB at this head on a T6031 Mac showing the macsmc_soc_die zone with both trips and mTPL readable.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merge status: one item left, a T6031 boot with this DTB.

The change is approved, and its merge into current main passes the device-tree checks (below). The values match the PMP tunables, but no boot has used the new DTB yet (the lab runs kept the old boot.bin).

To close it, please boot an M3 Max (the J516C is fine) with a DTB built from this PR, installed with update-m1n1, and post one line naming the head SHA, the Mac and the result: the macsmc_soc_die thermal zone shows its 100 °C passive and 110 °C hot trips, mTPL thermal pressure reads, and there are no new kernel errors.

One boot of a DTB that carries this PR, #3854 and #3856 unchanged counts for all three.

Local checks on the merge result (hosted CI stand-in)
  • Head 78c72680cf37 merged into main 5a870d0f0b3f (merge tree 4bcd11b60772); arm64, LLVM=1, dtschema 2026.9.
  • scripts/dtc/apple-dt-check.sh: all 141 Apple DTBs build at base and merge. Four change: t6031-j514c, t6031-j516c, t6034-j514m, t6034-j516m. CHECK_DTBS on them: 68 warning lines at both, 0 new, 0 removed. dtc warnings: 0 at both. No T6030 DTB changes.
  • ADT coverage and DART power-domain checks: pass, nothing new.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 78c72680cf37 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: in the PR body at 78c7268. CI: linux train L24 (candidate fdfedd05e955 on main a76093e): Apple driver build pass + touched objs pass (kernel/sched/psi.o verified with CONFIG_PSI=y) + DTBs pass + 12/12 relevant KUnit suites pass (ane-boot 333, clpc 22, ane-pm 20, dcp-fabric 117, dcp-topology 235/236, dcp-display 220/221, ave 57, apple-dart 40, jpeg 15, isp 61, mt7932 98/99, asahi 567/571; avd-pm-test.c pre-existing Clang 22 warning on main) + host tests pass (apple-dcp 1/1, dcp 96/96, g17 329/329). Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 7e691ca into main Dec 2, 2026
8 checks passed
@RyanTheTide
RyanTheTide deleted the dts/t6031-smc-thermal-limits branch December 2, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants