]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: disable runtime pm in certain cases
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 15:02:31 +0000 (11:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 15:49:58 +0000 (11:49 -0400)
If the platform does not support hybrid graphics or ATPX dGPU
power control.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index 203d98b00555762f1f4a0d5574617beabc2d6917..3938fca1ea8e5f4c69fd5e0746fcc7ec60c6d2f1 100644 (file)
@@ -99,6 +99,8 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
 
        if ((amdgpu_runtime_pm != 0) &&
            amdgpu_has_atpx() &&
+           (amdgpu_is_atpx_hybrid() ||
+            amdgpu_has_atpx_dgpu_power_cntl()) &&
            ((flags & AMD_IS_APU) == 0))
                flags |= AMD_IS_PX;