Skip to content

arm64: dts: apple: t6041-j575c: enable the SEP, without Touch ID - #3276

Merged
RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
7robertodantas:j575c-sep
Dec 1, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
7robertodantas:j575c-sep

Conversation

@7robertodantas

@7robertodantas 7robertodantas commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the SEP on the Mac Studio (M4 Max, J575c), which has no Touch ID sensor. A new boolean apple,no-biometric-sensor on the SEP node tells apple_sep the machine has no fingerprint sensor, so it skips publishing /dev/sep-bio and does not try to bring up an absent sensor, while keeping trusted keys and /dev/hwrng working.
Tested: J575c (Mac Studio M4 Max) at exact integration head 4c1ca5f18a3f (7.3.0-1-131-ARCH, unmodified head DTB, default Arch cmdline, stock aura 1.0.0b13): SEP ready in 3121 ms (12 endpoints, key store open), trusted keys seal/unseal and /dev/hwrng pass before and after s2idle, /dev/sep-bio absent, diag/touchid = absent, spi@429108000 (spi2) and fingerprint@0 stay disabled, 0 failed units (SELinux N/A, Arch), 0 new kernel warnings/errors, s2idle 1/1 (rtc0).
Risk: one-way door (new DT binding property and new diag/touchid value absent; first SEP bind writes Linux's identity keybag and Linux-owned xART session records, which a revert does not remove — held for owner disposition) · J575c only: only its DT sets the property; every other board runs the shared keystore path unchanged (not booted on another Mac).
Not yet: owner disposition on first-bind persistent keybag and xART writes; a sensor-equipped peer sanity row for the shared keystore registration path; other sensorless Macs with the SEP on (J773s, J456/J457, J473) do not set the property and keep today's behaviour.

Details
  • ADT (J575c, macOS 27.2.1): /arm-io/sep is iop-sep,ascwrap-v6, sepfw-booted, at the t604x.dtsi address (0x406600000, 0x88000) and interrupts (666-669); dart-sep at 0x404c80000, interrupt 676, vm-base 0x10000004000, vm-size 0x3ff00000. Same as the J614c/J616c. No spi2/mesa.
  • DT: as t6041-j614c-j616c.dtsi: sep = &sep (the loader reserves the SEP firmware and passes the manifests) and &sep_mbox okay; apple_sep enables the SEP and its DART. Plus apple,no-biometric-sensor. spi@429108000 (spi2) and fingerprint@0 stay disabled.
  • Why the property: without it, the first open of /dev/sep-bio (aurora-sep-ready.service opens it at boot to ask whether a reader is present) enables t604x.dtsi's disabled sensor node and spi2. apple-mesa fails with "power unavailable" (-ENODEV), and the T6041 profile (nonce session) runs all 5 attach and 5 late bring-up attempts. Deleting the node in the DT does not help: the driver then creates one on spi2, and the nonce-session retries do not check for a bound sensor.
  • Why not a generic rule ("a disabled sensor node means no sensor"): every Mac with a sensor enables the node in its DT, but the rule would change the J773s, J456/J457 and J473 too, which I cannot test. With the property, a board opts in without any board-name check in the driver. The loader could later set it from the ADT (no spi2/mesa) for every Mac.
  • Driver: finish_keystore_bringup() still provisions the identity keybag; with the property it skips only /dev/sep-bio and sets diag/touchid to absent (ABI doc updated). /dev/sep-key and /dev/sep-bio-rearm are published as before: the rearm node also carries per-user key bags (login-password keys), and with Touch ID never activated its re-arm call only clears a recorded lockout. Userspace already handles a missing /dev/sep-bio: aurora-sep-load logs "trusted keys are ready; no biometric device is present", and aurora-sep-ready is skipped by ConditionPathExists=/dev/sep-bio. aurora-touchid-boot still asks the rearm node to wait for the first password, which logs "Touch ID: waits for the first password since this boot" (info level).
  • Sibling drift reports one new warning, apple,no-biometric-sensor only on j575c (j614c, j616c have the SEP node without it): intended, the J575c is the one without a sensor.
Evidence

Exact-head standalone boot: kernel 7.3.0-1-131-ARCH = cec0503a5a02 + these three commits (e5d8d49d78a4, 3b8e45868f5d, 4c1ca5f18a3f), unmodified head t6041-j575c.dtb packed into one-shot aura-try with stock aura 1.0.0b13 (1.0.0b13-g5dcf62d0), default Arch cmdline.

apple_sep 406600000.sep: SEP platform profile: T6041/J614c, J616c
apple_sep: xART guard level 1: 9 session records exist, 0 created by Linux; the other 9 are protected
apple_sep 406600000.sep: bringup: the device tree describes no fingerprint sensor; /dev/sep-bio is not published
apple_sep 406600000.sep: ready in 3121 ms: 12 endpoints (cntl sbio scrd sse hdcp xars sks xarm hibe pnon skdl stac), key store open
apple_sep 406600000.sep: hwrng: registered after ready-phase survey (attempt 1)
aurora-sep-load: trusted keys work after 1 s
aurora-sep-load: trusted keys are ready; no biometric device is present
Check (4c1ca5f18a3f, 7.3.0-1-131-ARCH) Result
failed units 0
diag/touchid, keybag, xart, keystore, hwrng, sensor absent, present, enabled, open, registered, unbound
diag/unhandled_messages, xarm_failures, xart_guard_refusals 0, 0, 0
/dev/sep-bio absent; /dev/sep-key, /dev/sep-bio-rearm present
/proc/device-tree/spi@429108000 and fingerprint@0 both disabled
trusted key seal/unseal (keyctl new/pipe/load) & /dev/hwrng OK before and after s2idle
s2idle (rtcwake -m freeze -s 15, rtc0) 1/1, same boot_id, 0 failed units
new kernel err/warn vs base 0 (usb 3-1.4 -71 and asmedia -2 are on stock baseline too)
checkpatch --strict 0/0/0 on all three commits
build warnings 43, same as baseline

Before the property (same kernel lineage, DT with SEP only), the sensor bring-up logged apple-mesa spi1.0: error -ENODEV: sep sensor: power unavailable and 10 failed bring-up attempts.

@7robertodantas
7robertodantas requested review from a team as code owners November 26, 2026 16:52
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) door:one-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 4c1ca5f1: not ready yet

