AMD Ryzen 7 PRO 5850U / Cezanne segfault on VA-API usage from Firefox
System information
$ inxi -GSC -xx
System:
Host: portable-alex Kernel: 5.15.0-41-generic x86_64 bits: 64 compiler: gcc
v: 11.2.0 Desktop: GNOME 42.2 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3
Distro: Ubuntu 22.04 LTS (Jammy Jellyfish)
CPU:
Info: 8-core model: AMD Ryzen 7 PRO 5850U with Radeon Graphics bits: 64
type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
Speed (MHz): avg: 2398 high: 4391 min/max: 400/4507 boost: enabled cores:
1: 3011 2: 1396 3: 2034 4: 3898 5: 2777 6: 2416 7: 4391 8: 2907 9: 1756
10: 3094 11: 2145 12: 1448 13: 1655 14: 1397 15: 1397 16: 2655
bogomips: 60688
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie:
speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1
bus-ID: 08:00.0 chip-ID: 1002:1638
Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-2:2 chip-ID: 04f2:b6d0
Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
compositor: gnome-shell driver: X: loaded: amdgpu,ati
unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 res: 3840x2160 dpi: 316 diag: 355mm (14")
OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.0-41-generic)
v: 4.6 Mesa 22.0.1 direct render: Yes
Describe the issue
Firefox RDD process crashes trying to use VA-API: https://bugzilla.mozilla.org/show_bug.cgi?id=1777200
STR:
- Install some recent firefox nightly (after https://bugzilla.mozilla.org/show_bug.cgi?id=1752494)
- Browse to unifi.ui.com
Expected: RDD process does not crash
Actual: stdout/stderr shows:
juin 29 22:55:09 portable-alex Firefox-Nightly.desktop[279731]: libva info: VA-API version 1.14.0
juin 29 22:55:09 portable-alex Firefox-Nightly.desktop[279731]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
juin 29 22:55:09 portable-alex Firefox-Nightly.desktop[279731]: libva info: Found init function __vaDriverInit_1_10
juin 29 22:55:09 portable-alex Firefox-Nightly.desktop[279731]: libva info: va_openDriver() returns 0
juin 29 22:55:09 portable-alex Firefox-Nightly.desktop[279731]: ac: Unknown GPU, using 0 for raster_config
juin 29 22:55:09 portable-alex kernel: traps: MediaPD~oder #1[282073] general protection fault ip:7f78675b097d sp:7f7852ad0368 error:0 in libc.so.6[7f786743b000+195000]
I'm skeptical about this ac: Unknown GPU, using 0 for raster_config
, which means we hit https://gitlab.freedesktop.org/mesa/mesa/-/blob/6d145df51f74b8a3fc79e07b6b5e21495a99d1df/src/amd/common/ac_gpu_info.c#L1621-1625