aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2024-08-01 08:26:27 +0000
committerAlex Deucher <[email protected]>2024-08-06 15:11:02 +0000
commitdd3e296289346109d41c6317124f51aee0269c25 (patch)
treee7da4c2975cc997c494f919d5667b71c26b40bf7 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amd/display: Print Pcon FRL Link BW in Debug Message (diff)
downloadkernel-dd3e296289346109d41c6317124f51aee0269c25.tar.gz
kernel-dd3e296289346109d41c6317124f51aee0269c25.zip
drm/amdgpu: update bad state check in GPU recovery
Return RMA status without message print. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 3a43754e7f10..f595ba6ba7c7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5498,7 +5498,7 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
* bad_page_threshold value to fix this once
* probing driver again.
*/
- if (!amdgpu_ras_eeprom_check_err_threshold(tmp_adev)) {
+ if (!amdgpu_ras_is_rma(tmp_adev)) {
/* must succeed. */
amdgpu_ras_resume(tmp_adev);
} else {