Check Detail
CI at head ok 28 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 4c1ca5f1
Conflicts ok none
PR text ok Risk: one-way · (new DT binding property and new diag/touchid value absent; first SEP bind writes Linux's identity keybag and Linux-owned xART session records, which a revert does not remove — held for owner disposition) · J575c only: only its DT sets the property; every other board runs the shared keystore path unchanged (not booted on another Mac).

Areas: area:bringup, area:platform

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

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 26, 2026
Desktop Macs without built-in Touch ID still have the SoC's sensor SPI
bus, and the SoC device trees describe a disabled sensor node on it.
Add a boolean that lets a board say the machine has no fingerprint
sensor for the SEP, so the SEP runs without biometrics.

Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
The first open of /dev/sep-bio activates Touch ID and brings the
sensor up, and aurora-sep-ready opens it at boot to ask whether a
reader is present. On a machine without one the activation enables the
disabled sensor node the SoC device tree carries and probes it: the
sensor driver logs "power unavailable" (-ENODEV), and the nonce-session
profiles (T8140 and later) then run every attach and late-attach
bring-up attempt against a sensor that is not there.

When the SEP node has apple,no-biometric-sensor, don't publish
/dev/sep-bio, and report diag/touchid as "absent". The identity keybag
is still provisioned, and /dev/sep-key, the trusted keys and
/dev/sep-bio-rearm (which also carries the per-user key bags) are
published as before; aurora-sep-load already handles a machine with no
biometric device. Boards without the property are unchanged.

Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
The J575c ADT (macOS 27.2.1) describes the same SEP as the J614c and
J616c: an iop-sep,ascwrap-v6 that iBoot hands over booted
(sepfw-booted), at the addresses and interrupts in t604x.dtsi, behind a
dart-sep with vm-base 0x10000004000 and vm-size 0x3ff00000. Enable the
SEP mailbox and add the sep alias, as the J614c/J616c tree does, so the
loader reserves the SEP firmware and apple_sep enables the SEP and its
DART.

The Mac Studio has no Touch ID sensor (no spi2/mesa in the ADT): spi2
and the sensor node stay disabled, and apple,no-biometric-sensor keeps
the SEP from looking for one.

Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>

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

The boolean describes a hardware property and the shared driver uses it without a board-name check. The advertised J575c test is from the previous base, while current-head CI is still pending. Before making this merge-ready, obtain the owner disposition for first-bind persistent keybag and xART writes. Attach exact integration-head J575c evidence for trusted keys and absent biometrics and a sensor-equipped peer sanity row for the shared keystore registration path. Keep the separate deep-sleep result out of this PR’s claims until it is demonstrated.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed needs-hw-row No hardware row at the PR head (bot) labels Nov 27, 2026
@7robertodantas

Copy link
Copy Markdown
Contributor Author

Updated the PR body after the review with exact-head 4c1ca5f18a3f standalone boot evidence on J575c (7.3.0-1-131-ARCH, unmodified head DTB, default cmdline, stock aura 1.0.0b13): trusted keys seal/unseal and /dev/hwrng pass before and after s2idle, /dev/sep-bio is absent, diag/touchid = absent, and spi2/fingerprint@0 stay disabled, with no deep-sleep claims in this PR. All build, dt-checks, host-tests, KUnit, SEP source, and pr-text CI checks at 4c1ca5f18a3f are green.

I only have the J575c (no Touch ID Mac), so this is ready on my end and waiting on owner disposition for the first-bind persistent keybag/xART writes and a Touch ID peer sanity row.

@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: FINISH at 4c1ca5f18a3f

The updated exact-head J575c result closes the target hardware ask: trusted-key seal/unseal and hwrng pass across s2idle, while biometric nodes and /dev/sep-bio remain absent. Hosted checks are reported green at this head. The prior change request still stands for owner disposition of the first-bind persistent SEP writes and a sensor-equipped peer sanity check. The target result can be retained when those are supplied.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train review at 4c1ca5f1: Verdict: merge after CI + a J575c row at this head (SEP up, keybag present, /dev/sep-key works, touchid diag reads absent, no /dev/sep-bio). Checked: the behaviour is selected by a documented DT property (apple,no-biometric-sensor in apple,sep.yaml), not a board gate. Macs without the property take the unchanged register_bio() path. The absent diag state is reached only from PENDING (atomic_cmpxchg), so it can't overwrite a started or failed state, and the ABI doc gains the value. The J575c node reuses the t604x SEP description with sep_mbox enabled and the sensor bus left disabled. No blocking finding.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@7robertodantas: the maintainers decided on the one-way-door question. This is the same SEP bind as on every other SEP board. The persistent keybag/xART records are normal SEP behaviour, and your row on your own J575c covers consent for that Mac. So the one-way door is no longer a blocker.

What is left: a J616s Touch ID peer row at 4c1ca5f1 (queued in our lab) and the review App re-checking this head against that decision. Then it merges. Thanks for your patience on this one.

@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 4c1ca5f after the J616s peer row

The binding describes sensor absence as a hardware property and the driver preserves the normal biometric path when it is absent from DT. Exact-head J575c trusted-key and hwrng results pass across s2idle, with no biometric device. The owner disposition resolves the first-bind persistence concern for the tested Mac. Keep the J616s Touch ID peer row before merge.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 4c1ca5f18a3f (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at 4c1ca5f that the readiness check found (PR body or comment). CI: linux train L3 = main 429e7e1 + 28 approved PRs (candidate 45c2fa4b): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit dcp-fabric/dcp-topology/dcp-display/macsmc/spi-hid-apple/mt7932/asahi/sep pass; ave failed to build only because of #3153 (unused static helper under -Werror; #3153 held out) and passes with #3153 reverted from the candidate; host tests apple-dcp and apple-scaler-recovery pass. The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit bec2de2 into aurora-silicon:main Dec 1, 2026
32 of 33 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) area:platform Area from CODEOWNERS (bot) door:one-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants