From: Evan Quan Date: Wed, 28 Oct 2020 07:37:00 +0000 (+0800) Subject: drm/amd/pm: enable baco reset for Hawaii X-Git-Tag: v5.15~2410^2~1^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a4776a7337d47d92053870f37f9626ab0c00ac8;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/pm: enable baco reset for Hawaii Which can be used for S4(hibernation) support. Signed-off-by: Evan Quan Tested-by: Sandeep Raghuraman Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c index 03ff8bd..5442df0 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;