drm/amdgpu: enable VCN DPG for Renoir
authorThong Thai <thong.thai@amd.com>
Thu, 15 Aug 2019 18:00:30 +0000 (14:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:48:46 +0000 (17:48 -0500)
This will enable indirect SRAM loading for VCN DPG mode initialization.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 1a8ffed6b02c6499027d13e2ff815cf1febffb82..53f21c567e97fc872108e7a283458e1c9d7bbe86 100644 (file)
@@ -1174,7 +1174,9 @@ static int soc15_common_early_init(void *handle)
                                 AMD_CG_SUPPORT_ATHUB_LS |
                                 AMD_CG_SUPPORT_ATHUB_MGCG |
                                 AMD_CG_SUPPORT_DF_MGCG;
-               adev->pg_flags = AMD_PG_SUPPORT_SDMA;
+               adev->pg_flags = AMD_PG_SUPPORT_SDMA |
+                                AMD_PG_SUPPORT_VCN |
+                                AMD_PG_SUPPORT_VCN_DPG;
                adev->external_rev_id = adev->rev_id + 0x91;
 
                if (adev->pm.pp_feature & PP_GFXOFF_MASK)