Repository navigation
soc: apple: sep: expand enrollment capture budget to 36 - #17
Conversation
On M2 Pro (T6020 / J414s), biometric template generation covers edge, center, and tip stages that require 16 to 22 captures to reach 100% completion. The previous limit of 12 captures prematurely triggered ENROL_STATUS_TOO_MANY (reported in userspace as enroll-unknown-error) after 11 successful touches. Raise ENROL_MAX_CAPTURES from 12 to 36 and add a warning message if the budget is exhausted before completion. Reported-by: Justin Pfister <[email protected]> Signed-off-by: Justin Pfister <[email protected]>
|
Thanks @JJRPF, great find, and thank you for all the J414s testing behind it. The 13.5 key store for older firmware, the deletion persistence and the sleep fix in 11.32 all came from your reports on #69 too. Merging. Root cause, for the record: the driver started with 8 stages and a 12-capture budget. The stage count went to 16 for J414s on Sept 25, but the budget stayed at 12, so it advertised 16 stages and gave up after 12 captures, with partial-contact retries counting against them. Two follow-ups on top, going into 11.35:
If you get a chance, an enrolment on your J414s with 11.35, to confirm the bar moves on every touch, would be great. |
The previous commit reported 24 stages and asserted that the capture budget stays at least half again the stage count. Review found that the assert guards only one direction: it rejects raising the stages alone, as cdacd96 did, but not raising the budget alone, as #17 did, which is what left the stage count behind. And with 24 stages and a budget of 36, accepted captures 24 to 35 would again show no progress; 24 is one more than the most a J414s has needed so far, on one Mac. Derive the stage count from the budget instead, so every capture the budget allows can raise the stage and the two cannot drift. An enrolment that completes sooner, as on the M1, still jumps to the total, from a smaller fraction. fprintd-enroll, which aurora-touchid-setup and Omarchy use, prints each touch and draws no bar. Log an exhausted budget at warning level again, like the no-finger timeout: both usually come from how the finger is placed. Include how many captures were accepted, how far the template got and how many were retried, so a report shows whether the enclave needed more captures or the contact kept failing. Link: #17 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FwdG63dRaMrRbYrUBkSa1i Signed-off-by: Chris Kearney <[email protected]>
|
@JJRPF this is live in 11.35: https://github.com/iconidentify/aurora-linux/releases/tag/sep-7.1.12.aurora2-11.35 One change from what I said above. Review found that the static assert only guarded one direction, so it would have passed your budget-only bump too, and 24 stages would have stalled again after 23 accepted captures. So the stage count now comes from the budget: 36 stages for 36 captures, one per capture, and the two can't drift apart. If the budget does run out, dmesg now says how many captures were accepted, how far the template got and how many were retries. If you get a chance, an enrolment on your J414s with 11.35 would be great: |
Verification report on J414s (M2 Pro, firmware 26.0 / iBoot-13822.1.2, kernel 11.35)All tests pass:
@iconidentify One small fix was needed in The 36-stage budget (one stage per capture) is perfect - the progress bar advances smoothly on every touch with no silent gaps. |
Summary
On Apple Silicon M2 Pro (T6020 / J414s), biometric template generation covers edge, center, and tip stages that require 16 to 22 captures to reach 100% template completion.
In 11.32,
ENROL_MAX_CAPTURESwas left hardcoded to 12 (sep.rs:383). When enrolling on J414s, touches 1 through 11 succeed withenroll-stage-passed, and on touch 12counter >= 12triggersENROL_STATUS_TOO_MANY(sbio.rs:1585), failing the enrollment withenroll-unknown-error.Changes
ENROL_MAX_CAPTURESfrom 12 to 36 indrivers/soc/apple/sep.rs.dev_warn!indrivers/soc/apple/sbio.rsifcounter >= ENROL_MAX_CAPTURESever aborts before completion.Hardware Validation on J414s (26.0 / iBoot-13822.1.2 / 13.5 key store)
Tested live on MacBook Pro 14" (2023, J414s /
apple,t6020/ Mac14,9):enroll-completed).verify-match).Touch ID: restored 1 enrolled identity/identities; enrolment survived reboot.right-middle-finger), deleted it viafprintd-delete, and rebooted. Cold boot restored 1 identity; the deleted finger was permanently gone while the primary finger continued to match.PM: suspend entry (s2idle)->PM: suspend exit), sensor re-registered cleanly at stage 2, instant verification post-wake with zero timeouts.