mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2ac0d68697
commit
93af20f74e
1 changed files with 2 additions and 1 deletions
|
@ -1353,7 +1353,8 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
|
||||||
struct amdgpu_ras *ras =
|
struct amdgpu_ras *ras =
|
||||||
container_of(work, struct amdgpu_ras, recovery_work);
|
container_of(work, struct amdgpu_ras, recovery_work);
|
||||||
|
|
||||||
amdgpu_device_gpu_recover(ras->adev, 0);
|
if (amdgpu_device_should_recover_gpu(ras->adev))
|
||||||
|
amdgpu_device_gpu_recover(ras->adev, 0);
|
||||||
atomic_set(&ras->in_recovery, 0);
|
atomic_set(&ras->in_recovery, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue