drm/amdgpu: Enable SDMA power gating for PCO
authorKenneth Feng <kenneth.feng@amd.com>
Fri, 10 Aug 2018 08:22:26 +0000 (16:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 14:35:38 +0000 (09:35 -0500)
Enable SDMA power gating

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 2539fa7b959433c6c2f30c68bad03593290acae5..b205a4a5c3d68b7a7af7c8c7ac53e9c406a93733 100644 (file)
@@ -740,6 +740,8 @@ static int soc15_common_early_init(void *handle)
                        AMD_CG_SUPPORT_SDMA_MGCG |
                        AMD_CG_SUPPORT_SDMA_LS;
 
+               adev->pg_flags = AMD_PG_SUPPORT_SDMA;
+
                if (adev->powerplay.pp_feature & PP_GFXOFF_MASK)
                        adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
                                AMD_PG_SUPPORT_CP |