Repository navigation
soc: apple: aop: wait for the endpoint map before requesting AP power - #1147
Merged
Merged
Conversation
The setup port requested AP power as soon as RTKit reached AP power on and warned "endpoint map incomplete before the AP power request" when the firmware's last endpoint map fragment had not arrived yet. The map normally completes first; on some boots (about 1 in 8 on the Neo) its last fragment lands a few milliseconds later, the boot still completes, and the only effect was a warning in every such boot log. Wait up to one second for the map to complete before the AP power request, so the request always follows the map as it does on other boots, and warn only if the map never completes. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Neo (J700) 11-08 02:00-02:04: four one-shot boots of test kernel 7.3.0-aurora-b2t4 (integration 1eac5fa + this + #1105): no 'endpoint map incomplete' line in any (the base rate is about 1 in 8, so this shows no harm rather than proving the race is gone), |
RyanTheTide
marked this pull request as ready for review
November 7, 2026 17:05
Contributor
Author
|
Ready for the train: no regression in 4 Neo boots (AOP services, audio, ALS up; -p 3 empty). The race itself is ~1/8 boots, so the proof that the warning is gone accumulates on fleet boots once this is in (FLEET4 counts 'endpoint map incomplete' per boot); the J616s gets the same check on its next fleet kernel. |
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Merge train 11-08 (ORCH). Neo (GPUX): refused-queue spins during the 2 s wait 2.0M -> 12, one-shot clean, Enforcing, 0 AVC. J616s (test kernel 7.3.0-aurora-mtrl3 = integration 95e30d5 + this + #1147 + #1105, one-shot, FLEET4 reg.sh vs fleet27): kerr 0, kwarn classes = base, dEQP-VK timeline_semaphore 3835 Pass = base, 0 GPU faults, gpubench and glmark within fleet27's own spread. Reviewed: a refused creator now holds nothing, and render_fits(open + 1) is the same bound as before. Host-tests CI green.
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Brings aurora-wip up to the 11-08 morning integration tip: DT descriptions for every Mac family (#1094, #1097, #1111, #1131, #1132, #1148, #1149, #1155, #1156, #1157, #1172), the J616s scaler (#1168), the panel primaries from boot data (#1105), AVD macOS command parity (#1116), AVD dma-coherent (#1169), the M2 PMU RTC alarm (#1151), G17 admission without spinning (#1146) and the AOP map wait (#1147). Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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.
The AOP setup port requested AP power as soon as RTKit reached AP power on and warned
setup port: endpoint map incomplete before the AP power requestwhen the firmware's last endpoint-map fragment had not arrived yet. The map normally completes first; on some boots (about 1 in 8 on the Neo, seen again on a test boot 11-08 01:33) the last fragment lands a few milliseconds later, the boot still completes (setup_wait(..., SetupState::ready)already waits for every endpoint), and the only effect is a kernel warning in that boot's log.This waits up to one second (on the existing setup condition variable, lock released while waiting) for the map to complete before the AP power request, so the request always follows the map as it does on the other boots, and warns only if the map never completes. Boots where the map is already complete take the same path as before with no wait.
Checks: checkpatch --strict clean, rustfmt clean.
Hardware: pending: test kernel 7.3.0-aurora-b2t4 (integration 1eac5fa + this + #1053 + #1105) one-shot boots on the Neo, then the J616s after 05:00; expect no endpoint-map warning, AOP sensors and audio endpoints up, no added boot time when the map is already complete.
🤖 Generated with Claude Code