[7800xt] amdgpu: amdgpu_cs_query_fence_status failed.
Brief summary of the problem:
I was trying to watch a YouTube video tonight. Usually I do so through mpv
which internally streams the video with yt-dlp
. However this time the video has stopped even though the audio kept playing. After brief investigation I'm seeing the following related symptoms whenever this occurs:
-
mpv prints out:
amdgpu: amdgpu_cs_query_fence_status failed.
-
dmesg gets the following messages in it:
[52555.825070] amdgpu 0000:09:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:2 pasid:32775, for process mpv pid 37850 thread mpv:cs0 pid 37880) [52555.825078] amdgpu 0000:09:00.0: amdgpu: in page starting at address 0x000050dd8ec81000 from client 10 [52555.825081] amdgpu 0000:09:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00201431 [52555.825083] amdgpu 0000:09:00.0: amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa) [52555.825085] amdgpu 0000:09:00.0: amdgpu: MORE_FAULTS: 0x1 [52555.825087] amdgpu 0000:09:00.0: amdgpu: WALKER_ERROR: 0x0 [52555.825089] amdgpu 0000:09:00.0: amdgpu: PERMISSION_FAULTS: 0x3 [52555.825091] amdgpu 0000:09:00.0: amdgpu: MAPPING_ERROR: 0x0 [52555.825093] amdgpu 0000:09:00.0: amdgpu: RW: 0x0 [52555.825098] amdgpu 0000:09:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:2 pasid:32775, for process mpv pid 37850 thread mpv:cs0 pid 37880) [52555.825102] amdgpu 0000:09:00.0: amdgpu: in page starting at address 0x000050dd8ec81000 from client 10 [52555.825104] amdgpu 0000:09:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00000000 [52555.825106] amdgpu 0000:09:00.0: amdgpu: Faulty UTCL2 client ID: CB/DB (0x0) [52555.825107] amdgpu 0000:09:00.0: amdgpu: MORE_FAULTS: 0x0 [52555.825109] amdgpu 0000:09:00.0: amdgpu: WALKER_ERROR: 0x0 [52555.825111] amdgpu 0000:09:00.0: amdgpu: PERMISSION_FAULTS: 0x0 [52555.825112] amdgpu 0000:09:00.0: amdgpu: MAPPING_ERROR: 0x0 [52555.825114] amdgpu 0000:09:00.0: amdgpu: RW: 0x0 [52566.074439] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, but soft recovered
I have since downloaded the video locally using
yt-dlp -f 'bestvideo[height<=2200][vcodec!*=vp09]+bestaudio/best' 'https://www.youtube.com/watch?v=AF8d72mA41M'
and can reliably reproduce the problem.
Hardware description:
- CPU: 5800x
- GPU: 7800xt
System information:
- Distro name and Version: nixos
- Kernel version: 6.6.14
- mesa version: 23.3.3
How to reproduce the issue:
I have since downloaded the video locally using
yt-dlp -f 'bestvideo[height<=2200][vcodec!*=vp09]+bestaudio/best' 'https://www.youtube.com/watch?v=AF8d72mA41M'
and can reliably reproduce the problem when running mpv with the following configuration:
vo=gpu
gpu-context=wayland
hwdec=vaapi
ao=pipewire
vd-lavc-threads=0
osc=no
audio-display=no
prefetch-playlist=yes
cache-pause-initial=yes
msg-level=cplayer=info,demux=warn,cache=warn
user-agent="Mozilla/5.0"
ytdl-format=bestvideo[height<=2200][vcodec!*=vp09]+bestaudio/best