From: Kevin Wang <[email protected]>

enable mgcg/cgcg/cgls for gfx 13

Signed-off-by: Kevin Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/soc_v2_0.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/soc_v2_0.c 
b/drivers/gpu/drm/amd/amdgpu/soc_v2_0.c
index 0f358dbe578e6..5e0317560283b 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc_v2_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc_v2_0.c
@@ -354,7 +354,9 @@ static int soc_v2_0_common_early_init(struct 
amdgpu_ip_block *ip_block)
        switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
        case IP_VERSION(13, 0, 1):
        case IP_VERSION(13, 0, 4):
-               adev->cg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
+                       AMD_CG_SUPPORT_GFX_CGCG |
+                       AMD_CG_SUPPORT_GFX_CGLS,
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x10;
                break;
-- 
2.56.0

Reply via email to