Commit e22631b5 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gfx9.4.3: re-emit unprocessed state on kcq reset



Re-emit the unprocessed state after resetting the queue.

Reviewed-by: default avatarJesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ee60209b
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -3571,7 +3571,7 @@ static int gfx_v9_4_3_reset_kcq(struct amdgpu_ring *ring,
	if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
		return -EINVAL;

	drm_sched_wqueue_stop(&ring->sched);
	amdgpu_ring_reset_helper_begin(ring, timedout_fence);

	spin_lock_irqsave(&kiq->ring_lock, flags);

@@ -3628,12 +3628,7 @@ static int gfx_v9_4_3_reset_kcq(struct amdgpu_ring *ring,
		return r;
	}

	r = amdgpu_ring_test_ring(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);
}

enum amdgpu_gfx_cp_ras_mem_id {