Skip to content

arm64: dts: apple: t8112: alias the SEP on the Mac mini (J473) - #2871

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
m2mini-sep/sep-alias-m2-desktops
Nov 23, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
m2mini-sep/sep-alias-m2-desktops

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Mac mini (J473) has no sep alias. The boot loader finds the SEP node through that alias. Without it, the loader adds neither the sepfw region nor the local-policy and iBoot manifests, and apple_sep refuses the warm attach. On a J473 running the 27.2 stub, every boot logs FDT: sep alias not found in devtree, then refusing to attach: device-tree property 'local-policy-manifest' missing, and aurora-sep.service fails. 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:

  • Add sep = &sep; to the J473 aliases.
  • Add a comment at the disabled SEP node in t8112.dtsi and t602x-die0.dtsi. apple_sep enables 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_sep makes 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

  • DTBs built on integration/aurora 110861f. 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).
  • J473 hardware A/B on the 27.2 stub, default kernel 7.3.0-aurora-fleet82 and default command line. The SEP driver sources are the same as on the tip. Both trials use the production Stage 2 executable and U-Boot with a tip DTB, booted once:
    • Tip DTB without the alias: sep alias not found, no manifests, apple_sep probe -22, aurora-sep.service failed.
    • Tip DTB with the alias: manifests published (local policy 2917 B, iBoot 5856 B, sepfw region), ready in 3120 ms: 12 endpoints (cntl sbio scrd sse hdcp xars sks xarm hibe pnon skdl stac), key store open, and aurora-sep.service succeeded.
      • Trusted key seal and unseal both return 0 (222 ms each), and a tampered blob is refused.
      • The hwrng is apple-sep.
      • The system reached running with 0 failed units, SELinux Enforcing, 0 AVC denials and 0 oopses.

Still to run

  • Nothing for J473. J474s and J475c move to a follow-up PR that needs a boot row on each.
Why the node stays disabled, and what the alias does

On T8112 and T602x the SEP is already running when Linux starts. apple_sep picks the SoC profile at module load, sets the DART window, and enables sep_dart and the SEP node with an OF changeset (dt.rs, enable_sep_and_dart). The loader's dt_set_sep() resolves /aliases/sep, reserves the SEPFW range from the ADT /chosen/memory-map, and copies lpol and ibot from /chosen/boot-object-manifests onto 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)

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

Copy link
Copy Markdown
Contributor Author

Review at 42cc920.

The fix is right and minimal: the loader finds the SEP through /aliases/sep, so the three M2 desktops were the odd ones out. The J473 A/B on the 27.2 stub (alias missing -> probe -22; alias present -> manifests published, 12 endpoints, trusted-key seal/unseal, Enforcing, 0 AVC) shows exactly that. Leaving the M2 Ultra out because there's no T6022 profile is correct. Human trailer only.

  1. J474s and J475c: with the alias, their loader now reserves sepfw, publishes the manifests and apple_sep goes through with the one-shot warm registration on two machines it has never run on. The driver refuses safely when anything is missing, but the registration itself is the part we can't take back within a boot. Please either get one boot row on each (an outside tester with a fetchable kit is fine), or split those two aliases into a follow-up so the J473 part can land now.
  2. Nit: the new comments in t8112.dtsi and t602x-die0.dtsi say "which m1n1 uses". Our loader is aura (dt_set_sep()), so please say "the boot loader" there, as the PR body does.

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

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) matches drivers/soc/apple/profile.rs:665-675 (profiles cover t8112, t6020, t6021; no t6022 profile). 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), valid Signed-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-sep hwrng, 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

  1. §6 Naming (hard rule): The new comments added in arch/arm64/boot/dts/apple/t8112.dtsi:77 and arch/arm64/boot/dts/apple/t602x-die0.dtsi:45 say "which m1n1 uses to add the sepfw region and the boot manifests." Per §6 (Use Aurora paths and names, not Asahi or m1n1), replace m1n1 with the boot loader (or aura) in both DT comments.
  2. §1 / §5 Unproved boards (t6020-j474s.dts, t6021-j475c.dts): Adding sep = &sep; causes the boot loader to reserve sepfw and publish the manifests so apple_sep executes 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) and t6021-j475c.dts (lines 19–21 and 74–77) end up with two separate aliases { ... } blocks in the same .dts file. 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>
@RyanTheTide RyanTheTide changed the title arm64: dts: apple: t8112, t602x: alias the SEP on the M2 desktops arm64: dts: apple: t8112: alias the SEP on the Mac mini (J473) Nov 22, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Both points addressed in 451b707 (one new commit, no rewrite):

  • J474s and J475c: their aliases are removed, so the PR now changes the J473 only. At the head, t6020-j474s.dts and t6021-j475c.dts are identical to integration/aurora. They go to a separate PR once each board has a boot row.
  • The SEP node comments in t8112.dtsi and t602x-die0.dtsi now say "the boot loader" instead of m1n1, reflowed to 80 columns.

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-aliases-block nit goes away with those hunks.

Assisted-by: LLM (Claude:Opus 5.5)

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

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-51 and arch/arm64/boot/dts/apple/t602x-die0.dtsi:9-18 now refer to the boot loader instead of m1n1.
  • Resolved — §1 / §5 Unproved boards: t6020-j474s.dts and t6021-j475c.dts aliases have been dropped cleanly from the net diff (identical to integration/aurora). The PR now changes only the hardware-proven J473 (t8112-j473.dts:30 sep = &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>, human Signed-off-by only, zero AI trailers in commits; PR body includes Assisted-by).
  • §5 Evidence: Pass (full J473 A/B on 27.2 stub, default kernel 7.3.0-aurora-fleet82 and default cmdline: manifests published, 12 endpoints, key store open, aurora-sep.service active, trusted-key seal/unseal + tamper refusal, apple-sep hwrng, 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 42cc92083f was kept unrewritten and reverted/fixed in 451b707c93, commit 42cc92083f's commit message still mentions m1n1 and J474s/J475c; squash-merging with the updated PR title/description keeps integration/aurora git history clean.

Assisted-by: LLM (Gemini 4 Neon)

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

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)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Review at 451b707: no blockers.

Checked the full diff at this head against integration/aurora:

  • t8112-j473.dts gains only sep = &sep; in its aliases. J474s and J475c are untouched at this head, so point 1 of the 42cc920 review is resolved by the split.
  • The two new comments (t8112.dtsi, t602x-die0.dtsi) now say "the boot loader", so the nit is fixed. They are comments only; the node stays disabled and its compiled DT output is unchanged except for the J473 alias.
  • No driver change, no parameter, no board check. Behaviour is selected by the alias the loader already looks for, the same way the M2 Air works today.
  • The J473 hardware A/B from 42cc920 (alias missing -> apple_sep refuses; alias present -> manifests published, trusted-key seal/unseal, Enforcing, 0 AVC) covers this head: the J473 DTB is byte-identical between the two heads.
  • CI green (dt-checks, host-tests); merges cleanly.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide merged commit 13e494a into integration/aurora Nov 23, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the m2mini-sep/sep-alias-m2-desktops branch November 27, 2026 13:21
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.

2 participants