Bug 2267714

Summary: update amd-gpu-firmware to fix VP9 video decode stuttering issue
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: linux-firmwareAssignee: Peter Robinson <pbrobinson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dimitris.on.linux, dwmw2, jforbes, jwboyer, kernel-maint, laura, pbrobinson, pstourac, rik.theys
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: linux-firmware-20240312-1.fc39 linux-firmware-20240312-1.fc40 linux-firmware-20240312-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-15 01:05:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2184978    

Description Kamil Páral 2024-03-04 16:00:20 UTC
Description of problem:
AMD recently fixed a firmware issue which caused VP9 video decode stuttering when using hardware acceleration many recent AMD GPUs and APUs. My current laptop [1] was also affected. Basically any YouTube video higher than 1080p60 exhibited regular several-second video freezes (audio continued fine). Higher resolutions, framerates, and speeding up the playback meant more stutters.

I tested the latest amdgpu firmware files from the commit that is supposed to fix it [2], and it indeed resolves the issues for me. The playback is now without any stutters, and also much more performant (4k60 at 2.0 playback speed is not a problem).

Please update linux-firmware to bring this fix to Fedora users with AMD hardware. Thank you.

Some more background:
https://www.phoronix.com/news/AMDGPU-Firmware-Fixes-VP9
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=977332782302476e1c863b09b840f463d0378807
https://gitlab.freedesktop.org/mesa/mesa/-/issues/8044


[1] Thinkpad P16v, containing Ryzen 7 PRO 7840HS with integrated Radeon 780M Graphics
[2] https://gitlab.com/kernel-firmware/linux-firmware/-/commit/5cd471e3de782d1d5ae9e96909a08d264d866842


Version-Release number of selected component (if applicable):
amd-gpu-firmware-20240220-1.fc39.noarch  # broken vp9 decoding

How reproducible:
always

Steps to Reproduce:
1. play https://www.youtube.com/watch?v=LXb3EKWsInQ at 1440p60 or 4k60 in Firefox on affected hardware
2. speed up the playback to increase the likelihood of stutters
3. see the video stutter regularly (but not because of hardware being slow, but because of the firmware issue)

You can also use "mpv --hwdec=vaapi $video" for a local playback, same issues.

Comment 1 Peter Robinson 2024-03-04 16:15:35 UTC
We will update this when the march release comes out upstream.

Comment 2 Fedora Update System 2024-03-12 20:26:24 UTC
FEDORA-2024-b14b34f640 (linux-firmware-20240312-1.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b14b34f640

Comment 3 Fedora Update System 2024-03-12 20:26:31 UTC
FEDORA-2024-86a6245c69 (linux-firmware-20240312-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-86a6245c69

Comment 4 Fedora Update System 2024-03-12 20:26:38 UTC
FEDORA-2024-e62bcaf172 (linux-firmware-20240312-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e62bcaf172

Comment 5 Fedora Update System 2024-03-13 01:13:58 UTC
FEDORA-2024-b14b34f640 has been pushed to the Fedora 38 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-b14b34f640`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b14b34f640

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

Comment 6 Fedora Update System 2024-03-13 02:11:55 UTC
FEDORA-2024-86a6245c69 has been pushed to the Fedora 39 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-86a6245c69`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-86a6245c69

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

Comment 7 Fedora Update System 2024-03-13 02:26:44 UTC
FEDORA-2024-e62bcaf172 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-e62bcaf172`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e62bcaf172

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

Comment 8 Kamil Páral 2024-03-13 07:43:56 UTC
(In reply to Fedora Update System from comment #4)
> FEDORA-2024-e62bcaf172 (linux-firmware-20240312-1.fc40) has been submitted
> as an update to Fedora 40.
> https://bodhi.fedoraproject.org/updates/FEDORA-2024-e62bcaf172

I tested this update on a laptop from comment 0 and YouTube videos finally play without stuttering. Thanks!

Comment 9 Fedora Update System 2024-03-15 01:05:54 UTC
FEDORA-2024-86a6245c69 (linux-firmware-20240312-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-03-23 00:35:12 UTC
FEDORA-2024-e62bcaf172 (linux-firmware-20240312-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-03-26 02:45:48 UTC
FEDORA-2024-b14b34f640 (linux-firmware-20240312-1.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.