]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: enable sdma clock gating for navi12
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Tue, 30 Jul 2019 04:18:55 +0000 (12:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:47 +0000 (12:47 -0500)
enables sdma medium grained clock gating and memory light sleep

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 40a1517cd2e08451f1451a8c4ef639c125ec1e1b..98d2f48fcd65abd292cbcb95385e8d844447a29d 100644 (file)
@@ -647,7 +647,9 @@ static int nv_common_early_init(void *handle)
                        AMD_CG_SUPPORT_GFX_CP_LS |
                        AMD_CG_SUPPORT_GFX_RLC_LS |
                        AMD_CG_SUPPORT_HDP_MGCG |
-                       AMD_CG_SUPPORT_HDP_LS;
+                       AMD_CG_SUPPORT_HDP_LS |
+                       AMD_CG_SUPPORT_SDMA_MGCG |
+                       AMD_CG_SUPPORT_SDMA_LS;
                adev->pg_flags = AMD_PG_SUPPORT_VCN_DPG;
                adev->external_rev_id = adev->rev_id + 0xa;
                break;