Repository navigation
media: apple: avd: check the AV1 tile entries before using them (carries the M4 Max fix with host-test fixtures) - #1100
Merged
RyanTheTide merged 2 commits intoNov 7, 2026
Conversation
The tile group control is user data. A request with fewer entries than the frame has tiles made avd-av1 read past the array, and an entry past the coded data sent the engine to wild addresses: DART faults, a frame timeout, then recovery. Chromium's VA path hit this with 8 tiles and 1 entry on an M4 Max. Refuse such a request. Signed-off-by: AxxzyWasTaken <[email protected]>
…ix the host fixtures Follow-up to "check the AV1 tile entries before using them": - Read the OUTPUT payload size only when the frame has tiles to check, so the check never looks at the source buffer for a frame without any. - The host tests extract the production preamble, which now calls avd_av1_check_tiles(), vb2_get_plane_payload() and reads v4l2_ctrl.elems. Extract the helper in avd-av1-tail-tests, and give both AV1 fixtures the payload accessor, the elems field (one entry for the single test tile) and a no-op ratelimited log. run-host-tests --only avd: 12/12 pass (CI failed avd-av1-tail-tests and avd-codec-tail-tests on the tile check alone). Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Brings aurora-wip up to fleet25: DT descriptions (#1029, #1030, #1112), the J715 board (#1129), Stockholm NFC (#1042, #1136), the AV1 tile check (#1100), the M4 Max ANE profile and AVD quirk (#1088, #1091), boot-log fixes (#1103, #1104) and the Neo ANE memory floor (#1137). Conflicts: macaudio.c and apple,macaudio.yaml, where aurora-wip's J813 and J873 entries and integration's J715 entries were added at the same spot. Keep all of them. 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.
Carries #1090 (AxxzyWasTaken, M4 Max, his commit 00a90e1 unchanged, authorship and Signed-off-by kept) plus one follow-up, so it can go through the merge train:
avd_av1_check_tiles(),vb2_get_plane_payload()and readsv4l2_ctrl.elems, which brokeavd-av1-tail-testsandavd-codec-tail-testson the original PR's CI.run-host-tests --only avdis 12/12 on this head.Hardware: astaff's J616C (Helium AV1 and ffmpeg, out-of-tree module form). On our fleet the Neo (AV1-capable) boots a test kernel carrying the check and decodes the AV1 sample set bit-exact against software before this merges.
🤖 Generated with Claude Code