Commit 93af20f7 authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher
Browse files

drm/amdgpu: check if driver should try recovery in ras recovery path



To allow the flexibilty for user to disable gpu recovery
in RAS recovery path by module parameter amdgpu_gpu_recovery

Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarGuchun Chen <guchun.chen@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2ac0d686
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1353,6 +1353,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
	struct amdgpu_ras *ras =
		container_of(work, struct amdgpu_ras, recovery_work);

	if (amdgpu_device_should_recover_gpu(ras->adev))
		amdgpu_device_gpu_recover(ras->adev, 0);
	atomic_set(&ras->in_recovery, 0);
}