aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJames Zhu <James.Zhu@amd.com>2020-08-05 17:54:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-10-12 14:01:41 -0400
commitd5bc1579b0e3bdd3287acc5bc4bed1a3159847c8 (patch)
treeb106d66ef78b56227788d513f4de2712c2273f8b /drivers/gpu
parentdrm/amdkfd: Add kfd2kgd_funcs for dimgrey_cavefish kfd support (diff)
downloadlinux-d5bc1579b0e3bdd3287acc5bc4bed1a3159847c8.tar.gz
linux-d5bc1579b0e3bdd3287acc5bc4bed1a3159847c8.zip
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 <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-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: