Repository navigation
arm64: apple: preserve M5 registers across WFI for SMP - #160
Merged
Merged
Conversation
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-wipafter #159. Requires m1n1 #12 for M5 secondary startup. The existing J813 DT and config already describe all ten CPUs; boot withmaxcpus=10after starting them in m1n1.Validation: ARM64 W=1 Image build passed, with existing warnings in unchanged code; checkpatch and
git diff --checkpassed. 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.