diff options
author | Surbhi Kakarya <surbhi.kakarya@amd.com> | 2022-01-26 12:04:39 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-02-14 15:08:41 -0500 |
commit | 7258fa31eabd882f6c8ed4d6d281f6657a33ef94 (patch) | |
tree | 188ff6cc7c8b5593b99ec6fd5a470bd87857a788 /drivers/gpu/drm/drm_gem_atomic_helper.c | |
parent | 1ec1944eb50c8de2d96de1188eec9f8b22d03366 (diff) |
drm/amdgpu: Handle the GPU recovery failure in SRIOV environment.
This patch handles the GPU recovery failure in sriov environment by
retrying the reset if the first reset fails. To determine the condition
of retry, a new macro AMDGPU_RETRY_SRIOV_RESET is added which returns
true if failure is due to ETIMEDOUT, EINVAL or EBUSY, otherwise return
false.A new macro AMDGPU_MAX_RETRY_LIMIT is used to limit the retry to 2.
It also handles the return status in Post Asic Reset by updating the return
code with asic_reset_res and eventually return the return code in
amdgpu_job_timedout().
Signed-off-by: Surbhi Kakarya <surbhi.kakarya@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem_atomic_helper.c')
0 files changed, 0 insertions, 0 deletions