From: Andrey Grodzovsky Date: Thu, 5 Dec 2019 19:21:31 +0000 (-0500) Subject: drm/amdgpu: Fix BACO entry failure in NAVI10. X-Git-Tag: v5.6-rc1~114^2~21^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b4c5638c08d6be3fc4380bda23aa46bbd158073;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: Fix BACO entry failure in NAVI10. BACO feature must be kept enabled to allow entry into BACO state in SMU during runtime suspend. Signed-off-by: Andrey Grodzovsky Reviewed-by: Evan Quan Reviewed-by: Alex Deucher Tested-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index c30f9a281e4ce..6dddd78185582 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1383,7 +1383,7 @@ static int smu_suspend(void *handle) if (ret) return ret; - if (adev->in_gpu_reset && baco_feature_is_enabled) { + if (baco_feature_is_enabled) { ret = smu_feature_set_enabled(smu, SMU_FEATURE_BACO_BIT, true); if (ret) { pr_warn("set BACO feature enabled failed, return %d\n", ret);