Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/vcn: set no_user_fence for VCN v2.0 enc/dec rings

VCN encoder and decoder rings do not support 64-bit user fence writes,
reject CS submissions with user fences.

Fixes: 1b61de45dfaf ("drm/amdgpu: add initial VCN2.0 support (v2)")
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 e2b5499fca55f1a32960a311bbb62e35891eaf73)

authored by

Yinjie Yao and committed by
Alex Deucher
8d80b293 31bc64e8

+2
+2
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
··· 2113 2113 static const struct amdgpu_ring_funcs vcn_v2_0_dec_ring_vm_funcs = { 2114 2114 .type = AMDGPU_RING_TYPE_VCN_DEC, 2115 2115 .align_mask = 0xf, 2116 + .no_user_fence = true, 2116 2117 .secure_submission_supported = true, 2117 2118 .get_rptr = vcn_v2_0_dec_ring_get_rptr, 2118 2119 .get_wptr = vcn_v2_0_dec_ring_get_wptr, ··· 2146 2145 .type = AMDGPU_RING_TYPE_VCN_ENC, 2147 2146 .align_mask = 0x3f, 2148 2147 .nop = VCN_ENC_CMD_NO_OP, 2148 + .no_user_fence = true, 2149 2149 .get_rptr = vcn_v2_0_enc_ring_get_rptr, 2150 2150 .get_wptr = vcn_v2_0_enc_ring_get_wptr, 2151 2151 .set_wptr = vcn_v2_0_enc_ring_set_wptr,