drm/amdgpu: enable gfx clock gating and power gating for vangogh
authorHuang Rui <ray.huang@amd.com>
Tue, 22 Sep 2020 11:08:31 +0000 (19:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:15:28 +0000 (15:15 -0400)
This patch is to enable the gfx cg and pg for vangogh.

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

index 6ca5888..2c2213d 100644 (file)
@@ -884,8 +884,11 @@ static int nv_common_early_init(void *handle)
                break;
 
        case CHIP_VANGOGH:
-               adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+                       AMD_CG_SUPPORT_GFX_CGLS |
+                       AMD_CG_SUPPORT_GFX_3D_CGCG |
+                       AMD_CG_SUPPORT_GFX_3D_CGLS;
+               adev->pg_flags = AMD_PG_SUPPORT_GFX_PG;
                adev->external_rev_id = adev->rev_id + 0x01;
                break;
        default: