From: Tao Zhou Date: Wed, 27 Sep 2023 09:59:59 +0000 (+0800) Subject: drm/amdgpu: exit directly if gpu reset fails X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1934907234c86514475b00c8169e7b56ef29ed52;p=linux.git drm/amdgpu: exit directly if gpu reset fails No need to perform the full reset operation in case of gpu reset failure. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 5436d7a34014f..e4627d92e1d0b 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; } }