Repository navigation
soc: apple: aop: Bound the time a failed start can hold the probe - #547
Merged
Merged
Conversation
On a J616s warm boot the AOP firmware took 370 ms to come up and one AFK init request found the mailbox full for the whole 500 ms send timeout. The probe then stopped the endpoints it had started. It waited the full five seconds for each shutdown acknowledgment in turn, and the AOP never answered, so the probe held udev for 56 s. The initramfs could not switch root until it gave up, and the boot came up without the AOP. Send every shutdown request first, then collect the acknowledgments against one five second deadline. Once a request finds the mailbox full for the whole send timeout, skip the requests that remain. A full mailbox on an init request means the request was never written, so send it once more before giving up. Log which endpoint and which step failed. Until now the probe failed with ETIMEDOUT and nothing said why. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 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.
On a J616s warm boot the AOP probe held udev for 56 s. The initramfs could not switch root until it gave up, and the boot came up with no AOP (no microphones, ambient light sensor or lid input).
What happened, from the kernel log:
This change:
Worst case for a dead AOP goes from about 56 s to about 6 s.
Testing on the J616s
🤖 Generated with Claude Code