Repository navigation
media: apple: ave: test the firmware size refusal path - #2963
Merged
Merged
Conversation
Use the same segment-size predicate when matching a build and when validating the fallback variant. Cover both valid M2 builds and near misses in KUnit. Include the two observed segment sizes in the probe diagnostic. Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
commented
Nov 23, 2026
RyanTheTide
left a comment
Contributor
Author
There was a problem hiding this comment.
Independent source review at 4b35702880a6. Re-reviewed the replacement for #2938. This diff leaves the encoder start configuration unchanged. It reuses the same TEXT/DATA predicate after the build lookup, leaves the unpinned probe-only branch intact, and tests both accepted M2 layouts and near misses. The previous comment and provenance issue is absent. No source blocker found. The earlier hardware and KUnit rows are appropriately identified as earlier evidence; check the current CI before merging.
DjDeveloperr
approved these changes
Nov 23, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at 4b35702880a6145297b498397b42a563d6f1d8d2:
- §1 No model gating: Pass. Deduplicates the existing firmware segment-size check via
ave_fw_sizes_match(), keeps the unpinned probe-only branch (!boot_qualified && !fw_text_size) intact, and introduces no chip/board/firmware gates. - §2 Production-ready: Pass. No new parameters, delays, or workarounds.
- §3 Safety: Pass. Tightens test coverage of the firmware size refusal path and adds the observed
TEXT/DATAsizes (%#zx) to the probe refusal diagnostic. - §4 Clean-room & attribution: Pass. Commit
4b35702880a6carries human author/committer (Ryan Murray <[email protected]>) and humanSigned-off-byonly, with zero AI trailers in the commit andAssisted-by:in the PR body. The provenance-flagged comment from #2938 is absent. - §5 Evidence & modular/KUnit check: Pass.
ave_fw_sizes_match()has its prototype inave.hand compiles cleanly under modular builds (CONFIG_VIDEO_APPLE_AVE=m, where pre-existingVIDEO_APPLE_AVE_CMD_KUNIT_TESTstays disabled); no new module is added and the new assertions inave-abi-test.cmatchave_t8112andave_t8112_26b123inave-drv.c. Live CI (host-tests) is green at4b35702880a6, and the earlier #2938 47/47 arm64 KUnit and J473/J413/J615 hardware rows are transparently documented for the same predicate/assertions. - §6 Naming: Pass.
Verdict: Approve.
Assisted-by: LLM (Gemini 4 Neon)
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.
Problem
The AVE probe and firmware selector each checked segment sizes. The M2 test covered fallback selection without checking that the probe rejects near misses.
Change
Reuse the size predicate in the probe, assert that it accepts both measured M2 layouts and rejects near misses, and report the observed segment sizes when it refuses a build.
Testing
Host AVE ABI, recovery, input and IPC tests pass at
4b35702880a6145297b498397b42a563d6f1d8d2. Checkpatch reported zero errors, warnings or checks.Earlier hardware and KUnit evidence
This carries the same AVE refusal predicate, test cases and probe diagnostic as the earlier revision. The diff preserves the encoder start configuration from the base and drops the duplicate size-predicate comment.
Assisted-by: LLM (Codex)