diff options
| author | Alex Deucher <[email protected]> | 2025-07-07 14:56:07 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-16 20:08:59 +0000 |
| commit | 29184874556adff0399580280a077f3a2833396e (patch) | |
| tree | 24fcab03c79d2b676cbfb7645039c1cdb5053cd2 /drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | |
| parent | drm/amdgpu/jpeg2: add additional ring reset error checking (diff) | |
| download | kernel-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.c | 8 |
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; |
