]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3fd46d64712c260a010dd78393d19e11c1e68b5f
tree9b8b20de7abba0d27cdf402e67170fd11ca32b70
parent780ac2e780e196df661fd25782e69d9ede7f0892
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: f2f7325bb964 (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