Skip to content

arm64: dts: apple: t8142-j815: Use the shared T8142 SMC hwmon sensors - #4042

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/thermal-zones
Dec 4, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/thermal-zones

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What: Switch t8142-j815.dts from its inline apple,discover-temperatures SMC hwmon block to the shared t8142-hwmon.dtsi, now that every key in it is verified on J815. J815's thermal policy is unchanged (no thermal zones added; the PMP keeps die temperature control); t8142-j813.dts is untouched.
Tested: J815 (MacBook Air 15" M5), nightly13: main 59c55677a7a8 + the other open J815 PRs, with this PR's J815 DTB at 0044dad36b9b (the nightly's J815 tree without the CPU thermal zones; dtc diff against it: only the 18 zones and #thermal-sensor-cells removed), Stage 2 1.0.0b19-38-g024add0c; 1 boot. 2 thermal zones (macsmc_soc_die, battery) x 10 reads in 10 s: 20/20 in range, 0 read errors, 31-46 C; macsmc_hwmon 66 inputs. One timed deep sleep (rc 0, S3 on every SSPS controller in 10-11 ms), then the same reads again: 20/20, 0 errors, 66 inputs. Regression: 0 failed units, 0 WARN/BUG/Oops, no SELinux on this install (0 denials); 3 new kernel lines vs the previous boot, all from a first sleep attempt that our test hook started while the camera driver was still loading (the sleep controller refused it with the ISP still running); the retry above was clean. Build-tested at 0044dad36b9b (ARCH=arm64 LLVM=1 W=1; t8142-j813.dtb and t8142-j704.dtb byte-identical to the base 5f32aa72fa7e; CHECK_DTBS=y on t8142-j815.dtb: no diagnostics, the same as the base).
Risk: Two-way door · J815 (MacBook Air 15-inch, M5) only; the J813 and J704 DTBs are byte-identical.
Not yet: J815 CPU die thermal zones: a follow-up after a sustained J815 soak, since the switch-on, sustainable power and controller terms were measured on J813.

Details
  • t8142-hwmon.dtsi carried a note that J815 kept an inline apple,discover-temperatures copy until its SMC keys were verified on hardware. Live J815 SMC key dumps confirm 6/6 hwmon-common, 6/6 hwmon-laptop, and 29/29 t8142-hwmon keys (including all 26 apple,soc-die-keys and mTPL).
  • Earlier heads of this PR also moved J813's 18 CPU die thermal zones into a dtsi shared with J815. Following review, that part is dropped here. J815's ADT gives the same 110 C target / 125 C maximum for every CPU die sensor as J813's, but the trip settings around them still need J815 measurements.
Evidence
  • make ARCH=arm64 LLVM=1 W=1 apple/t8142-j815.dtb apple/t8142-j813.dtb apple/t8142-j704.dtb at 0044dad36b9b and at the base: no warnings in the changed files; t8142-j813.dtb and t8142-j704.dtb are byte-identical.
  • make ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t8142-j815.dtb: no diagnostics at the head or the base.
  • J815 27.2 ADT, PMP temp-sensor table: all 24 CPU die sensors (Ta000..Ta007, Tp000..Tp00r, Te001..Te007) give a 110 C target and 125 C maximum (redacted in live/27.2: add live device tree for J815 (M5 MacBook Air 15-inch) adt-collection#10).

@m0d16l14n1
m0d16l14n1 marked this pull request as ready for review December 4, 2026 02:08
@m0d16l14n1
m0d16l14n1 requested review from a team as code owners December 4, 2026 02:08
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 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 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at 0044dad3: not ready yet

Check Detail
CI at head running running: dt-checks, host-tests
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 0044dad3
Conflicts ok none
PR text ok Risk: two-way · J815 (MacBook Air 15-inch, M5) only; the J813 and J704 DTBs are byte-identical.

Areas: area:bringup

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

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: REQUEST CHANGES at 291647b

Failure: The compiled J815 DTB arms 18 new critical shutdown trips using the J813 ADT limit. Three successive samples at the copied threshold on any of the 18 sensors take the thermal core's critical shutdown path. There is no check that J815 supplies that limit. The J815 base delegates those limits to its PMP and has no such shutdown trips. This is the exact J815 case left open when the sensor-provider support landed in #1908.

Keep the hwmon sharing, and leave the J815 software shutdown trips disabled until they can use J815's own limit. I built the three DTBs and verified that J813 and J704 stay byte-identical, all 18 new J815 zone phandles resolve to the intended hwmon indices, and the targeted schemas pass.

@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.

The ARM64 W=1 and CHECK_DTBS builds match main's schema diagnostics. J813 and J704 are byte-identical. On J815, though, the compiled tree adds 18 CPU critical shutdown trips at 125 °C, each with critical-samples = <3>. Those limits come from J813. The J815 receipt verifies the sensor keys and readouts across sleep, but gives no J815 source for the shutdown policy.

Please split the hwmon sharing from the thermal policy. Keep J815's existing policy in the hwmon change, or document J815's own thresholds and justify the new trip settings before adding them. On the revised head, the J815 owner can repeat sensor reads and one deep wake. The unchanged J813 and J704 binaries need no new rows.

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) labels Dec 4, 2026
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

J815's own ADT has the same limits. Its PMP temp-sensor table gives every CPU die sensor (Ta000..Ta007, Tp000..Tp00r, Te001..Te007, 24 entries) a 110 C target and a 125 C maximum, the same as J813's. I read this from the J815 27.2 ADT; the table is redacted in aurora-silicon/adt-collection#10, so the values are quoted in the PR Evidence.

So the trips use J815's own limit, not a copied one. At cd35c5502647 the dtsi comment and commit message cite both ADTs (comment-only change; the DTBs are unchanged, and J813/J704 stay byte-identical to main).

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 4, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Dec 4, 2026

@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.

The J815 PMP table values you posted address my threshold objection. The 110 °C control and 125 °C critical thresholds match the values reported for J815 itself.

I compared cd35c5502647 with the reviewed 291647b4dc06. The only source change is the comment citing the J815 table. The previous DTB checks and J815 sensor reads and four clean deep wakes still apply. The earlier J813 and J704 DTBs were byte-identical to main. Approving this head and starting Host tests, Device tree checks, and PR text.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: MERGE at cd35c55

Checked: The author confirmed the critical limit against J815's own PMP sensor descriptions in the linked evidence. The shared DT therefore uses the confirmed limit for both machines. The revision changes the source citation and leaves the compiled behavior unchanged. I matched the touched source blobs to this head, rebuilt the J815, J813 and J704 DTBs byte-for-byte against the prior review, and reran the J815 thermal-zone and SMC hwmon schema checks without diagnostics. This resolves my prior change request.

All 6 hwmon-common, 6 hwmon-laptop and 29 t8142-hwmon SMC keys are
present in the live J815 SMC key table, including all 26 SoC die keys
and mTPL. Include t8142-hwmon.dtsi in t8142-j815.dts in place of the
inline apple,discover-temperatures block that duplicated them, and drop
the note in t8142-hwmon.dtsi that kept J815 out until it was verified.

J815's thermal policy is unchanged: no thermal zones are added, and
the PMP keeps die temperature control. The J813 and J704 DTBs are
unchanged.

Signed-off-by: Nick <nekreshen@yandex.ru>
@github-actions github-actions Bot removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@m0d16l14n1 m0d16l14n1 changed the title arm64: dts: apple: t8142-j815: share hwmon and CPU die thermal zones with J813 arm64: dts: apple: t8142-j815: Use the shared T8142 SMC hwmon sensors Dec 4, 2026
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Split as suggested. At 0044dad36b9b this PR only moves J815 onto the shared t8142-hwmon.dtsi; J815 keeps its current thermal policy (PMP only, no new trips) and t8142-j813.dts is unchanged. The 110/125 C limits are in J815's own ADT (see above), but the 95 C switch-on, 13 W sustainable power and controller terms were measured on J813, so the J815 zones move to a follow-up after a sustained J815 soak. New J815 row at 0044dad36b9b in the body: sensor reads before and after one deep wake, 20/20 in range each time, 66 macsmc_hwmon inputs; J813/J704 DTBs byte-identical and CHECK_DTBS clean on J815.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 4, 2026

@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.

Approved at 0044dad36b9b. This revision gives J815 the shared hwmon description and leaves its thermal policy with PMP. The two touched files merge cleanly with 35ddf947b124, retaining #4041's MagSafe sleep property.

The exact-head J815 run reports 66 hwmon inputs and 20/20 sensor reads in range before and after one successful deep wake. The J813 and J704 DTBs are byte-identical to the base. The three hosted checks for this head are authorized.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 4, 2026
@DjDeveloperr
DjDeveloperr merged commit bae84a3 into aurora-silicon:main Dec 4, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants