Commit 19349072 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

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: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b57c4f1c
...@@ -5075,7 +5075,7 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle, ...@@ -5075,7 +5075,7 @@ int amdgpu_do_asic_reset(struct list_head *device_list_handle,
if (r) { if (r) {
dev_err(tmp_adev->dev, "ASIC reset failed with error, %d for drm dev, %s", dev_err(tmp_adev->dev, "ASIC reset failed with error, %d for drm dev, %s",
r, adev_to_drm(tmp_adev)->unique); r, adev_to_drm(tmp_adev)->unique);
break; goto out;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment