]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/vcn: set no_user_fence for VCN v5.0.2 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: 8433398c789c ("drm/amdgpu: Add VCN v5_0_2")
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 48fc78c31ea7fec63100a772f863cf51b2f8cd0a)

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

index c3d3cc0230580d7d2734d20884e794fa7a02693f..bbc172db91a11bb56f3ee149a2917b0f8d3d90d1 100644 (file)
@@ -994,6 +994,7 @@ static const struct amdgpu_ring_funcs vcn_v5_0_2_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_v5_0_2_unified_ring_get_rptr,
        .get_wptr = vcn_v5_0_2_unified_ring_get_wptr,
        .set_wptr = vcn_v5_0_2_unified_ring_set_wptr,