]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: add HDP Clock Gating support for yellow carp
authorAaron Liu <aaron.liu@amd.com>
Tue, 12 Jan 2021 08:42:29 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:03:16 +0000 (16:03 -0400)
HDP MGCG is enabled by default.
Adding AMD_CG_SUPPORT_HDP_MGCG to ensure hdp mgcg enabled.
HDP MGLS need to be enabled by driver.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 3e20c40766b202959af52dcf2d3a5d6f6fb56dcc..edf4cfa0ec72e61c590a5cfc33dc2e02c2f4fc6f 100644 (file)
@@ -1336,7 +1336,9 @@ static int nv_common_early_init(void *handle)
                        AMD_CG_SUPPORT_GFX_FGCG |
                        AMD_CG_SUPPORT_MC_MGCG |
                        AMD_CG_SUPPORT_MC_LS |
-                       AMD_CG_SUPPORT_SDMA_LS;
+                       AMD_CG_SUPPORT_SDMA_LS |
+                       AMD_CG_SUPPORT_HDP_MGCG |
+                       AMD_CG_SUPPORT_HDP_LS;
                adev->pg_flags = AMD_PG_SUPPORT_GFX_PG;
                adev->external_rev_id = adev->rev_id + 0x01;
                break;