Repository navigation
accel/ane: h16: start the firmware once the PMP runs - #1502
Merged
Merged
Conversation
On the J616s (T6041) Linux starts the PMP itself, about a second before the ANE probes, and its firmware takes about another second to come up. A H16 CPU released during that window is stopped part way through its startup on about one boot in six: the ASC wrapper control word reads 0 (RUN cleared), status 0x30006a, with no CPU exception, no debug halt request and no LSU/FED/L2C error latched. The startup stop detection then restarts the engine, but the first start fails. Add apple_pmp_report_wait_running(), which waits until the PMP behind a report region runs, and make H16 bring-up wait for it, outside every lock, before it first releases the CPU. The T6041 platform data names its report. A PMP that does not come up within 10 s is reported and the firmware is started anyway; the stop detection stays as the fallback. J616s, 7.3.0-aurora-fleet55 base, one-shot cold boots: the firmware stopped on 3 of 12 boots as is (12 of 121 in the fleet51..55 journal), on 0 of 22 when its release was simply delayed past the PMP start, and on 0 of 22 with this wait (the same check through the report's running status). MobileNet top-1 16/16 on every boot; three s2idle cycles resume cold in 13-15 ms as before. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 11, 2026
Merged
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 the J616s (T6041), Linux starts the PMP itself, about a second before the ANE probes, and the PMP firmware takes about another second to come up. If the H16 CPU is released during that window, it is stopped part way through its startup on about one boot in six. The ASC wrapper control word reads 0 (RUN cleared) and the status reads 0x30006a. No CPU exception, debug halt request or LSU/FED/L2C error is latched. #1412 catches the stop and restarts the engine, but the first start fails.
This change:
apple_pmp_report_wait_running(), which waits until the PMP behind a report region runs (bounded; returns -ENODEV for an unavailable report and -EPROBE_DEFER while the report is unbound);Results, J616s, 7.3.0-aurora-fleet55 base, one-shot cold boots with a dead-man:
KUnit (x86_64, KASAN + UBSAN, ANE boot and transport kunitconfigs): 227/227 pass. arm64 build: full fleet config, W=1 clean in the touched files. checkpatch --strict: 0/0/0.
🤖 Generated with Claude Code