Skip to content

media: apple: avd: Use the v5 HEVC header on T8132 - #1487

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
EdupugantiAkhil:avd-t8132-hevc-v5-header
Nov 11, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
EdupugantiAkhil:avd-t8132-hevc-v5-header

Conversation

@EdupugantiAkhil

Copy link
Copy Markdown
Contributor

T8132 (M4) runs the v5 AVD firmware (apple/avd-fw-v5-t1.bin) like T6040/T6041 and T8140, but its variant lacked AVD_QUIRK_HEVC_V5_HEADER, so every HEVC job timed out. The T6040 comment in avd-drv.c already describes this stall on the same decoder. This is a one-line fix.

Question for reviewers: T8140 also sets AVD_QUIRK_V5_QUEUE_PACING. Should T8132 get it too? I have not tested it.

Testing (MacBook Air M4, J713):

  • FFmpeg VA-API HEVC, byte-exact against software: 1080p I/P, x265 with B-frames, 4K, Main 10.
  • Chrome WebCodecs and <video> HEVC on the hardware decoder.
  • H.264/VP9/AV1 unchanged (byte-exact).
  • The AVD driver source I tested with is identical to the current integration/aurora (drivers/media/platform/apple/avd/ is unchanged).

Refs #1386. The decoder enablement for J713 and the other M4 boards is a separate draft PR.

AI disclosure: developed with AI assistance (Claude). Reviewed and hardware-tested by me. The commit carries Assisted-by: LLM.

🤖 Generated with Claude Code

T8132 (M4) runs the v5 decoder firmware (apple/avd-fw-v5-t1.bin), like
T6040/T6041 and T8140, but its variant did not set
AVD_QUIRK_HEVC_V5_HEADER. Its HEVC jobs were sent the pre-v5 header and
every HEVC decode timed out; the T6040 comment above already describes
this stall for the same decoder.

Set the quirk for T8132.

Tested on MacBook Air M4 (J713), against the aurora kernel this was
developed on: FFmpeg VA-API HEVC decode byte-exact against software for
1080p I/P, x265 with B-frames, 4K and Main 10; Chrome WebCodecs and
<video> HEVC on hardware; H.264/VP9/AV1 unchanged (byte-exact).

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

No blocking source findings in the reviewed net change. The one-line T8132 quirk selects the existing v5 HEVC header for the already-declared v5-t1 firmware and leaves other variants untouched. Owner J713 HEVC1080p/B-frame/4K/Main10 and bit-exact H264/VP9/AV1 reports support it. Do NOT add the separate untested V5_QUEUE_PACING quirk by analogy to T8140. Pending contributor host CI is now approved; it must produce a real current result before merge.

Hosted contributor workflow approvals were unblocked; source approval does not waive any pending CI/native build or dependency gate. Hardware reports are attributed to their authors, not new tests by this thread. No images/default-loader/hardware changes were performed.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

Source approval stands; the current red host result is the already-recorded dependency-DNS failure before any tests. I did not repeat the retry while that outage remained unverified.

There is now concrete recovery evidence from dependent #1488: successful host job130699992623 used the byte-identical host-tests.yml (blobfd665f948d9915e60f80a55a1161dcc26247eb0d), the same ubuntu24.04 runner image20261101.360.1, and successfully fetched Azure Ubuntu package indices plus device-tree-compiler after the earlier failure. This changes the external setup evidence, without requiring a speculative source or mirror edit.

Requested one targeted recovery retry of #1487 host job130636053012 on that evidence. No code, other successful jobs or test gates were changed; no repeated loop is authorized if it fails again. #1488’s host/DT checks pass and source approval is posted, but its merge stays behind this prerequisite’s actual result. The untested V5_QUEUE_PACING quirk remains excluded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants