diff options
author | Tao Zhou <[email protected]> | 2023-09-27 17:59:59 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-09-28 15:44:36 -0400 |
commit | 1934907234c86514475b00c8169e7b56ef29ed52 (patch) | |
tree | ef78396a2bdd0faf86fa9ab11f628f6bea445c13 | |
parent | b57c4f1c3ba52467db6cc6dfbbb217348fd2c288 (diff) |
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 <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
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 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; } } |