File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7189,7 +7189,7 @@ static int gfx_v9_0_reset_kcq(struct amdgpu_ring *ring,
7189
7189
if (!kiq -> pmf || !kiq -> pmf -> kiq_unmap_queues )
7190
7190
return - EINVAL ;
7191
7191
7192
- drm_sched_wqueue_stop ( & ring -> sched );
7192
+ amdgpu_ring_reset_helper_begin ( ring , timedout_fence );
7193
7193
7194
7194
spin_lock_irqsave (& kiq -> ring_lock , flags );
7195
7195
@@ -7246,13 +7246,7 @@ static int gfx_v9_0_reset_kcq(struct amdgpu_ring *ring,
7246
7246
DRM_ERROR ("fail to remap queue\n" );
7247
7247
return r ;
7248
7248
}
7249
-
7250
- r = amdgpu_ring_test_ring (ring );
7251
- if (r )
7252
- return r ;
7253
- amdgpu_fence_driver_force_completion (ring );
7254
- drm_sched_wqueue_start (& ring -> sched );
7255
- return 0 ;
7249
+ return amdgpu_ring_reset_helper_end (ring , timedout_fence );
7256
7250
}
7257
7251
7258
7252
static void gfx_v9_ip_print (struct amdgpu_ip_block * ip_block , struct drm_printer * p )
You can’t perform that action at this time.
0 commit comments