Skip to content

Commit 2e216c2

Browse files
yinjiyao111gregkh
authored andcommitted
drm/amdgpu/jpeg: set no_user_fence for JPEG v2.0 ring
[ Upstream commit e5f612d ] JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences. Fixes: 6ac2724 ("drm/amdgpu: add JPEG v2.0 function supports") 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 96179da) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9f5a145 commit 2e216c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ static const struct amd_ip_funcs jpeg_v2_0_ip_funcs = {
766766
static const struct amdgpu_ring_funcs jpeg_v2_0_dec_ring_vm_funcs = {
767767
.type = AMDGPU_RING_TYPE_VCN_JPEG,
768768
.align_mask = 0xf,
769+
.no_user_fence = true,
769770
.get_rptr = jpeg_v2_0_dec_ring_get_rptr,
770771
.get_wptr = jpeg_v2_0_dec_ring_get_wptr,
771772
.set_wptr = jpeg_v2_0_dec_ring_set_wptr,

0 commit comments

Comments
 (0)