Skip to content

Commit d6bd2a5

Browse files
yinjiyao111gregkh
authored andcommitted
drm/amdgpu/jpeg: set no_user_fence for JPEG v4.0.3 ring
[ Upstream commit 83e37c0 ] JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences. Fixes: e684e65 ("drm/amdgpu/jpeg: add jpeg support for VCN4_0_3") 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 2f6afc9) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a676f16 commit d6bd2a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ static const struct amd_ip_funcs jpeg_v4_0_3_ip_funcs = {
11221122
static const struct amdgpu_ring_funcs jpeg_v4_0_3_dec_ring_vm_funcs = {
11231123
.type = AMDGPU_RING_TYPE_VCN_JPEG,
11241124
.align_mask = 0xf,
1125+
.no_user_fence = true,
11251126
.get_rptr = jpeg_v4_0_3_dec_ring_get_rptr,
11261127
.get_wptr = jpeg_v4_0_3_dec_ring_get_wptr,
11271128
.set_wptr = jpeg_v4_0_3_dec_ring_set_wptr,

0 commit comments

Comments
 (0)