diff options
| author | Alex Deucher <[email protected]> | 2025-05-29 19:22:36 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-16 20:16:03 +0000 |
| commit | 429ccbf6f4418e0e823d3470591fb4a99aadb09e (patch) | |
| tree | d8d6e1c33e65cb83fb49b0948343f2fd64791e5e /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu/jpeg3: re-emit unprocessed state on ring reset (diff) | |
| download | kernel-429ccbf6f4418e0e823d3470591fb4a99aadb09e.tar.gz kernel-429ccbf6f4418e0e823d3470591fb4a99aadb09e.zip | |
drm/amdgpu/jpeg4: re-emit unprocessed state on ring reset
Re-emit the unprocessed state after resetting the queue.
Reviewed-by: Sathishkumar S <[email protected]>
Tested-by: Sathishkumar S <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c index 5485e983a089..ca3debe371c5 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c @@ -730,19 +730,14 @@ static int jpeg_v4_0_ring_reset(struct amdgpu_ring *ring, if (!(ring->adev->jpeg.supported_reset & AMDGPU_RESET_TYPE_PER_QUEUE)) return -EOPNOTSUPP; - drm_sched_wqueue_stop(&ring->sched); + amdgpu_ring_reset_helper_begin(ring, timedout_fence); r = jpeg_v4_0_stop(ring->adev); if (r) return r; r = jpeg_v4_0_start(ring->adev); if (r) return r; - r = amdgpu_ring_test_helper(ring); - if (r) - return r; - amdgpu_fence_driver_force_completion(ring); - drm_sched_wqueue_start(&ring->sched); - return 0; + return amdgpu_ring_reset_helper_end(ring, timedout_fence); } static const struct amd_ip_funcs jpeg_v4_0_ip_funcs = { |
