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

drm/amdgpu: use dma_fence_get_status() for adapter reset



We need to check if the fence was signaled without an
error as the per queue resets may have signalled the fence
while attempting to reset the queue.

Reviewed-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5946dbe1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6539,7 +6539,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
	 *
	 * job->base holds a reference to parent fence
	 */
	if (job && dma_fence_is_signaled(&job->hw_fence->base)) {
	if (job && (dma_fence_get_status(&job->hw_fence->base) > 0)) {
		job_signaled = true;
		dev_info(adev->dev, "Guilty job already signaled, skipping HW reset");
		goto skip_hw_reset;