drm/amdgpu: Fix BACO entry failure in NAVI10.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 5 Dec 2019 19:21:31 +0000 (14:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Dec 2019 15:36:48 +0000 (10:36 -0500)
BACO feature must be kept enabled to allow entry into
BACO state in SMU during runtime suspend.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index c30f9a2..6dddd78 100644 (file)
@@ -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);