amdgpu page fault when running wivrn to vaapi encode on 6800xt
Description
When attempting to run the wivrn openxr runtime to stream xrgears (via libva-mesa-driver) to my headset (a pico 4) I get an amd gpu page fault. Happens every time as soon as you start xrgears, easily reproducible (though you will need a pico or a quest to test it with). I get the same result with mesa git (using meson devenv -C /path/to/mesa /path/to/wivrn
).
This is using wivrn v0.10.2 built from source https://github.com/Meumeu/WiVRn/tree/v0.10.2
Log files (for system lockups / game freezes / crashes)
Steps to reproduce
- build wivrn
- set wivrn to be the default openxr runtime as explained in their readme (
~/.config/openxr/1/active_runtime.json
) - install the wivrn apk on your headset
- run wivrn (default config should be fine as long as you are running mesa with an amdgpu)
- run wivrn on your headset
- start any openxr application (e.g. xrgears)
System information
System:
Host: buttress Kernel: 6.7.2-arch1-2 arch: x86_64 bits: 64 compiler: gcc
v: 13.2.1 Desktop: GNOME v: 45.3 tk: GTK v: 3.24.41 wm: gnome-shell dm:
1: GDM 2: SDDM note: stopped Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 5800X3D bits: 64 type: MT MCP arch: Zen 3+
rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 96 MiB
Speed (MHz): avg: 2275 high: 3400 min/max: 2200/4549 boost: enabled cores:
1: 2200 2: 2200 3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 3400
10: 2200 11: 2200 12: 2200 13: 2200 14: 2200 15: 2200 16: 2200
bogomips: 108838
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: ASUSTeK
driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
active: DP-3 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 0a:00.0 chip-ID: 1002:73bf
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
dri: radeonsi gpu: amdgpu display-ID: 0
Monitor-1: DP-3 model: KAMN341FQULA res: 3440x1440 dpi: 109
diag: 869mm (34.2")
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
surfaceless: drv: radeonsi wayland: drv: radeonsi x11: drv: radeonsi
inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.3.4-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 6800 XT (radeonsi
navi21 LLVM 16.0.6 DRM 3.56 6.7.2-arch1-2) device-ID: 1002:73bf
display-ID: :0.0
API: Vulkan v: 1.3.276 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: mesa radv device-ID: 1002:73bf