<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#317100;margin:15pt;" align="Left">
[AMD Public Use]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Zhang, Boyuan <Boyuan.Zhang@amd.com><br>
<b>Sent:</b> Friday, October 16, 2020 7:28 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> [PATCH] drm/amdgpu: enable VCN PG and CG for vangogh</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<p align="Left" style="font-family:Arial; font-size:10pt; color:#0078D7; margin:15pt">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<p align="Left" style="font-family:Arial; font-size:10pt; color:#0078D7; margin:15pt">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>Enable VCN 3.0 PG and CG for Vangogh by setting up flags.
<div><br>
</div>
<div>Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com></div>
<div>---</div>
<div> drivers/gpu/drm/amd/amdgpu/nv.c | 9 +++++++--</div>
<div> 1 file changed, 7 insertions(+), 2 deletions(-)</div>
<div><br>
</div>
<div>diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c</div>
<div>index 4b1a4acb60d9..ce787489aaeb 100644</div>
<div>--- a/drivers/gpu/drm/amd/amdgpu/nv.c</div>
<div>+++ b/drivers/gpu/drm/amd/amdgpu/nv.c</div>
<div>@@ -938,8 +938,13 @@ static int nv_common_early_init(void *handle)</div>
<div> adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |</div>
<div> AMD_CG_SUPPORT_GFX_CGLS |</div>
<div> AMD_CG_SUPPORT_GFX_3D_CGCG |</div>
<div>- AMD_CG_SUPPORT_GFX_3D_CGLS;</div>
<div>- adev->pg_flags = AMD_PG_SUPPORT_GFX_PG;</div>
<div>+ AMD_CG_SUPPORT_GFX_3D_CGLS |</div>
<div>+ AMD_CG_SUPPORT_VCN_MGCG |</div>
<div>+ AMD_CG_SUPPORT_JPEG_MGCG;</div>
<div>+ adev->pg_flags = AMD_PG_SUPPORT_GFX_PG |</div>
<div>+ AMD_PG_SUPPORT_VCN |</div>
<div>+ AMD_PG_SUPPORT_VCN_DPG |</div>
<div>+ AMD_PG_SUPPORT_JPEG;</div>
<div> adev->external_rev_id = adev->rev_id + 0x01;</div>
<div> break;</div>
<div>-- </div>
2.25.1<br>
</div>
</div>
</div>
</div>
</body>
</html>