Skip to content

Commit a676f16

Browse files
yinjiyao111gregkh
authored andcommitted
drm/amdgpu/jpeg: set no_user_fence for JPEG v4.0 ring
[ Upstream commit e7e90b5 ] JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences. Fixes: b13111d ("drm/amdgpu/jpeg: add jpeg support for VCN4_0_0") 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 8d0cac9) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 303da82 commit a676f16

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ static const struct amd_ip_funcs jpeg_v4_0_ip_funcs = {
724724
static const struct amdgpu_ring_funcs jpeg_v4_0_dec_ring_vm_funcs = {
725725
.type = AMDGPU_RING_TYPE_VCN_JPEG,
726726
.align_mask = 0xf,
727+
.no_user_fence = true,
727728
.get_rptr = jpeg_v4_0_dec_ring_get_rptr,
728729
.get_wptr = jpeg_v4_0_dec_ring_get_wptr,
729730
.set_wptr = jpeg_v4_0_dec_ring_set_wptr,

0 commit comments

Comments
 (0)