<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);">
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 Evan Quan <evan.quan@amd.com><br>
<b>Sent:</b> Monday, April 29, 2019 4:56 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Deucher, Alexander; Quan, Evan<br>
<b>Subject:</b> [PATCH] drm/amd/powerplay: enable ppfeaturemask module parameter support on Vega20</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Support DPM/DS/ULV related bitmasks of ppfeaturemask module parameter.<br>
<br>
Change-Id: I6b75becf8d39105189b30be41b58ec7d4425f356<br>
Signed-off-by: Evan Quan <evan.quan@amd.com><br>
---<br>
 .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c    | 21 +++++++++++++++++++<br>
 1 file changed, 21 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
index 91e26f8b3758..d7873df484a4 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
@@ -97,6 +97,27 @@ static void vega20_set_default_registry_data(struct pp_hwmgr *hwmgr)<br>
         if (hwmgr->smu_version < 0x282100)<br>
                 data->registry_data.disallowed_features |= FEATURE_ECC_MASK;<br>
 <br>
+       if (!(hwmgr->feature_mask & PP_PCIE_DPM_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DPM_LINK_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_SCLK_DPM_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DPM_GFXCLK_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_SOCCLK_DPM_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DPM_SOCCLK_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_MCLK_DPM_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DPM_UCLK_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_DCEFCLK_DPM_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DPM_DCEFCLK_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_ULV_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_ULV_MASK;<br>
+<br>
+       if (!(hwmgr->feature_mask & PP_SCLK_DEEP_SLEEP_MASK))<br>
+               data->registry_data.disallowed_features |= FEATURE_DS_GFXCLK_MASK;<br>
+<br>
         data->registry_data.od_state_in_dc_support = 0;<br>
         data->registry_data.thermal_support = 1;<br>
         data->registry_data.skip_baco_hardware = 0;<br>
-- <br>
2.21.0<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>