OSDN Git Service

drm/amdgpu: Avoid another list of reset devices
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 3 Aug 2022 11:24:24 +0000 (16:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2022 19:07:14 +0000 (15:07 -0400)
commit0a83bb35d8a6ff3d18c2772afe616780c23293a6
tree9b8b20de7abba0d27cdf402e67170fd11ca32b70
parentb2f6c73561fbccee404b441a5c2d0b4fefaae817
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 <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aldebaran.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h