Bug 2299031 - mesa 24.1.4 breaks AV1 video playback in firefox on amdgpu
Summary: mesa 24.1.4 breaks AV1 video playback in firefox on amdgpu
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: José Expósito
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2299025 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-20 15:10 UTC by Gurenko Alex
Modified: 2024-07-23 02:01 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gurenko Alex 2024-07-20 15:10:08 UTC
As reported here https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29400#note_2432971 there is a problem with AV1 playback in firefox that causes crashes and GPU reset on latest mesa. Seems like there is a patch provided that is available in mesa 24.2.0-rc1 or will be fixed in Firefox 130 (Releasing August 5th), alternatively ffmpeg can be patched (fixed in ffmpeg 7.0.1)?

Mesa patch: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29400#note_2432971
ffmpeg patch: https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=11693

Reproducible: Always

Steps to Reproduce:
1. Open YouTube
2. Move mouse around with previe videos enabled
Actual Results:  
You can see corrupted playback in firefox, opening corrupted video also show artifacts, after few videos gpu reset initiated and various processes crash (Xwayland, plasma-shell RDD, firefox)

Expected Results:  
This is a regression since 24.1.2-8.fc40, no gpu reset or artifacts should occur

Comment 1 Eric 2024-07-21 17:44:45 UTC
It is fixed already over on RPMFusion. Download the latest build from koji or wait till next Friday to get the new -freeworld package
https://bugzilla.rpmfusion.org/show_bug.cgi?id=7007

Comment 2 José Expósito 2024-07-22 07:52:05 UTC
As mentioned by Neal here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29400#note_2496638

This update should fix it:
https://bodhi.fedoraproject.org/updates/FEDORA-2024-810afc5c2e

Comment 3 José Expósito 2024-07-22 08:33:58 UTC
*** Bug 2299025 has been marked as a duplicate of this bug. ***

Comment 4 Fabio Valentini 2024-07-22 11:51:14 UTC
> This update should fix it:
> https://bodhi.fedoraproject.org/updates/FEDORA-2024-810afc5c2e

This update doesn't fix the issue for me.
I still get garbled AV1 decode in firefox.

firefox-128.0-2.fc40.x86_64
mesa-va-drivers-freeworld-24.1.4-1.fc40.x86_64
ffmpeg-free-6.1.1-19.fc40.x86_64
libavcodec-freeworld-6.1.1-14.fc40.x86_64

The issue only goes away after manually installing the builds from
https://koji.rpmfusion.org/koji/buildinfo?buildID=29235

Which has revert-6746d4df-to-fix-av1-slice_data_offset.patch

So something is definitely still broken with mesa 24.1.4.

Comment 5 Gilbert Fernandes 2024-07-22 11:52:59 UTC
I have that issue and can test if needed.
I opened a bugzilla report with messages from the kernel here : https://bugzilla.redhat.com/show_bug.cgi?id=2299241
But the real issue is in Mesa.

Comment 6 Gilbert Fernandes 2024-07-22 11:56:13 UTC
What should I do if I'm not using Fusion but the standard Fedora 40 repos ?

Versions I have are :

mesa-va-drivers-24.1.4-2.fc40.x86_64
firefox-128.0-2.fc40.x86_64
libavcodec-free-6.1.1-19.fc40.x86_64

Comment 7 leigh scott 2024-07-22 12:10:09 UTC
This commit should be applied to fedora mesa https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30255

Comment 8 José Expósito 2024-07-22 13:41:51 UTC
> > This update should fix it:
> > https://bodhi.fedoraproject.org/updates/FEDORA-2024-810afc5c2e
> 
> This update doesn't fix the issue for me.
> I still get garbled AV1 decode in firefox.

Oh, I miss-read the MR discussion. I'm generating a new build including the fix.

Comment 9 Fedora Update System 2024-07-22 14:43:21 UTC
FEDORA-2024-face82e699 (mesa-24.1.4-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-face82e699

Comment 10 Fedora Update System 2024-07-23 02:01:21 UTC
FEDORA-2024-face82e699 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-face82e699`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-face82e699

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.


Note You need to log in before you can comment on or make changes to this bug.