diff options
| author | Lijo Lazar <[email protected]> | 2021-03-16 13:36:28 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:46:26 +0000 |
| commit | 142600e854b17f7dac25c8f971c030bb1700d2b6 (patch) | |
| tree | 0e3f5bd0a72225dbea2f9e64c0ae9b54b37bee66 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | |
| parent | drm/amdgpu: Make set PG/CG state functions public (diff) | |
| download | kernel-142600e854b17f7dac25c8f971c030bb1700d2b6.tar.gz kernel-142600e854b17f7dac25c8f971c030bb1700d2b6.zip | |
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 <[email protected]>
Reviewed-by: Feifei Xu <[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.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c index 5bc94b8320ba..02afd4115675 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c @@ -36,6 +36,14 @@ int amdgpu_reset_init(struct amdgpu_device *adev) { int ret = 0; + switch (adev->asic_type) { + case CHIP_ALDEBARAN: + ret = aldebaran_reset_init(adev); + break; + default: + break; + } + return ret; } @@ -43,6 +51,14 @@ int amdgpu_reset_fini(struct amdgpu_device *adev) { int ret = 0; + switch (adev->asic_type) { + case CHIP_ALDEBARAN: + ret = aldebaran_reset_fini(adev); + break; + default: + break; + } + return ret; } |
