aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2025-07-07 14:56:07 +0000
committerAlex Deucher <[email protected]>2025-07-16 20:08:59 +0000
commit29184874556adff0399580280a077f3a2833396e (patch)
tree24fcab03c79d2b676cbfb7645039c1cdb5053cd2 /drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
parentdrm/amdgpu/jpeg2: add additional ring reset error checking (diff)
downloadkernel-29184874556adff0399580280a077f3a2833396e.tar.gz
kernel-29184874556adff0399580280a077f3a2833396e.zip
drm/amdgpu/jpeg3: add additional ring reset error checking
Start and stop can fail, so add checks. Fixes: 03399d0bff25 ("drm/amdgpu: Add ring reset callback for JPEG3_0_0") Reviewed-by: Sathishkumar S <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: Sathishkumar S <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index a24bd833d644..5428930eafa3 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -562,8 +562,12 @@ static int jpeg_v3_0_ring_reset(struct amdgpu_ring *ring,
int r;
drm_sched_wqueue_stop(&ring->sched);
- jpeg_v3_0_stop(ring->adev);
- jpeg_v3_0_start(ring->adev);
+ r = jpeg_v3_0_stop(ring->adev);
+ if (r)
+ return r;
+ r = jpeg_v3_0_start(ring->adev);
+ if (r)
+ return r;
r = amdgpu_ring_test_helper(ring);
if (r)
return r;