[PATCH] drm/amdgpu: enable VCN PG and CG for yellow carp

Zhu, James James.Zhu at amd.com
Wed Jan 20 15:58:34 UTC 2021


[AMD Official Use Only - Internal Distribution Only]

Reviewed-by: James Zhu <James.Zhu at amd.com>


Thanks & Best Regards!


James Zhu

________________________________
From: Liu, Aaron <Aaron.Liu at amd.com>
Sent: Wednesday, January 20, 2021 2:51 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Ray <Ray.Huang at amd.com>; Zhang, Boyuan <Boyuan.Zhang at amd.com>; Zhu, James <James.Zhu at amd.com>; Liu, Leo <Leo.Liu at amd.com>; Liu, Aaron <Aaron.Liu at amd.com>
Subject: [PATCH] drm/amdgpu: enable VCN PG and CG for yellow carp

Enable VCN 3.0 PG and CG for Yellow Carp by setting up flags.

Signed-off-by: Aaron Liu <aaron.liu at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/nv.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index 801cf79353dd..903e1ae166c5 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -1020,9 +1020,13 @@ static int nv_common_early_init(void *handle)
                         AMD_CG_SUPPORT_HDP_LS |
                         AMD_CG_SUPPORT_ATHUB_MGCG |
                         AMD_CG_SUPPORT_ATHUB_LS |
-                       AMD_CG_SUPPORT_IH_CG;
+                       AMD_CG_SUPPORT_IH_CG |
+                       AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
                 adev->pg_flags = AMD_PG_SUPPORT_GFX_PG |
-                       AMD_PG_SUPPORT_VCN_DPG;
+                       AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_JPEG;
                 adev->external_rev_id = adev->rev_id + 0x01;
                 break;
         default:
--
2.25.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210120/e2ca398c/attachment-0001.htm>


More information about the amd-gfx mailing list