aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorEvan Quan <[email protected]>2020-10-28 07:37:00 +0000
committerAlex Deucher <[email protected]>2020-10-30 05:00:36 +0000
commit0134022fa3ab0e082bb821a81ef2ffa7027ebd10 (patch)
tree937030e27fe2fe85f12786003bcbaea876d27550 /drivers/gpu/drm/amd/amdgpu/cik.c
parentdrm/amd/pm: correct the baco reset sequence for CI ASICs (diff)
downloadkernel-0134022fa3ab0e082bb821a81ef2ffa7027ebd10.tar.gz
kernel-0134022fa3ab0e082bb821a81ef2ffa7027ebd10.zip
drm/amd/pm: enable baco reset for Hawaii
Which can be used for S4(hibernation) support. Signed-off-by: Evan Quan <[email protected]> Tested-by: Sandeep Raghuraman <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/cik.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c
index 03ff8bd1fee8..5442df094102 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik.c
@@ -1336,11 +1336,13 @@ cik_asic_reset_method(struct amdgpu_device *adev)
switch (adev->asic_type) {
case CHIP_BONAIRE:
- case CHIP_HAWAII:
/* disable baco reset until it works */
/* smu7_asic_get_baco_capability(adev, &baco_reset); */
baco_reset = false;
break;
+ case CHIP_HAWAII:
+ baco_reset = cik_asic_supports_baco(adev);
+ break;
default:
baco_reset = false;
break;