drm/amdgpu: Refactor mode2 reset logic for v13.0.2
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 25 Feb 2022 09:24:13 +0000 (14:54 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Mar 2022 18:03:29 +0000 (13:03 -0500)
commit9e08564727fc7770b30715fb81348aee54fa50c3
tree427cbdaf53bb8bf1ec4387892dcfe703d08a72f4
parent90d282582aa709eeadaf33db71e92718c9471e31
drm/amdgpu: Refactor mode2 reset logic for v13.0.2

Use IP version and refactor reset logic to apply to a list of devices.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aldebaran.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c