Skip to content

soc: apple: aop: wait for the endpoint map before requesting AP power - #1147

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
bootlog2/aop-map-before-power
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
bootlog2/aop-map-before-power

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 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, 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

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]>
@RyanTheTide

Copy link
Copy Markdown
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), journalctl -b -p 3 empty, AOP services up (ALS IIO device, both ALSA cards, speakerguardd-v2 active), no boot delay visible. J616s run after 05:00.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 7, 2026 17:05
@RyanTheTide

Copy link
Copy Markdown
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
RyanTheTide merged commit 634b402 into integration/aurora Nov 7, 2026
3 checks passed
@RyanTheTide
RyanTheTide deleted the bootlog2/aop-map-before-power branch November 7, 2026 19:24
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
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