diff options
| author | Lijo Lazar <[email protected]> | 2022-08-03 11:24:24 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-08-10 19:07:14 +0000 |
| commit | 0a83bb35d8a6ff3d18c2772afe616780c23293a6 (patch) | |
| tree | 9b8b20de7abba0d27cdf402e67170fd11ca32b70 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | |
| parent | drm/amd/display: include missing headers (diff) | |
| download | kernel-0a83bb35d8a6ff3d18c2772afe616780c23293a6.tar.gz kernel-0a83bb35d8a6ff3d18c2772afe616780c23293a6.zip | |
drm/amdgpu: Avoid another list of reset devices
A list of devices to be reset is already created in
amdgpu_device_gpu_recover function. Creating another list with the
same nodes is incorrect and not supported in list_head. Instead, pass
the device list as part of reset context.
Fixes: 9e08564727fc (drm/amdgpu: Refactor mode2 reset logic for v13.0.2)
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h index 9e55a5d7a825..ffda1560c648 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h @@ -37,6 +37,7 @@ struct amdgpu_reset_context { struct amdgpu_device *reset_req_dev; struct amdgpu_job *job; struct amdgpu_hive_info *hive; + struct list_head *reset_device_list; unsigned long flags; }; |
