Sporadic GPU resets playing YouTube videos with hardware decode acceleration in Firefox on AMD Phoenix GPU
System information
System:
Host: mamarley-laptop Kernel: 6.6.2-060602-generic arch: x86_64 bits: 64
compiler: N/A Desktop: KDE Plasma v: 5.27.9 tk: Qt v: 5.15.10
wm: kwin_wayland dm: N/A Distro: Ubuntu 24.04 (Noble Numbat)
CPU:
Info: 8-core model: AMD Ryzen 7 7840U w/ Radeon 780M Graphics bits: 64
type: MT MCP arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB L3: 16 MiB
Speed (MHz): avg: 2449 high: 4990
min/max: 400/5289:5132:5605:6076:5918:5447:5760 cores: 1: 1588 2: 400
3: 3809 4: 1523 5: 2217 6: 2218 7: 1994 8: 2141 9: 2402 10: 2230 11: 1879
12: 4990 13: 3194 14: 3528 15: 1993 16: 3084 bogomips: 105403
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Phoenix1 vendor: Framework driver: amdgpu v: kernel
arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,
DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8 bus-ID: c1:00.0
chip-ID: 1002:15bf temp: 56.0 C
Device-2: Realtek Laptop Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0bda:5634
Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 23.2.2
compositor: kwin_wayland driver: X: loaded: modesetting
alternate: fbdev,vesa dri: iris gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 res: 2256x1504 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
gbm: drv: kms_swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
drv: radeonsi
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa
v: 23.3.0~rc4-0ubuntu0~ppa1~24.04.0 glx-v: 1.4 direct-render: yes
renderer: AMD Radeon Graphics (radeonsi gfx1103_r1 LLVM 17.0.5 DRM 3.54
6.6.2-060602-generic) device-ID: 1002:15bf display-ID: :0.0
API: Vulkan v: 1.3.268 surfaces: xcb,xlib,wayland device: 0
type: integrated-gpu driver: mesa radv device-ID: 1002:15bf device: 1
type: cpu driver: mesa llvmpipe device-ID: 10005:0000
Describe the issue
If I play video (from YouTube, etc.) in Firefox (reproduced on 120 and 121 beta) with the hardware acceleration turned on, I get sporadic amdgpu resets. It doesn't matter which specific video I play, but so far it seems to have only happened on VP9-encoded videos. (I opened drm/amd#3005 and it was suggested that I report it here instead.) This results in the screen freezing for several seconds followed by blacking out. The system usually then recovers but with Firefox crashing. Output from dmesg after a crash and normal dmesg output are attached.
I'm running KDE Plasma 5.27 with Wayland and I also have Firefox set to native Wayland mode.
I see several similar issues in #9368, #8303, #8217, and drm/amd#2220 (closed), but it was suggested that I open a new issue since none of those issues were reported with a Phoenix GPU. However, using the "vm_update_mode=3" workaround from one of those so far seems to eliminate the resets.
Regression
I just got this hardware, so I don't know if this behavior is a regression.