]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/vcn: set no_user_fence for VCN v4.0.5 enc ring
authorYinjie Yao <yinjie.yao@amd.com>
Mon, 27 Apr 2026 15:45:36 +0000 (11:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 19:51:17 +0000 (15:51 -0400)
VCN encoder and decoder rings do not support 64-bit user fence writes,
reject CS submissions with user fences.

Fixes: 547aad32edac ("drm/amdgpu: add VCN4 ip block support")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yinjie Yao <yinjie.yao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 084d94ac93707bdda07efb5cee786f632de4219b)

drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c

index 1f6a22983c0dd5efd20481dbef446f4cb7cd3d1f..1571cc5a148c87dc3ddd2fad6f4075c6442debc4 100644 (file)
@@ -1483,6 +1483,7 @@ static struct amdgpu_ring_funcs vcn_v4_0_5_unified_ring_vm_funcs = {
        .type = AMDGPU_RING_TYPE_VCN_ENC,
        .align_mask = 0x3f,
        .nop = VCN_ENC_CMD_NO_OP,
+       .no_user_fence = true,
        .get_rptr = vcn_v4_0_5_unified_ring_get_rptr,
        .get_wptr = vcn_v4_0_5_unified_ring_get_wptr,
        .set_wptr = vcn_v4_0_5_unified_ring_set_wptr,