Repository navigation
arm64: dts: apple: t6041-j575c: enable the SEP, without Touch ID - #3276
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
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>
cfcbdee to
4c1ca5f
Compare
There was a problem hiding this comment.
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.
|
Updated the PR body after the review with exact-head 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. |
There was a problem hiding this comment.
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.
|
Merge-train review at |
|
@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 |
There was a problem hiding this comment.
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.
|
Merging at |
What: Enable the SEP on the Mac Studio (M4 Max, J575c), which has no Touch ID sensor. A new boolean
apple,no-biometric-sensoron the SEP node tellsapple_septhe machine has no fingerprint sensor, so it skips publishing/dev/sep-bioand does not try to bring up an absent sensor, while keeping trusted keys and/dev/hwrngworking.Tested: J575c (Mac Studio M4 Max) at exact integration head
4c1ca5f18a3f(7.3.0-1-131-ARCH, unmodified head DTB, default Arch cmdline, stockaura 1.0.0b13): SEP ready in 3121 ms (12 endpoints, key store open), trusted keys seal/unseal and/dev/hwrngpass before and afters2idle,/dev/sep-bioabsent,diag/touchid = absent,spi@429108000(spi2) andfingerprint@0staydisabled, 0 failed units (SELinux N/A, Arch), 0 new kernel warnings/errors,s2idle1/1 (rtc0).Risk: one-way door (new DT binding property and new
diag/touchidvalueabsent; 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
/arm-io/sepisiop-sep,ascwrap-v6,sepfw-booted, at thet604x.dtsiaddress (0x406600000,0x88000) and interrupts (666-669);dart-sepat0x404c80000, interrupt676,vm-base0x10000004000,vm-size0x3ff00000. Same as the J614c/J616c. Nospi2/mesa.t6041-j614c-j616c.dtsi:sep = &sep(the loader reserves the SEP firmware and passes the manifests) and&sep_mboxokay;apple_sepenables the SEP and its DART. Plusapple,no-biometric-sensor.spi@429108000(spi2) andfingerprint@0stay disabled./dev/sep-bio(aurora-sep-ready.serviceopens it at boot to ask whether a reader is present) enablest604x.dtsi's disabled sensor node andspi2.apple-mesafails 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 onspi2, and the nonce-session retries do not check for a bound sensor.spi2/mesa) for every Mac.finish_keystore_bringup()still provisions the identity keybag; with the property it skips only/dev/sep-bioand setsdiag/touchidtoabsent(ABI doc updated)./dev/sep-keyand/dev/sep-bio-rearmare 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-loadlogs "trusted keys are ready; no biometric device is present", andaurora-sep-readyis skipped byConditionPathExists=/dev/sep-bio.aurora-touchid-bootstill asks the rearm node to wait for the first password, which logs "Touch ID: waits for the first password since this boot" (info level).apple,no-biometric-sensoronly onj575c(j614c,j616chave 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 headt6041-j575c.dtbpacked into one-shotaura-trywith stockaura 1.0.0b13(1.0.0b13-g5dcf62d0), default Arch cmdline.4c1ca5f18a3f,7.3.0-1-131-ARCH)diag/touchid,keybag,xart,keystore,hwrng,sensorabsent,present,enabled,open,registered,unbounddiag/unhandled_messages,xarm_failures,xart_guard_refusals0,0,0/dev/sep-bio/dev/sep-key,/dev/sep-bio-rearmpresent/proc/device-tree/spi@429108000andfingerprint@0disabledkeyctlnew/pipe/load) &/dev/hwrngs2idles2idle(rtcwake -m freeze -s 15,rtc0)boot_id, 0 failed unitsusb 3-1.4-71andasmedia-2are on stock baseline too)--strictBefore the property (same kernel lineage, DT with SEP only), the sensor bring-up logged
apple-mesa spi1.0: error -ENODEV: sep sensor: power unavailableand 10 failed bring-up attempts.