Repository navigation
arm64: dts: apple: t8112: alias the SEP on the Mac mini (J473) - #2871
Conversation
The SEP node is disabled in t8112.dtsi and t602x-die0.dtsi on every board, laptops included. That is the warm-attach contract of apple_sep: on these SoCs the SEP is already running when Linux starts, and the driver enables the SEP node and sep_dart with a changeset at module load, after it has picked the SoC's profile and before the DART probes. The running M2 Air (J413) shows it: "SEP DART changeset applied", "SEP node enabled", then "ready ... 12 endpoints". Say so at the node, so the disabled status does not read as a missing enable. What a board must provide is the sep alias: m1n1 finds the SEP through it to add the sepfw region and the local-policy and iBoot manifests, and the warm registration refuses to attach without the manifests. The M2 laptops have it; the Mac mini (J473, J474s) and the Mac Studio M2 Max (J475c) have a SEP and a profile (T8112, T6020/T6021) but no alias, so the driver could never attach there (key store, Magic Keyboard Touch ID). Add it. These boards have no built-in sensor and leave the mesa node disabled. The M2 Ultra boards (J475d, J180d) get no alias: the driver has no T6022 profile, so it would only reserve memory for nothing. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Review at 42cc920. The fix is right and minimal: the loader finds the SEP through
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at live head 42cc92083f684f0327528ea289153a1a92272561 (CI green: dt-checks, host-tests).
Checklist Summary
- §1 No model gating: DT-only alias addition; no driver/board gates added. Omitting M2 Ultra (
t6022-j475d.dts,t6022-j180d.dts) matchesdrivers/soc/apple/profile.rs:665-675(profiles covert8112,t6020,t6021; not6022profile). However, J474s and J475c are unproved on hardware (see blocker 2). - §2 Production-ready: Pass for J473 (default kernel command line, no parameters or hacks).
- §3 Safety: J473 one-shot A/B preserved Stage 1 / LocalPolicy / NVRAM. Enabling
sep = &sep;on unbooted J474s/J475c arms irreversible per-boot warm registration on untested desktops. - §4 Clean-room & attribution: Pass. Single human commit (
Ryan Murray), validSigned-off-by, zero AI trailers in commit. - §5 Evidence: Strong J473 A/B hardware row (manifests published, 12 endpoints, trusted-key seal/unseal + tamper refusal,
apple-sephwrng, 0 failed units, SELinux Enforcing, 0 AVC denials, 0 oopses). Missing hardware rows for J474s and J475c. - §6 Naming (hard): Fail (see blocker 1).
Blockers
- §6 Naming (hard rule): The new comments added in
arch/arm64/boot/dts/apple/t8112.dtsi:77andarch/arm64/boot/dts/apple/t602x-die0.dtsi:45say"which m1n1 uses to add the sepfw region and the boot manifests."Per §6 (Use Aurora paths and names, not Asahi or m1n1), replacem1n1withthe boot loader(oraura) in both DT comments. - §1 / §5 Unproved boards (
t6020-j474s.dts,t6021-j475c.dts): Addingsep = &sep;causes the boot loader to reservesepfwand publish the manifests soapple_sepexecutes one-shot per-boot warm registration (profile::T6020) on two boards that have never been booted with this change. Either add a verified boot + regression row for each of J474s and J475c, or split those two DTS edits into a follow-up PR so the hardware-proven J473 fix can land now.
Non-blocking nit
- Both
t6020-j474s.dts(lines 25–27 and 78–81) andt6021-j475c.dts(lines 19–21 and 74–77) end up with two separatealiases { ... }blocks in the same.dtsfile. DTC merges them cleanly, so it is valid, just worth keeping tidy if those hunks stay.
Assisted-by: LLM (Gemini 4 Neon)
… now With the alias the boot loader reserves sepfw and publishes the boot manifests, and apple_sep then makes the SEP's one-shot warm registration. That has a hardware row on the Mac mini (J473) only; J474s and J475c have never booted with it, and a registration cannot be taken back within a boot. Drop their aliases until each has a row; they follow separately. Also name the boot loader in the SEP node comments rather than m1n1. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Both points addressed in 451b707 (one new commit, no rewrite):
The J473 DTB built at the head is byte-identical to the image in the hardware row (sha256 52ee8d1d…), so the A/B in the description still applies as is. The two- Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist re-review at live head 451b707c93a2d5be73f3549c1386c6c10c8e5848 (CI pending (host-tests: ('completed', 'success'), dt-checks: ('in_progress', None)).)
Both Wave 51C blockers are cleanly resolved with 0 code/checklist blockers; holding formal APPROVE solely pending dt-checks completion (will be ready for MERGETRAIN-LINUX4 as soon as dt-checks finishes green).
Prior Wave 51C Blockers (since 42cc92083f)
- Resolved — §6 Naming (hard): Both SEP node comments in
arch/arm64/boot/dts/apple/t8112.dtsi:42-51andarch/arm64/boot/dts/apple/t602x-die0.dtsi:9-18now refer tothe boot loaderinstead ofm1n1. - Resolved — §1 / §5 Unproved boards:
t6020-j474s.dtsandt6021-j475c.dtsaliases have been dropped cleanly from the net diff (identical tointegration/aurora). The PR now changes only the hardware-proven J473 (t8112-j473.dts:30sep = &sep;) plus the explanatory DT comments; the resulting J473 DTB (sha256 52ee8d1d...) is byte-identical to the tested image.
Checklist Summary (§1–§6)
- §1 No model gating: Pass (DT-only alias on J473; M2 Ultra omitted as no T6022 profile; unproved J474s/J475c deferred).
- §2 Production-ready: Pass (default kernel command line, no parameters or hacks).
- §3 Safety: Pass (J473 one-shot A/B preserved Stage 1 / LocalPolicy / NVRAM; unbooted boards removed).
- §4 Clean-room & attribution: Pass (both commits by
Ryan Murray <ryan@aurorasilicon.org>, humanSigned-off-byonly, zero AI trailers in commits; PR body includesAssisted-by). - §5 Evidence: Pass (full J473 A/B on 27.2 stub, default kernel
7.3.0-aurora-fleet82and default cmdline: manifests published, 12 endpoints, key store open,aurora-sep.serviceactive, trusted-key seal/unseal + tamper refusal,apple-sephwrng, 0 failed units, SELinux Enforcing, 0 AVC denials, 0 oopses). - §6 Naming: Pass on net diff, PR title, and PR body.
Non-blocking merge note
- Because commit
42cc92083fwas kept unrewritten and reverted/fixed in451b707c93, commit42cc92083f's commit message still mentionsm1n1and J474s/J475c; squash-merging with the updated PR title/description keepsintegration/auroragit history clean.
Assisted-by: LLM (Gemini 4 Neon)
DjDeveloperr
left a comment
There was a problem hiding this comment.
dt-checks and host-tests are now both green (2/2 PASS) at 451b707c93a2d5be73f3549c1386c6c10c8e5848 with 0 checklist blockers remaining (all Wave 51C §6 and scope points verified resolved in the prior review). Ready for MERGETRAIN-LINUX4 (squash-merge recommended so the superseded 42cc92083f commit message stays out of history).
Assisted-by: LLM (Gemini 4 Neon)
|
Review at 451b707: no blockers. Checked the full diff at this head against
Assisted-by: LLM (Claude:Opus 5.5) |
Problem
The Mac mini (J473) has no
sepalias. The boot loader finds the SEP node through that alias. Without it, the loader adds neither thesepfwregion nor the local-policy and iBoot manifests, andapple_seprefuses the warm attach. On a J473 running the 27.2 stub, every boot logsFDT: sep alias not found in devtree, thenrefusing to attach: device-tree property 'local-policy-manifest' missing, andaurora-sep.servicefails. The key store, trusted keys and the SEP hwrng are unavailable. The M2 Pro mini (J474s) and the M2 Max Studio (J475c) have the same gap, but they have not booted with the alias yet, so they are left for a follow-up.Change
The device-tree half of #2802, which keeps the sensor-shim change. The net change:
sep = &sep;to the J473 aliases.t8112.dtsiandt602x-die0.dtsi.apple_sepenables that node and its DART at module load (warm attach), so the disabled status is intended. The boot loader finds the node through the alias.The second commit removes the J474s and J475c aliases that the first one added, and names the boot loader in the comments. With the alias,
apple_sepmakes its one-shot warm registration, and those two boards have no row yet. They follow in their own PR once each has one.No driver change, no parameters and no board checks.
Testing
integration/aurora110861f. Before and after, J473 differs by the one alias property. J474s and J475c are identical to the tip at the head, and so is J413. The J473 DTB at the head is byte-identical to the one in the hardware row (sha256 52ee8d1d).sep alias not found, no manifests,apple_sepprobe -22,aurora-sep.servicefailed.sepfwregion),ready in 3120 ms: 12 endpoints (cntl sbio scrd sse hdcp xars sks xarm hibe pnon skdl stac), key store open, andaurora-sep.servicesucceeded.apple-sep.runningwith 0 failed units, SELinux Enforcing, 0 AVC denials and 0 oopses.Still to run
Why the node stays disabled, and what the alias does
On T8112 and T602x the SEP is already running when Linux starts.
apple_seppicks the SoC profile at module load, sets the DART window, and enablessep_dartand the SEP node with an OF changeset (dt.rs,enable_sep_and_dart). The loader'sdt_set_sep()resolves/aliases/sep, reserves the SEPFW range from the ADT/chosen/memory-map, and copieslpolandibotfrom/chosen/boot-object-manifestsonto that node. The warm registration refuses to attach without both manifests (shmem.rs). That refusal keeps a CINP-only table from burning the one-shot registration.J473 row B, from the diag sysfs: attach 828 ms, warm boot, protocol variant5, profile T8112/J415, keybag present, xART enabled, pnon read, stac online, 0 unhandled messages.
Evidence
Each trial image was the production Stage 2 executable (the byte-identical prefix of the installed image) plus the tip DTB and the production U-Boot tail, booted as a one-shot. After the trials, the Mac was back on its installed Stage 2 and saved kernel with nothing armed. No Stage 1, boot policy or NVRAM change.
Assisted-by: LLM (Claude:Opus 5.5)