Frequent "Waiting for fences timed out!" while decoding video in Linux 5.18
Brief summary of the problem:
When playing a video in Firefox using VA-API on Linux 5.18, the screen freezes and this appears in the kernel logs:
[drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec_1 timeout, signaled seq=5, emitted seq=6
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process RDD Process pid 2101 thread firefox:cs0 pid 2338
This only occurs on Linux 5.18 with an RX 6800. I cannot reproduce this with Linux 5.17 on the RX 6800, or Linux 5.18 with Renoir graphics.
Hardware description:
- CPU:
AMD Ryzen 9 5900X 12-Core Processor
- GPU:
Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c3)
- System Memory: 32GB DDR4
- Display(s): LG-27GP850
- Type of Display Connection: DP
System information:
- Distro name and Version: Arch Linux
- Kernel version:
Linux david-workstation 5.18.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 30 May 2022 17:53:11 +0000 x86_64 GNU/Linux
- Custom kernel: N/A
- AMD official driver version: N/A (Mesa 22.1.1)
How to reproduce the issue:
- Run Firefox with hardware accelerated video decoding enabled (I use
MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 MOZ_DISABLE_RDD_SANDBOX=1 firefox
andmedia.ffmpeg.vaapi.enabled
set totrue
inabout:config
). - Play a YouTube video which is VP9-encoded.
Attached files:
Log files (for system lockups / game freezes / crashes)
- Dmesg log: kernel.log
Edited by David Mak