From d5bc1579b0e3bdd3287acc5bc4bed1a3159847c8 Mon Sep 17 00:00:00 2001 From: James Zhu Date: Wed, 5 Aug 2020 17:54:21 -0400 Subject: [PATCH] drm/amdgpu: enable VCN3.0 PG and CG for dimgrey_cavefish Enable VCN3.0 PG and CG for dimgrey_cavefish Signed-off-by: James Zhu Reviewed-by: Leo Liu Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/nv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 94ccacd786ce..45177edee516 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -904,8 +904,9 @@ static int nv_common_early_init(void *handle) adev->external_rev_id = adev->rev_id + 0x01; break; case CHIP_DIMGREY_CAVEFISH: - adev->cg_flags = 0; - adev->pg_flags = AMD_PG_SUPPORT_VCN_DPG; + adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG; + adev->pg_flags = AMD_PG_SUPPORT_VCN | + AMD_PG_SUPPORT_VCN_DPG; adev->external_rev_id = adev->rev_id + 0x3c; break; default: -- 2.11.0