Navi10: ring vcn_enc0 timeouts with VAAPI/RadeonSI
When I use FFMPEG transcoding with VAAPI on my Radeon5700/Navi10 card, I get regular vcn_enc0 crashes, which require a reboot until a new transcoding attempt can be made.
Logs simply show:
kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_enc0 timeout, signaled seq=8307, emitted seq=8309
kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process ffmpeg pid 15955 thread ffmpeg:cs0 pid 15956
Software versions: mesa-git 1:20.0.0_devel.117651.3b349417 Kernel 5.4.2 ffmpeg 1:4.2.1
FFMPEG command: ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i infile -vf 'format=nv12|vaapi,hwupload' -c:v hevc_vaapi -qp 25 -f matroska outfile
Please let me know if/what additional information is needed.