aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zhu <[email protected]>2020-08-05 17:54:21 -0400
committerAlex Deucher <[email protected]>2020-10-12 14:01:41 -0400
commitd5bc1579b0e3bdd3287acc5bc4bed1a3159847c8 (patch)
treeb106d66ef78b56227788d513f4de2712c2273f8b
parent8f72ce6421f3e2dd03304f894ac1ab14209f773b (diff)
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 <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c5
1 files 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: