Commit dd3e2962 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

drm/amdgpu: update bad state check in GPU recovery

Return RMA status without message print.
Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 65f6e9f7
...@@ -5498,7 +5498,7 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle, ...@@ -5498,7 +5498,7 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
* bad_page_threshold value to fix this once * bad_page_threshold value to fix this once
* probing driver again. * probing driver again.
*/ */
if (!amdgpu_ras_eeprom_check_err_threshold(tmp_adev)) { if (!amdgpu_ras_is_rma(tmp_adev)) {
/* must succeed. */ /* must succeed. */
amdgpu_ras_resume(tmp_adev); amdgpu_ras_resume(tmp_adev);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment