<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">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Reviewed-by: Kevin Wang <kevin1.wang@amd.com></span><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 Le Ma <le.ma@amd.com><br>
<b>Sent:</b> Friday, August 9, 2019 7:26 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Ma, Le <Le.Ma@amd.com><br>
<b>Subject:</b> [PATCH 4/4] drm/amdgpu: enable mmhub clock gating for Arcturus</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Init MC_MGCG/LS flag. Also apply to athub CG.<br>
<br>
Change-Id: Ic00cb8e6d69eb75dd32f34f778352cee93063ee0<br>
Signed-off-by: Le Ma <le.ma@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 1 -<br>
 drivers/gpu/drm/amd/amdgpu/soc15.c      | 4 +++-<br>
 2 files changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
index e52e4d1..0cf7ef4 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c<br>
@@ -615,7 +615,6 @@ int mmhub_v9_4_set_clockgating(struct amdgpu_device *adev,<br>
         return 0;<br>
 }<br>
 <br>
-/* TODO: get 2 mmhub instances CG state */<br>
 void mmhub_v9_4_get_clockgating(struct amdgpu_device *adev, u32 *flags)<br>
 {<br>
         int data, data1;<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
index aecba1c..235cb5b 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c<br>
@@ -1126,7 +1126,9 @@ static int soc15_common_early_init(void *handle)<br>
                         AMD_CG_SUPPORT_HDP_MGCG |<br>
                         AMD_CG_SUPPORT_HDP_LS |<br>
                         AMD_CG_SUPPORT_SDMA_MGCG |<br>
-                       AMD_CG_SUPPORT_SDMA_LS;<br>
+                       AMD_CG_SUPPORT_SDMA_LS |<br>
+                       AMD_CG_SUPPORT_MC_MGCG |<br>
+                       AMD_CG_SUPPORT_MC_LS;<br>
                 adev->pg_flags = 0;<br>
                 adev->external_rev_id = adev->rev_id + 0x32;<br>
                 break;<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>