Repository navigation
media: apple: avd: enable queued multi-VP decoding on aurora-wip - #787
Merged
Merged
Conversation
Port multi-VP selection onto the current queued transport without losing its SRAM word stores, IRQ/mailbox fixes, saved frame FIFO or tagged VP DONE. Negotiate an optional AVM2 codec pool record and rotate submissions through its VP masks. Old firmware retains the k4m selector and two picture banks. Size H.264 and HEVC banks for the advertised VPs plus ordered PP ownership, limited by the available FIFOs. Their VP work uses private slice state; firmware still starts PP in submission order. Keep VP9 probability producer barriers and AV1's single-picture path intact. Exercise negotiation, fallback, rotation/retry, production picture banks and routed single-stream programs, including reverse VP completion order. Document the inferred T6040 pool and the remaining silicon qualification. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The production picture-bank query accepts a const device. Match that signature in the host boundary so its HEVC bank lifetime checks compile with warnings treated as errors. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Tested on hardware before merge.
🤖 Generated with Claude Code |
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…tion/aurora Bring integration/aurora up to aurora-wip b359258, the source of 7.3.0-aurora-fleet14f, promoted on the M1 Pro, M2, Neo and J616s on 2026-11-01 and 11-02. The range also covers the fleet14c, fleet14d and fleet14e sources (f41ac3d, 4759557, 757fc07), each booted on hardware. It adds aurora-silicon#773, aurora-silicon#776, aurora-silicon#777, aurora-silicon#737, aurora-silicon#713, aurora-silicon#785, aurora-silicon#786, aurora-silicon#788, aurora-silicon#789 and aurora-silicon#787. No conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
Queued H.264 and HEVC decode currently uses one VP per codec, leaving available decoder engines idle. Dispatch queued pictures across firmware-advertised AVM2 codec pools and allocate private scratch banks for each in-flight picture, including the bank retained by ordered PP. Preserve tagged per-engine VP DONE, old-firmware fallback, VP9 dependency barriers and AV1's single-picture path.
Rebased the two mvp3 commits onto aurora-wip 7f7035c, which includes #785 and #786. The program-test.py conflict keeps both the #785 sparse-DPB/reference-free I cases and the multi-VP dispatch, reverse VP completion, in-order PP and HEVC bank-lifetime cases. The #785 H.264 HOLD, rejected-slice ownership and final job_finish_detach paths are retained; the H.264 production change only expands bank storage and selects the firmware-sized bank count.
Previously qualified hardware results, in decoded frames per second (one engine to multi-VP): J616s H.264 1080p 1094 to 1902, HEVC 1080p 2135 to 2590, H.264 4K 414 to 481; VP9 and AV1 unchanged. All compared outputs were bit-exact, with zero DART/AVD kernel log lines. M2 H.264 1080p 748 to 1695, H.264 4K 319 to 446, HEVC 1080p 1521 to 1935. These measurements are from the qualified mvp3 pair; the combined aurora-wip module still needs lane 4's hardware check before merging.
Tested: tools/asahi/run-host-tests.py 158/158; queue host, program, dispatch, recovery and VP9 tests; routed Unicorn queue, in-flight and multi-VP tests on v3-t0/v3-t1/v5-t0/v5-t2; Unicorn VP9; all-image firmware transport tests. The program tests retain 1600 identical complete legacy programs, 64 sparse programs changing only reference slots, 32 reference-free non-IDR I programs matching legacy IDR, and all 65536 DPB maps. Multi-VP replay checks five banks across four VPs, reverse VP DONE, PP retirement order and retained DMA ownership. An external apple-avd.ko build against 7.3.0-aurora-fleet14f passes W=1 with zero warnings and is signed with the matching kernel key; its PKCS#7 signature verifies.
Firmware companion: aurora-silicon/avd-fw#6. Keep both PRs open until lane 4 checks H.264 conformance remains 68/135 with the combined module and verifies the throughput gains.
🤖 Generated with Claude Code