Skip to content

soc: apple: sep: harden attach-only endpoints (sse, hibe, skdl) and update specs - #3275

Open
RyanTheTide wants to merge 10 commits into
mainfrom
feat/sep-attach-endpoints
Open

RyanTheTide wants to merge 10 commits into
mainfrom
feat/sep-attach-endpoints

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Harden the three attach-only Apple SEP endpoints (sse 0x0c, hibe 0x14, skdl 0x17) in apple_sep and aurora-sep without changing their send-nothing runtime policy, and update docs/sep-endpoints/ with observed boot/sleep/shutdown contracts, the hibe hibernation plan, and current coverage gaps across all active SEP endpoints.

Tested: Exact PR head acfada95782e:

  • ARM64 QEMU KUnit (sep.kunitconfig, LLVM=1): 321/321 PASS (apple_sep_sse 6/6, apple_sep_hibe 4/4, apple_sep_skdl 5/5, apple_sep_pnon 7/7, apple_sep_stac 8/8).
  • SEP Python host tests (tools/aurora-sep/tests, 19 modules): 130/130 PASS (python3 -O: 28/28 PASS on status/diag/store/identity suites).
  • C host/mutation tests (tools/asahi/run-host-tests.py --only sep): 23/23 PASS; include/uapi/linux/apple-sep.h ABI static-assert check PASS.
  • scripts/checkpatch.pl --strict --git aurora/main..HEAD: 0 errors, 0 warnings, 0 checks across all 3 commits.
  • Live hardware row on MacBook Pro M4 Pro (J616s, T6040/J616s) at exact PR head acfada95782e (7.3.0-aurora-sepatt2+, fleet89-based SEP trial build): clean boot (Enforcing, 0 failed units, 0 AVC), 12 endpoints ready (sse=idle, sse_events=0, hibe=idle, skdl=idle, pnon=read, stac=online, unhandled_messages=0, xarm_failures=0, log-errors=0, hwrng 32B live), updated aurora-sep status PASS (28 pass, 0 fail, reporting PASS sse-events 0), 2/2 s2idle (rtcwake -d rtc1 -m freeze -s 10) cycles PASS (sleeps=2, log-errors=0, sse_events=0), restored and verified on 7.3.0-aurora-fleet89.
  • Live regression hardware row on M2 Mac mini (J473, T8112/J473, no built-in Touch ID sensor) at exact PR head acfada95782e (7.3.0-aurora-sepatt2+): clean boot (Enforcing, 0 failed units, 0 AVC), 12 endpoints ready (sse=idle, sse_events=0, hibe=idle, skdl=idle, pnon=read, stac=online, unhandled_messages=0, xarm_failures=0, hwrng 32B live), 2/2 s2idle (rtcwake -d rtc1 -m freeze -s 10) cycles PASS (sleeps=2, sse_events=0, unhandled_messages=0, avc=0), restored and verified on 7.3.0-aurora-fleet89.
  • Live read-only SEP diag/* and kernel journal audit across 7 Macs (J616s M4 Pro, J713 M4 Air, J615 M3 Air, J413 M2 Air, J473 M2 Mac mini, J316s M1 Pro, J700 A18 Pro): 0 errors, timeouts, or unhandled messages from attach-only sse/hibe/skdl.

Risk: two-way · all Macs with Apple SEP (apple_sep). sse, hibe, and skdl continue to send zero messages to the SEP; changes are confined to bring-up diagnostics finalization before PHASE_READY, late-discovery offer refresh, hibe::Prepared volatile drop wiping, unused clean-room skdl framing/KUnit tests, aurora-sep status reporting, and documentation.

Not yet:

Details

Code changes (27e14fb8d6ac3d, acfada95782e)

  • drivers/soc/apple/sep.rs:
    • Extract attach_idle_endpoints() and add finalize_failed_bringup_endpoints() so both normal bring-up and early error exits in tick_attach() (zero advertised endpoints, or xarm OOL registration failure) finalize diag/{sse,hibe,skdl,stac,pnon} before publishing bringup_ended and PHASE_READY, preventing sysfs attributes from sticking or transiently reading "pending".
    • Refresh sse/hibe/skdl offer states in on_discovery() if late discovery arrives after PHASE_READY, after releasing the endpoints mutex.
    • Correct the skdl comment to reflect that macOS sends boot version/receipt messages while Linux intentionally sends nothing.
  • drivers/soc/apple/hibe.rs:
    • Add Prepared::wipe() and impl Drop for Prepared using volatile writes (image::wipe + write_volatile) so wrapped key, boot word, and resume authorization bytes are scrubbed on drop, with KUnit coverage (prepared_material_is_wiped).
  • drivers/soc/apple/skdl.rs:
    • Keep skdl strictly attach-only (sends nothing from Linux).
    • Add clean-room #[allow(dead_code)] generic-transfer (tag = 0xfc) boot framing matching observed J473 macOS 27.2 boot words (op 0x01 protocol version, op 0x06 receipt submission) and fail-closed reply classification/validation, with 3 new KUnit tests.
  • drivers/soc/apple/sse.rs:
    • Name TAG_PROBE (0x03) and TAG_CONTINUE (0x04) while keeping both explicitly classified as Arrival::Other and unanswered.
  • Documentation/ABI/testing/sysfs-driver-apple-sep & tools/aurora-sep/:
    • Correct the skdl ABI and aurora-sep descriptions.
    • Surface diag/sse_events in aurora-sep status (PASS on 0, INFO on >0) with unit test coverage in test_aurora_sep_status.py.

Documentation changes (76a26aef8fb989, acfada95782e)

  • docs/sep-endpoints/{README,sse,hibe,skdl,pnon,stac}.md:
    • Record observed boot, sleep/wake, and shutdown contracts for sse, hibe, and skdl.
    • Document the 4-stage full-support plan for hibe and explicit out-of-scope verdicts for sse and skdl.
    • Update README.md, pnon.md, and stac.md with current main coverage and remaining capability gaps across active endpoints.

Keep the three endpoints without Linux consumers (sse 0x0c, hibe 0x14,
skdl 0x17) strictly attach-only while closing edge cases in diagnostics,
secret scrubbing, framing tests, and status reporting:

- Finalize diag/{sse,hibe,skdl,stac,pnon} on early bring-up failure exits
  in tick_attach() so sysfs attributes do not stay stuck in "pending",
  and refresh attach-only offer states if discovery arrives after
  PHASE_READY (without holding the endpoints mutex).
- Wipe hibe::Prepared wrapped key, boot word and resume authorization
  with volatile writes on Drop, with a KUnit test.
- Add clean-room generic-transfer framing and fail-closed reply checks to
  skdl.rs matching our J473 macOS 27.2 boot captures (op 0x01 version
  negotiation, op 0x06 receipt submission) with KUnit tests, while
  continuing to send nothing from Linux.
- Name sse TAG_PROBE (0x03) and TAG_CONTINUE (0x04) so unsolicited probes
  and continuations remain explicitly classified as Other and unanswered.
- Correct ABI and aurora-sep descriptions so skdl is not described as
  silent on macOS boot, and report diag/sse_events in aurora-sep status.

Signed-off-by: Ryan Murray <[email protected]>
…and coverage gaps

Bring docs/sep-endpoints/ in line with the current apple_sep driver and
observed boot/sleep/shutdown traces:

- Document boot, sleep/wake and shutdown expectations for sse (0x0c),
  hibe (0x14) and skdl (0x17), confirming attach-only causes zero SEP
  errors, timeouts or wake regressions across M1 Pro through M4 Pro and
  A18 Pro.
- Add a concise full-support plan for hibe (Linux hibernation with a
  SEP-wrapped key and platform prerequisites) and record that sse and
  skdl are out of scope without Apple Pay / FairPlay consumers.
- Update README.md, pnon.md and stac.md with current Linux coverage and
  remaining gaps on all active endpoints.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 26, 2026 16:44
…and tighten docs

Finalize diag/{sse,hibe,skdl,stac,pnon} before publishing bringup_ended
and PHASE_READY on both normal and early-failure bring-up paths so readers
observing completion cannot transiently see "pending".

Also keep docs/sep-endpoints/{README,pnon,stac}.md strictly scoped to
capabilities and operations established on main (removing unmerged raw
opcode numbers and noting that earlier draft PR #1810 was closed).

Signed-off-by: Ryan Murray <[email protected]>
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-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 7b72c8e3: not ready yet

Check Detail
CI at head no failing: apple-build, host-tests, KUnit ane-boot, rust-build, KUnit ane-pm, KUnit dcp-fabric
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 7b72c8e3, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · all Macs with Apple SEP (applesep). sse, hibe, and skdl continue to send zero messages to the SEP; changes are confined to bring-up diagnostics finalization before PHASEREADY, late-discovery offer refresh, hibe::Prepared volatile drop wiping, unused clean-room skdl framing/KUnit tests, aurora-sep status reporting, and documentation.

Areas: 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
@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 27, 2026
Resolve the on_discovery() conflict with the HDCP client (#3256):
keep the PR's late-discovery refresh of the attach-only endpoints
and main's hdcp_discovered() call.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Forward-merged main (fcb12427) into this branch: new head 8158357f (merge commit, no rebase, no force push).

Review items: there are no review comments or requested changes on this PR yet; nothing to answer. It still needs one approving review from Core or Omarchy Mac.

The red CI at acfada95: every listed job (apple-build, host-tests, source, pr-text, KUnit, rust-build) ended cancelled, with no failed steps, during the overnight CI capacity hold. None of them was a real failure of this PR or of main. The push starts them again.

Conflict: one conflict, in drivers/soc/apple/sep.rs on_discovery(), against the HDCP client (#3256). I kept this PR's version (the endpoints-lock scope plus refreshing sse/hibe/skdl on late discovery) and added main's self.hdcp_discovered(&f) call. HDCP is on-demand and publishes no boot diag state, so attach_idle_endpoints() and finalize_failed_bringup_endpoints() don't need an hdcp entry. The PR's own commits are unchanged.

Overlap with #3296 (xars): the two PRs conflict with each other in sep.rs (tick_exchange() attach calls, on_discovery()) and tools/aurora-sep/aurora-sep (the status block). Neither PR needs the other. Whichever lands second needs one more forward merge:

  • add self.xars_attach() to attach_idle_endpoints(). That keeps it ahead of finish_bringup() and also covers the early-failure paths, so diag/xars never stays pending.
  • keep xars_discovered() inside this PR's scoped on_discovery() block.
  • keep both status blocks.

Tested at 8158357f (buildbox, LLVM=1, clang 22.1.6, rustc 1.97.1):

  • arm64 QEMU KUnit sep.kunitconfig apple_sep*: 340/340 PASS (sse, hibe, skdl and hdcp suites all pass)
  • sep-source.yml Python steps: 22/22 commands rc=0
  • test_aurora_sep_status.py: 15/15 PASS, and 15/15 with -O
  • run-host-tests.py --only sep: 23/23 PASS
  • checkpatch --strict on the three PR commits: 0 errors, 0 warnings, 0 checks

Hardware row: the PR's code is byte-identical to acfada95, the head of the J616s and J473 rows in the body. The merge only adds main's code. No new row is owed for this PR's changes. The merged head itself has not been booted on hardware.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 27, 2026
Picks up the revert of #3302 (fca33ed), whose host-test breakage came in with the previous main merge.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged main again at 0398001 (main fca33ed). The previous main merge brought #3302, whose host-test breakage (apple-dcp, dcpext26-startup, hardware-defaults, backlight-coldboot: undeclared dcp_hdcp_match_service in the harnesses) main has since reverted in #3374. This PR's code is unchanged.

Tested: run-host-tests.py --only dcp 65/65, --only sep 23/23 at 0398001.
Risk: none beyond the previous head; the KUnit jobs failing with apt 403 from packages.microsoft.com are runner infra.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 27, 2026

@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: Changes requested at 0398001a76c2.

Attach-only diagnostics are refreshed before finish_bringup() publishes READY. The discovery handler only refreshes an endpoint after it observes READY. An advertisement delivered after its endpoint was checked but before that phase transition can therefore leave the endpoint reported absent indefinitely. Synchronize the final diagnostic snapshot with discovery, or run a recheck after publishing READY that closes that window. Add a test that delivers discovery specifically between those two steps and verifies that no outbound messages are introduced.

on_discovery() refreshes the sse, hibe and skdl diagnostics only once it
sees PHASE_READY, and bring-up checks them just before finish_bringup()
stores it. An advertisement for one of them that lands between the two
left its diagnostic reading "absent" for the rest of the boot.

Check them once more after finish_bringup(), on the normal and both
early-failure paths: an advertisement before the READY store is in the
endpoint table by then, one after it takes the late-discovery refresh.
The helpers only read state and send nothing to the SEP.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed 27e04a2 on top of 0398001 for the App finding. `tick_exchange()` now calls `attach_idle_endpoints()` a second time, right after `finish_bringup()` stores PHASE_READY; the two early-failure `finish_bringup()` paths in `tick_attach()` do the same. An sse/hibe/skdl advertisement that arrives before the READY store is in the endpoint table by then. One that arrives after it goes through the existing on_discovery late refresh. The first call before READY stays, so readers still never see "pending". The helpers only read state and send nothing to the SEP.
Tests at 27e04a2: `kunit.py run --kunitconfig=drivers/soc/apple/sep.kunitconfig 'apple_sep*'` (arm64, LLVM=1) ran 340/340 passed, and `run-host-tests.py --only sep` passed 23/23. I did not add the race KUnit case from the review: no existing KUnit fixture builds a `SepData` or drives `tick_*`/`on_discovery`, and writing one is more than this fix should carry.
Still needed: one J616s boot at 27e04a2 with `aurora-sep status` PASS and sse/hibe/skdl=idle, then App re-review, then merge. This should land before #3296, which then needs a forward merge.

@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: FIX, then re-review at 27e04a271a17

Blockers:

  1. Missing regression test requested in the 0398001a review: Commit 27e04a271a17 only modifies drivers/soc/apple/sep.rs (+8/-0) and does not add a test covering the discovery-vs-PHASE_READY race window (delivering an attach-only endpoint discovery between the pre-READY attach_idle_endpoints() check and finish_bringup(), confirming the endpoint does not stay reported "absent" and verifying that zero outbound SEP messages are introduced). Add that test so the recheck cannot regress.
  2. Queued CI: 26 CI checks at 27e04a271a17 are still queued; wait for green CI on the updated head.

Checked:

  • Commit 27e04a271a17 (drivers/soc/apple/sep.rs, +8/-0, MERGEABLE on main):
    • Adds this.attach_idle_endpoints() right after this.finish_bringup() on both early-failure paths (L3187, L3211) and the normal bring-up path (L3269).
    • Verified synchronization soundness: both finish_bringup() (L3306–3308) and on_discovery() (L3488–3504) hold self.endpoints.lock() around self.phase.store(PHASE_READY, Relaxed) and table.slot()/*_discovered()/self.phase.load(Relaxed) == PHASE_READY, respectively, totally ordering the two paths so an advertisement before PHASE_READY is seen by the post-finish_bringup() recheck and an advertisement after PHASE_READY takes the late_ep refresh.
    • Verified sse_attach(), hibe_attach(), and skdl_attach() only read state and send no outbound SEP messages.
Evidence
  • drivers/soc/apple/sep.rs: confirmed finish_bringup() acquires self.endpoints.lock() before storing PHASE_READY and on_discovery() reads self.phase under self.endpoints.lock() after updating table and per-endpoint discovery flags.
  • git show --stat 27e04a271a17 modifies only drivers/soc/apple/sep.rs (+8/-0), with no test file updated for the race window.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 29, 2026
The previous commit reports sse, hibe and skdl again after
finish_bringup() stores PHASE_READY, so that an advertisement landing
between the pre-READY report and the store does not leave its diagnostic
"absent". Nothing tested that ordering.

Move the end-of-bring-up sequence into ready::publish() behind a small
Bringup trait (attach_idle_endpoints() and finish_bringup()), and the
on_discovery() late-refresh rule into ready::late_refresh(). The three
tick paths and on_discovery() call them, with the same behaviour. That
lets KUnit drive the production sequence with a fixture that delivers a
discovery right after the pre-READY report: each attach-only endpoint
ends "idle", the last report runs after READY, one discovered after READY
takes the late refresh, and other endpoints never refresh. The trait gives
publish() no way to send anything to the SEP.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed d213236, which adds the regression test the App asked for. The end of the bring-up now goes through ready::publish() behind a small Bringup trait (attach_idle_endpoints(), finish_bringup()): report, then the summary, then the PHASE_READY store, then report again. The on_discovery() refresh rule is now ready::late_refresh(). The three tick paths and on_discovery() call these and behave as before. A new KUnit suite apple_sep_ready drives publish() with a fixture that delivers an sse, hibe or skdl discovery right after the pre-READY report. Each case checks that the endpoint ends "idle", not "absent", and that the last report runs after READY. One discovered after READY takes the late refresh, and other endpoints never refresh. The trait gives publish() no way to send anything to the SEP.
Tests: sep KUnit (arm64 LLVM QEMU) 344/344 passed, including the 4 new cases. run-host-tests.py --only sep 23/23.
Still needed: green CI, App re-review, and the J616s boot row (aurora-sep status PASS, sse/hibe/skdl=idle) at d213236.

@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: HOLD at d213236f — the ready::publish() / ready::late_refresh() refactor and apple_sep_ready KUnit regression suite cleanly resolve the 27e04a27 finding; awaiting queued CI, the exact-head J616s boot row, and maintainer sign-off before merge.

Blockers:

  1. Complete the queued CI checks at d213236f.
  2. Post the exact-head J616s boot receipt at d213236f (aurora-sep status PASS with sse/hibe/skdl=idle).

Checked:

  • Audited the 27e04a27..d213236f delta across drivers/soc/apple/ready.rs (+170/-0) and drivers/soc/apple/sep.rs.
  • ready::publish() preserves the exact runtime ordering across all three bring-up paths (normal tick with diag::log_summary(&this.dev) in before_ready, plus both early-failure paths): report attach-only endpoints -> before_ready() -> finish_bringup() (storing PHASE_READY under self.endpoints.lock()) -> re-report attach-only endpoints, with Bringup exposing no SEP TX capability.
  • ready::late_refresh() preserves the on_discovery() late-refresh gating (EP_SSE | EP_HIBE | EP_SKDL only when PHASE_READY was observed under self.endpoints.lock()).
  • apple_sep_ready KUnit suite covers all 4 cases: discovery injected between pre-READY report and finish_bringup(), discovery during before_ready, discovery after READY taking late refresh, and non-attach-only endpoints (EP_STAC, EP_SKS) never refreshing (344/344 SEP KUnit and 23/23 host tests passing).
  • DCO Signed-off-by: present on d213236f; no Apple material or policy issues.
Evidence
  • 27e04a27..d213236f: drivers/soc/apple/ready.rs (+170/-0), drivers/soc/apple/sep.rs (+24/-37).
  • CI at review time: 25 queued, 7 skipped (0 failures; readiness cancelled on push).

#3237 made finish_bringup() take the key-store outcome and end the
keystore/bringup diagnostics after the PHASE_READY store, so trusted-key
callbacks see -EAGAIN until bring-up has finished on every exit. This
branch moved finish_bringup() behind ready::Bringup so ready::publish()
can recheck the attach-only endpoints after the store.

Keep both: Bringup::finish_bringup() and ready::publish() carry
keystore_open/keystore_only through to #3237's finish_bringup(), the
early-failure exits pass false/false as main does, and the summary line
follows publish() because it reads the key-store state set there. A new
apple_sep_ready case checks the outcome reaches finish_bringup().

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Forward-merged main (with #3237) into this branch as ea38341, no force push. The conflict was in the SEP bring-up exits in sep.rs: #3237 made finish_bringup(keystore_open, keystore_only) end the keystore/bringup diagnostics after the PHASE_READY store (the trusted-key -EAGAIN readiness), and this branch had moved finish_bringup() behind ready::Bringup.
Resolution keeps both. Bringup::finish_bringup() and ready::publish() now pass keystore_open/keystore_only through to #3237's body. The two early-failure exits pass false, false as main does, and the normal exit passes the bring-up result. The attach-only recheck after READY is unchanged. diag::log_summary() now runs after publish(), as on main, because it reads the key-store state that finish_bringup() sets. A new apple_sep_ready case checks that the outcome reaches finish_bringup().
Tests at ea38341: sep KUnit (arm64, LLVM=1, QEMU) 355/355 passed (apple_sep_ready 5/5, apple_sep_trusted 7/7, apple_sep_refkey_trusted 2/2). run-host-tests.py --only sep 23/23. test_trusted_readiness.py + test_refkey_seal_admission.py 8/8 with plain and -O Python.
Still needed: CI at the new head, the J616s boot row (aurora-sep status PASS, sse/hibe/skdl idle), App re-review.

@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: HOLD at ea383417 — the main forward-merge conflict resolution with #3237 is clean and code-ready; awaiting hosted CI completion and the exact-head J616s hardware boot row.

Blockers:

  1. Wait for hosted CI checks at ea383417 (apple-build, kunit, host-tests, pr-text, readiness) to complete green.
  2. Post the exact-head ea383417 J616s boot row verifying aurora-sep status PASS with sse/hibe/skdl idle and no regressions.

Checked:

  • Audited the main merge (ea383417, DCO Signed-off-by: present, MERGEABLE) resolving the #3237 conflict in drivers/soc/apple/sep.rs and drivers/soc/apple/ready.rs:
    • ready::Bringup::finish_bringup(&self, keystore_open: bool, keystore_only: bool) preserves #3237's exact lock-scoped ordering (self.endpoints.lock(), PHASE_READY Release, diag::keystore_open() / diag::keystore_ended() / diag::bringup_ended(), self.trusted_ready.notify_all()).
    • Both early-failure exits (no endpoints advertised and xarm OOL buffer registration failure) pass (false, false) through ready::publish() after finalize_failed_bringup_endpoints(), matching main while still finalizing per-endpoint diagnostics.
    • The normal exit passes (keystore_open, keystore_only) to ready::publish(), runs diag::log_summary(&this.dev) afterward (matching main so the summary reads the key-store state written in finish_bringup()), and retains the pre-/post-PHASE_READY attach-only endpoint recheck and on_discovery() late refresh with zero SEP TX.
    • Added the 5th apple_sep_ready KUnit test the_key_store_outcome_reaches_finish_bringup() covering all four (keystore_open, keystore_only) combinations.
Evidence
  • drivers/soc/apple/ready.rs: Bringup::finish_bringup(bool, bool), publish() forwarding (keystore_open, keystore_only), and 5/5 apple_sep_ready KUnit cases.
  • drivers/soc/apple/sep.rs: L3191–3195, L3213–3217, L3259–3270, L3742–3767 verified against main #3237 semantics.
  • Reported local verification at ea383417: SEP KUnit 355/355 (apple_sep_ready 5/5, apple_sep_trusted 7/7, apple_sep_refkey_trusted 2/2), run-host-tests.py --only sep 23/23, test_trusted_readiness.py + test_refkey_seal_admission.py 8/8 (plain and -O).

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) ci-failing A check failed at the PR head (bot) labels Nov 29, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

I merged current main into this branch (7b72c8e3, normal push, no rebase, your commits unchanged). The last CI failures came from main itself on 11-29: the apple-scaler-recovery and g17-compute-owed-stamp fixtures, plus the apple-dcp harness break fixed in #3672. Re-running a job would reuse the old merge commit, so a fresh merge was the only way to clear them. Both merges were conflict-free. Host tests pass on the merged tree. The PR's own code is unchanged from ea383417, so the existing hardware rows still cover it. Next: CI at this head and the review app's verdict.

@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: HOLD at 7b72c8e3.

Checked: Compared the PR patch before and after the forward merge. The file set and added and removed lines match the reviewed revision. Keep hosted checks and the J616s SEP boot row showing the three attach-only endpoints idle.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 30, 2026

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

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: Compared the PR patch before and after the forward merge. The file set and added and removed lines match the reviewed revision. Keep hosted checks and the J616s SEP boot row showing the three attach-only endpoints idle.

Follow-ups (not blocking): hosted checks; J616s SEP boot row with attach-only endpoints idle

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (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.

1 participant