drm/amdgpu: Add mode2 reset support for aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 16 Mar 2021 13:36:28 +0000 (21:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:46:26 +0000 (16:46 -0400)
commit142600e854b17f7dac25c8f971c030bb1700d2b6
tree0e3f5bd0a72225dbea2f9e64c0ae9b54b37bee66
parent5d89bb2d2f53b27460f77c89756597dee507cd34
drm/amdgpu: Add mode2 reset support for aldebaran

v1: Aldebaran uses reset control to support mode2 reset. The sequences to
reset and restore hardware context are specific to a particular
configuration.

v2: Clear bus mastering before reset.
Fix coding style issues, drop unwanted variables and info log.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/aldebaran.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/aldebaran.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c