Skip to content

Commit 3a55ff1

Browse files
yinjiyao111gregkh
authored andcommitted
drm/amdgpu/jpeg: set no_user_fence for JPEG v5.0.0 ring
[ Upstream commit ea7c61c ] JPEG rings do not support 64-bit user fence writes, reject CS submissions with user fences. Fixes: dfad65c ("drm/amdgpu: Add JPEG5 support") 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 0f43893) Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 424510b commit 3a55ff1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ static const struct amd_ip_funcs jpeg_v5_0_0_ip_funcs = {
644644
static const struct amdgpu_ring_funcs jpeg_v5_0_0_dec_ring_vm_funcs = {
645645
.type = AMDGPU_RING_TYPE_VCN_JPEG,
646646
.align_mask = 0xf,
647+
.no_user_fence = true,
647648
.get_rptr = jpeg_v5_0_0_dec_ring_get_rptr,
648649
.get_wptr = jpeg_v5_0_0_dec_ring_get_wptr,
649650
.set_wptr = jpeg_v5_0_0_dec_ring_set_wptr,

0 commit comments

Comments
 (0)