File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -3571,7 +3571,7 @@ static int gfx_v9_4_3_reset_kcq(struct amdgpu_ring *ring,
3571
3571
if (!kiq -> pmf || !kiq -> pmf -> kiq_unmap_queues )
3572
3572
return - EINVAL ;
3573
3573
3574
- drm_sched_wqueue_stop ( & ring -> sched );
3574
+ amdgpu_ring_reset_helper_begin ( ring , timedout_fence );
3575
3575
3576
3576
spin_lock_irqsave (& kiq -> ring_lock , flags );
3577
3577
@@ -3628,12 +3628,7 @@ static int gfx_v9_4_3_reset_kcq(struct amdgpu_ring *ring,
3628
3628
return r ;
3629
3629
}
3630
3630
3631
- r = amdgpu_ring_test_ring (ring );
3632
- if (r )
3633
- return r ;
3634
- amdgpu_fence_driver_force_completion (ring );
3635
- drm_sched_wqueue_start (& ring -> sched );
3636
- return 0 ;
3631
+ return amdgpu_ring_reset_helper_end (ring , timedout_fence );
3637
3632
}
3638
3633
3639
3634
enum amdgpu_gfx_cp_ras_mem_id {
You can’t perform that action at this time.
0 commit comments