Skip to content

arm64: apple: preserve M5 registers across WFI for SMP - #160

Merged
Acelogic merged 1 commit into
aurora-wipfrom
codex/m5-smp
Oct 2, 2026
Merged

Acelogic merged 1 commit into
aurora-wipfrom
codex/m5-smp

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 2, 2026

Copy link
Copy Markdown
Member

M5 secondary CPUs can return from WFI with cleared registers. On J813, all ten CPUs started and then panicked in their idle tasks at PC 0. Add the measured T8142 E/P MIDRs (0x062/0x063) to the existing Apple register-preserving idle path.

Based on aurora-wip after #159. Requires m1n1 #12 for M5 secondary startup. The existing J813 DT and config already describe all ten CPUs; boot with maxcpus=10 after starting them in m1n1.

Validation: ARM64 W=1 Image build passed, with existing warnings in unchanged code; checkpatch and git diff --check passed. On J813, Linux reached BusyBox with CPUs 0-9 online. Every CPU gained 1,251 timer interrupts over five seconds, and ten concurrent pinned jobs each hashed 16 MiB of zeros to the expected SHA-256. Config hash, framebuffer and RAM-only mounts also passed. Includes the qualification procedure; hotplug, suspend and KVM remain unqualified.

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