Skip to content

payload: nvme.handoff=off hands every payload a post-M4 ANS powered off - #218

Closed
RyanTheTide wants to merge 1 commit into
fix/payload-post-m4-ans-livefrom
fix/payload-post-m4-ans-off
Closed

RyanTheTide wants to merge 1 commit into
fix/payload-post-m4-ans-livefrom
fix/payload-post-m4-ans-off

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #213.

A post-M4 ANS can now be started from off by every stage that runs after aura: aura (nvme.sart=), U-Boot (aurora-silicon/u-boot#48) and Linux (aurora-silicon/linux#1808), each from the SART entries in apple,sart-entries. Until the U-Boot and kernel on a Mac can do that, Stage 2 still hands ANS on running to U-Boot (#213) and to Linux (boot=).

This adds one configuration variable for the switch:

nvme.handoff=off

With it, no payload gets a post-M4 ANS running:

ANS when Stage 2 reaches the payload Default nvme.handoff=off
passed off by an earlier stage (nvme.sart=) started and handed on running (#213) stays off, entries passed on
used by this stage (boot=, chainload) kept running for Linux (boot=) powered off, entries passed on
passed on running by an older Stage 1 (nvme.adopt=) handed on as found taken over and powered off, entries passed on

kboot then writes apple,sart-entries as for any off handoff ("FDT: ANS will be off; N SART entries passed on"), and /chosen/aurora,nvme-handoff = "off", so U-Boot also hands ANS to the OS powered off (aurora-silicon/u-boot#48). M1-M3 and T8152 don't change.

Tested

  • tests/python/test_m3_defaults_optout.py: 156 passed, 8 skipped. Three new cases cover entries passed off staying off, an older Stage 1's live session being taken over and powered off, and pre-M4 being left alone.
  • Full tests/python: 669 passed. The failures are all in modules this doesn't touch: serial and construct aren't installed on the build host, and the fatfs license file is missing from a git archive tree.
  • Not yet run on hardware. Next: a J616s chain with u-boot#48 and linux#1808.

🤖 Generated with Claude Code

A post-M4 ANS can now be started from off by every stage that runs
after aura: aura itself (nvme.sart=), U-Boot and Linux, all from the
SART entries in apple,sart-entries. Until the U-Boot and kernel a Mac
runs can do that, Stage 2 still hands ANS on running to U-Boot and to
Linux (boot=).

With nvme.handoff=off in the configuration, no payload gets ANS
running: an ANS an earlier stage passed off stays off, this stage
powers off the one it used, and a session an older Stage 1 passed on
running (nvme.adopt=) is taken over and powered off. kboot then passes
the SART entries on as for any off handoff. Without the variable
nothing changes. M1-M3 and T8152 don't change.

Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant