Skip to content

media: apple: avd: don't reset the T6041 decoder in recovery - #1091

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
AxxzyWasTaken:max-avd-t6041-no-reset
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
AxxzyWasTaken:max-avd-t6041-no-reset

Conversation

@AxxzyWasTaken

Copy link
Copy Markdown
Contributor

This is a stopgap. On the J616C the machine hangs right after the recovery reset, while the decoder's DART domain is restored, so a single decoder timeout takes the whole Mac down. The cause isn't known.

This adds AVD_QUIRK_NO_RECOVERY_RESET for T6041 only. The decoder stays parked and retires, and players fall back to software. Other SoCs keep the reset.

Tested: on the J616C, as a global module parameter in the out-of-tree module, with Helium AV1 and ffmpeg. This T6041-only form is compile-tested on integration/aurora, and the path has not run in this form.

On the J616C the machine hangs right after the recovery reset, while the
decoder's DART domain is restored, so one decoder timeout takes the
whole Mac down. Until the cause is known, stay parked on T6041: the
decoder retires and players fall back to software. Other SoCs recover
fine and keep the reset.

Signed-off-by: AxxzyWasTaken <[email protected]>
RyanTheTide added a commit that referenced this pull request Nov 7, 2026
…ck-20261107

Merge train 11-08. Test kernel 7.3.0-aurora-mtrl1 (integration 43c790f + this check + #842/#1088/#1091) one-shot on the Neo: AV1 1080p 747 fps and 4K 189 fps decode bit-exact against software (fleet23 base 747/189), VP9/H.264 bit-exact, GStreamer v4l2slav1dec 1080p/4K clean, 0 tile refusals on valid streams, 0 AVD errors, 0 AVC, CTXR boot verify PASS. Build warnings = fleet22, W=1 avd 0, run-host-tests --only avd 12/12, CI green. M4 Max evidence: AxxzyWasTaken's J616C (Chromium 8-tile/1-entry case).

@RyanTheTide RyanTheTide 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.

Merge train 11-08: reviewed. It's T6041-only (variant quirk, BIT(5) is free), and avd_pm_recover() parks the decoder and returns -EIO before the reset, with DMA still parked, so a timeout retires the decoder instead of resetting it. That's the behaviour you ran as a module parameter. Built in 7.3.0-aurora-mtrl1 (W=1 avd 0, host tests 12/12); no fleet Mac takes the path. CI green. Please follow up when the hang's cause is known, so the reset can come back.

@RyanTheTide
RyanTheTide merged commit cfd8462 into aurora-silicon:integration/aurora Nov 7, 2026
1 check passed
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
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