]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/amdgpu: update bad state check in GPU recovery
authorTao Zhou <tao.zhou1@amd.com>
Thu, 1 Aug 2024 08:26:27 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 15:11:02 +0000 (11:11 -0400)
Return RMA status without message print.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 3a43754e7f10fd0848ef0007e23c1f38ddaa6fc1..f595ba6ba7c7747a1ae4b4d0462bebbcebb3524d 100644 (file)
@@ -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 {