Repository navigation
media: apple: avd: update the VP9 host segmentation test - #3206
Conversation
The VP9 host test still references fields removed when the segmentation map changed from per-bank storage to shared per-stream storage. The test fails to compile on current main. Check both emitted map operands across picture banks. Verify that a size change clears the spare map and leaves the in-flight map intact. Keep checking that the reset remains pending until a frame updates the map. Fixes: 7f02457 ("media: apple: avd: VP9: one segmentation map per stream, shared by the banks") Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at ea44d331266a once hosted CI is green (non-author review; GitHub records it as a comment because this account opened the PR)
Blockers: none. It changes only the host test, and nothing that gets built.
Checked:
- The fixture now models the shared map from #2195. At a stable size, both banks emit the current
seg_buf[seg_cur]address (assert_seg_mapfinds the encoded address exactly twice, once per map operand) while bank 0 is still busy. - A size change flips
seg_cur, zeroes only the spare map and leaves the in-flight map's0xa5fill intact. That covers the #2136 resize interaction. VP9_SEG_RESETstays owed through a keep-map frame and clears after the first map update. That matches the old test's semantics.assert(... & AVD_QUIRK_LSR)pins the instruction format the address encoding assumes, so a fixture change fails loudly instead of matching nothing.
Non-blocking: the "exactly 2 matches" check would also count an unrelated program word that happens to equal addr >> 8. The fixture addresses make that impossible today, but checking the two known operand offsets would be tighter.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Approved at the reviewed head. I ran the production-backed VP9 fixture with GCC and ASan/UBSan: both banks share the encoded address, resizing preserves the busy bank's old map, and the reset debt persists until an update. Hosted checks are green. A Clang GNU11 run hits the fixture's existing message-less static assertions under -Werror; this patch does not change them. No runtime source changes.
|
code-owner ping @DjDeveloperr: closeout merge at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What: Restore the VP9 host test after the switch to a shared segmentation map in #2195. The fixture now checks the actual map addresses both picture banks emit and verifies that resizing preserves the map still in use.
Tested: Standalone VP9 host test at
ea44d331266apassed with ASan and UBSan. Both regression controls failed their intended assertions. No runtime change.Risk: Two-way door. Host test only, no Macs affected.
Not yet: Hosted CI and independent review.
Details
At a stable picture size the fixture checks both map operands on each bank while the first bank is still active. A size change must select and clear the spare map without touching the in-flight map. The reset remains pending until a frame writes a new map.
Evidence
40e5e29cc915a421fb2676f895ff7dcc3f47a224and headea44d331266a02305cff2de7046779c81f75525b.python3 drivers/media/platform/apple/avd/tests/vp9-test.py <output-dir>from the kernel tree.