video acceleration freezes with chromium
System information
System: Host: kavin-laptop Kernel: 5.13.5-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: GNOME 40.3
tk: GTK 3.24.30 wm: gnome-shell dm: GDM Distro: EndeavourOS base: Arch Linux
CPU: Info: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen rev: 1 cache:
L2: 2 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 33550
Speed: 2085 MHz min/max: 1400/2100 MHz boost: disabled Core speeds (MHz): 1: 2085 2: 1749 3: 1956 4: 1881 5: 1421
6: 1172 7: 1467 8: 1200
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Picasso vendor: Dell driver: amdgpu v: kernel bus-ID: 05:00.0
chip-ID: 1002:15d8
Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-1:2 chip-ID: 0bda:5521
Display: wayland server: X.org 1.20.12 compositor: gnome-shell driver: loaded: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: <missing: xdpyinfo>
OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.41.0 5.13.5-arch1-1 LLVM 12.0.1) v: 4.6 Mesa 21.1.5
direct render: Yes
- OS: EndeavourOS
- GPU: Ryzen 3500U
- Kernel version: 5.13.5-arch1-1
- Mesa version: Mesa 21.1.5
- Xserver version (if applicable): Wayland
- Desktop manager and compositor: GDM
Describe the issue
I'm trying to get video acceleration working on Brave with the following flags:
--enable-features=UseOzonePlatform
--ozone-platform=wayland
--use-gl=desktop
--enable-accelerated-video-decode
--enable-features=VaapiVideoDecoder
Brave launches successfully, but when I play any video, the graphics stop until I restart/reboot the device.
I can reproduce this 100% of the time.
Regression
Not sure, I was trying to get video decoding hardware acceleration to work on Brave/Chromium.
Log files as attachment
[ 60.904435] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[ 65.814324] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=7448, emitted seq=7451
[ 65.814569] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process brave pid 2410 thread brave:cs0 pid 2424
[ 65.814803] amdgpu 0000:05:00.0: amdgpu: GPU reset begin!
[ 65.825675] amdgpu 0000:05:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1164149c0 flags=0x0070]
[ 65.825682] amdgpu 0000:05:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x116440000 flags=0x0070]
[ 65.825984] amdgpu 0000:05:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1164149e0 flags=0x0070]
[ 65.825990] amdgpu 0000:05:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x116440000 flags=0x0070]
[ 65.970045] AMD-Vi: Completion-Wait loop timed out
[ 66.125719] AMD-Vi: Completion-Wait loop timed out
[ 66.817652] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa480]
[ 66.976488] AMD-Vi: Completion-Wait loop timed out
[ 67.136049] AMD-Vi: Completion-Wait loop timed out
[ 67.294185] AMD-Vi: Completion-Wait loop timed out
[ 67.447603] AMD-Vi: Completion-Wait loop timed out
[ 67.611747] AMD-Vi: Completion-Wait loop timed out
[ 67.765209] AMD-Vi: Completion-Wait loop timed out
[ 67.819506] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa4c0]
[ 67.819518] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa4e0]
[ 68.225680] amdgpu 0000:05:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
[ 68.232892] [drm] free PSP TMR buffer
[ 68.262395] amdgpu 0000:05:00.0: amdgpu: MODE2 reset
[ 68.263320] amdgpu 0000:05:00.0: amdgpu: GPU reset succeeded, trying to resume
[ 68.263693] [drm] PCIE GART of 1024M enabled.
[ 68.263696] [drm] PTB located at 0x000000F400900000
[ 68.264182] [drm] PSP is resuming...
[ 68.284227] [drm] reserve 0x400000 from 0xf47fc00000 for PSP TMR
[ 68.350489] amdgpu 0000:05:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 68.360799] amdgpu 0000:05:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 68.635575] [drm] kiq ring mec 2 pipe 1 q 0
[ 68.904675] amdgpu 0000:05:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
[ 68.904920] [drm:amdgpu_gfx_enable_kcq.cold [amdgpu]] *ERROR* KCQ enable failed
[ 68.905220] [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v9_0> failed -110
[ 68.905467] amdgpu 0000:05:00.0: amdgpu: GPU reset(2) failed
[ 69.056815] AMD-Vi: Completion-Wait loop timed out
[ 69.208463] AMD-Vi: Completion-Wait loop timed out
[ 69.360311] AMD-Vi: Completion-Wait loop timed out
[ 69.513017] AMD-Vi: Completion-Wait loop timed out
[ 69.664772] AMD-Vi: Completion-Wait loop timed out
[ 69.816198] AMD-Vi: Completion-Wait loop timed out
[ 69.907363] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa830]
[ 70.058722] AMD-Vi: Completion-Wait loop timed out
[ 70.210423] AMD-Vi: Completion-Wait loop timed out
[ 70.363627] AMD-Vi: Completion-Wait loop timed out
[ 70.517750] AMD-Vi: Completion-Wait loop timed out
[ 70.675093] AMD-Vi: Completion-Wait loop timed out
[ 70.831119] AMD-Vi: Completion-Wait loop timed out
[ 70.909291] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa970]
[ 70.909298] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=05:00.0 address=0x1001fa990]
[ 70.909363] amdgpu 0000:05:00.0: amdgpu: GPU reset end with ret = -110