Repository navigation
arm64: dts: apple: t6050-k114s: enable the Secure Enclave and Touch ID - #2115
chrisohearn wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…176) * Touch ID works on the K114s: trial, enrolment and PAM recorded (#49) docs/r3-touchid.md records phases 3 to 7 of 2026-11-16: the unattended trial boot, the read-only load, the backups (one off the Mac), the promoted Touch ID Stage 2, the keybag (guard level 1, no xART write), enrolment of the right index, match and no-match, the restore after a reboot, and sudo, polkit and the lock screen through Omarchy's own PAM setup. The upstream profile line is aurora-silicon/linux#2115. README and the matrix row say working; macOS Touch ID is the owner's check at the next macOS boot. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Touch ID record: keep the macOS check open and claim only what was tested Review of #176: phases 5 and 6 stay open for the macOS boot check, and phase 6 says the enrolment was restored without re-enrolling. Only the keybag creation left xART unwritten; enrolment and matching updated one shared root record. sudo and the lock screen are owner-tested, polkit is configured but untried. The undo runs as root and removes the new polkit-1 file. The read-only check expects the 12 endpoints macOS lists plus srep. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Thanks for checking the K114s ADT so carefully, and for the read-only-first test sequence. This adds The branch also needs a rebase. We can run no-regression rows on our other Macs if that helps. |
|
A follow-up to the earlier note on the board list. We are changing What the K114s still lacks at the current tip is the device tree: in Your hardware results already cover most of the row. At the new head we would ask for:
Until that change is merged, keep the |
|
A short follow-up: the change to pick the SEP profile by SoC is now #2311. With it, the One more K114s row, for thermal (PMP): the ADT |
|
The SoC-based profile choice mentioned above is now #2631 (#2311 was closed in its favour). Once it lands, the apple,k114s line in profile.rs is not needed; until then the branch conflicts only because apple,j716c was added to the same condition. Either way the K114s still needs its device tree (SEP mailbox, ps_sep, spi2 with fingerprint@0, the sep alias, pin 138 opened) before Touch ID can bind, so carrying that here in place of the profile hunk would keep the PR useful. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at b5efdaffdcdc
Blockers:
drivers/soc/apple/profile.rs:471,drivers/soc/apple/profile.rs:706-708(Merge conflict): Branch is dirty againstmain(mergeable: false) becausemainalready updatedT6050.nameandselect()forapple,j716c(50d4c943c0fd). Rebase onto currentmain.drivers/soc/apple/profile.rs:706-708(§1 No model gating): Addsapple,k114sto a per-board allowlist inselect(). Per §1, selection must use hardware/DT properties rather than a per-board list. #2631 moves SEP profile selection to SoC-level matching (apple,t6050), where DT SEP and sensor nodes control binding; drop theprofile.rsboard-list hunk once #2631 lands (or stack on #2631) and carry the K114s DT enablement (sep_mbox,ps_sep,spi2/fingerprint@0,sepalias, GPIO 138 unreserved inarch/arm64/boot/dts/apple/t6050-k114s.dts) instead, as requested in the thread.- Commit
b5efdaffdcdcand PR body (§4 No attribution): Commitb5efdaffdcdccarriesAssisted-byand toolCo-Authored-Bytrailers, and the PR body includes tool/agent attribution text. Per §4, remove all non-human attribution from the commit message (keep human author and humanSigned-off-byonly) and from the PR body. - PR body (§5 Evidence): Hardware testing was run on an out-of-tree
v272-11kernel with separate DT nodes rather than at the exact PR headb5efdaffdcdc, and lacks the regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors) and a no-regression row on another T6050 Mac. Re-run on the K114s at the updated PR head (cold boot, enroll/match/no-match, deep-sleep resume verify, regression counts) and include a no-regression row on another T6050 board.
Checked: Reviewed the 3-line diff in drivers/soc/apple/profile.rs, commit b5efdaffdcdc, PR metadata/body/comments, CI status, and mergeability against current main (arch/arm64/boot/dts/apple/t6050-k114s.dts and drivers/soc/apple/profile.rs) per pre-PR checklist §1–§6. No §2 (no new cmdline/module params or timing hacks), §3 (no hardcoded safety limits; inherits xart_guard: 1), or §6 (naming) issues found in the diff.
Evidence
- PR state:
OPEN, forkchrisohearn/linux:soc-apple-sep-admit-k114s->main,headRefOid:b5efdaffdcdc0eaf8574a23c6e86af0df4cb85fe. - Mergeability:
mergeable: false,mergeable_state: dirty(conflicts withmaincommit50d4c943c0fdindrivers/soc/apple/profile.rs:472,707-709). - CI checks at
b5efdaffdcdc: 7/7 passed (host-tests,source,rust-build,kunit,DWC3/ATC builtin-no-atc,DWC3/ATC modular-no-atc,DWC3/ATC builtin-modular-atc). - Checklist summary:
- §1 Model gating: FAIL — per-board allowlist addition in
drivers/soc/apple/profile.rs:706-708; #2631 (open) replaces per-board matching with SoC selection. - §2 Production-ready: PASS — no new parameters, sleeps, or hacks in the diff.
- §3 Safety: PASS — inherits
T6040(xart_guard: 1), no hardcoded safety values. - §4 Clean-room / attribution: FAIL — non-human trailers in commit
b5efdaffdcdcand attribution lines in the PR body. - §5 Evidence: FAIL — no hardware row at exact PR head
b5efdaffdcdc, no regression counts, and no second T6050 Mac regression row. - §6 Naming: PASS — no prohibited terms in diff, commit, or PR body.
- §1 Model gating: FAIL — per-board allowlist addition in
b5efdaf to
2f5e9eb
Compare
The K114s ADT describes the same SEP and Touch ID hardware as the J714s and K116s. Add the SEP alias for the boot loader and enable the mailbox and power domain, with the fabric parents firmware-owned. The SEP driver selects the profile by SoC and enables SEP and its DART when the mailbox is available. Describe the fingerprint sensor on SPI2 with the K114s calibration and root key filenames. Expose AP GPIO 138 for its data-ready interrupt and keep the remaining AP GPIOs reserved. Signed-off-by: Chris O'Hearn <[email protected]>
2f5e9eb to
aee6ef0
Compare
|
@chrisohearn checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
|
K114s (Mac17,13, T6050) at
The PR stays in draft until the cold-boot, enrollment and match rows are in. |
|
@DjDeveloperr thanks for the review at
Still open, and not something I can run on this Mac right now: a cold boot, a fresh enroll plus match and wrong-finger rejection, deep-sleep resumes (the K114s kernel offers |
|
@chrisohearn the K114s SEP and Touch ID device tree is now part of #3376, which moves the J714s/J716c/K116s copies into one shared |
What: Enable the Secure Enclave and Touch ID sensor in the K114s board tree. The SEP driver uses the T6050 profile through the SoC selection already in main (#2631).
Tested: The K114s DTB at
aee6ef0f9434dbuilds and passes schema validation with zero diagnostics. Hardware testing at this head is pending.Risk: One-way door, K114s only. SEP attach can provision the identity keybag, and enrollment and verification can update the xART root record shared with macOS. Reverting the board file disables the mailbox again. Shared storage changes persist.
Not yet: K114s cold-boot SEP and sensor readiness, fresh enrollment, enrolled-finger match, wrong-finger rejection, and the regression counts. Three deep sleeps with a first-try match and clean SEP, SPI and DART logs need a deep-sleep-capable K114s kernel. macOS Touch ID and unlock after Linux enrollment and the second T6050 Mac regression row are also pending.
Details
The K114s ADT describes the same SEP and sensor hardware as the J714s and K116s. The
sepalias lets the boot loader reserve SEP firmware and add its manifests. The board enables the SEP mailbox and its power domain, marks the two fabric parents firmware-owned, and leaves SEP and its DART for the driver to enable.SPI2 uses the 24 MHz reference. The fingerprint sensor runs at 8 MHz in mode 2, with NUB GPIO 21 for power and AP GPIO 138 for the data-ready interrupt. The board opens GPIO 138 in the reserved ranges and names the per-device calibration and root key files.
Evidence
make LLVM=1 ARCH=arm64 CHECK_DTBS=y apple/t6050-k114s.dtbpassed on main61c7b88aca91and the candidate with Clang 23.1.3 and dtschema 2026.9. Directdt-validateemitted no diagnostics on either DTB.An earlier K114s run exercised SEP readiness and sensor binding with a local DT and a kernel carrying the SoC selection. Its enrolled identity survived reboot. The prepared trial substitutes the exact PR-head DTB in Aura Stage 2 and keeps the running r3f kernel, which also carries the SoC selection. Earlier K114s results