No need to perform the full reset operation in case of gpu reset
failure.

Signed-off-by: Tao Zhou <tao.zh...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 5436d7a34014..e4627d92e1d0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5075,7 +5075,7 @@ int amdgpu_do_asic_reset(struct list_head 
*device_list_handle,
                        if (r) {
                                dev_err(tmp_adev->dev, "ASIC reset failed with 
error, %d for drm dev, %s",
                                         r, adev_to_drm(tmp_adev)->unique);
-                               break;
+                               goto out;
                        }
                }
 
-- 
2.35.1

Reply via email to