Skip to content

radv: fix compat with older kernels

Chia-I Wu requested to merge olv/mesa:radv-old-kernel into main

What does this MR do and why?

We have gfx9 devices that are still stuck with 5.4 kernel. Since commit 748b7f80, we started getting

[ 4616.851141] [drm:amdgpu_syncobj_lookup_and_add_to_sync] *ERROR* syncobj 1 failed to find fence @ 0 (-22)!
[ 4616.851162] [drm:amdgpu_cs_ioctl] *ERROR* Failed in the dependencies handling -22!

The dedicated sparse queue uses threaded submits, which appears to create data races with emulated timeline syncs. This MR hides the dedicated sparse queue on older kernels where timeline syncobjs are missing. The last commit silences an unrelated assert failure with emulated timeline syncs.

Merge request reports