<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Reviewed-by: Kevin Wang <kevin1.wang@amd.com></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best Regards,<br>
Kevin</p>
</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 Quan, Evan <Evan.Quan@amd.com><br>
<b>Sent:</b> Thursday, July 11, 2019 4:14:11 PM<br>
<b>To:</b> Feng, Kenneth; amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Feng, Kenneth<br>
<b>Subject:</b> RE: [PATCH] drm/amd/powerplay: bug fix for sysfs</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Reviewed-by: Evan Quan <evan.quan@amd.com><br>
<br>
> -----Original Message-----<br>
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of<br>
> Kenneth Feng<br>
> Sent: Thursday, July 11, 2019 3:45 PM<br>
> To: amd-gfx@lists.freedesktop.org<br>
> Cc: Feng, Kenneth <Kenneth.Feng@amd.com><br>
> Subject: [PATCH] drm/amd/powerplay: bug fix for sysfs<br>
> <br>
> when we set profile_peak to sysfs:power_dpm_force_performance_level,<br>
> we gets the wrong socclk level and mclk level.this patch fix this issue.<br>
> <br>
> Signed-off-by: Kenneth Feng <kenneth.feng@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++--<br>
> 1 file changed, 2 insertions(+), 2 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
> b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
> index 5ee6508..cd32b20 100644<br>
> --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
> +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
> @@ -1157,14 +1157,14 @@ static int navi10_get_profiling_clk_mask(struct<br>
> smu_context *smu,<br>
> ret = smu_get_dpm_level_count(smu, SMU_MCLK,<br>
> &level_count);<br>
> if (ret)<br>
> return ret;<br>
> - *sclk_mask = level_count - 1;<br>
> + *mclk_mask = level_count - 1;<br>
> }<br>
> <br>
> if(soc_mask) {<br>
> ret = smu_get_dpm_level_count(smu, SMU_SOCCLK,<br>
> &level_count);<br>
> if (ret)<br>
> return ret;<br>
> - *sclk_mask = level_count - 1;<br>
> + *soc_mask = level_count - 1;<br>
> }<br>
> }<br>
> <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><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>