Commit 8068519c authored by Yinjie Yao's avatar Yinjie Yao Committed by Alex Deucher
Browse files

drm/amdgpu/jpeg: set no_user_fence for JPEG v5.0.2 ring



JPEG rings do not support 64-bit user fence writes, reject CS
submissions with user fences.

Fixes: 855e3e19 ("drm/amdgpu: Add JPEG_v5_0_2 IP block")
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarYinjie Yao <yinjie.yao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4ec1c402fb0fb39511136c5fc874788542c476bc)
parent 2f8e3da7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -703,6 +703,7 @@ static const struct amd_ip_funcs jpeg_v5_0_2_ip_funcs = {
static const struct amdgpu_ring_funcs jpeg_v5_0_2_dec_ring_vm_funcs = {
	.type = AMDGPU_RING_TYPE_VCN_JPEG,
	.align_mask = 0xf,
	.no_user_fence = true,
	.get_rptr = jpeg_v5_0_2_dec_ring_get_rptr,
	.get_wptr = jpeg_v5_0_2_dec_ring_get_wptr,
	.set_wptr = jpeg_v5_0_2_dec_ring_set_wptr,