<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">Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</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 mikita.lipski@amd.com <mikita.lipski@amd.com><br>
<b>Sent:</b> Monday, May 28, 2018 11:36:17 AM<br>
<b>To:</b> Zhu, Rex; Deucher, Alexander; amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Lipski, Mikita; Wu, Hersen; Wentland, Harry<br>
<b>Subject:</b> [PATCH] drm/amd/pp: Add cases for getting phys and disp clks for SMU10</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Mikita Lipski <mikita.lipski@amd.com><br>
<br>
Add case options to retrieve either physical or display clocks with<br>
voltage from SMU controller that are needed by display driver.<br>
<br>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com><br>
---<br>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 6 ++++++<br>
1 file changed, 6 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c<br>
index 85f84f4..e160b05 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c<br>
@@ -1000,6 +1000,12 @@ static int smu10_get_clock_by_type_with_voltage(struct pp_hwmgr *hwmgr,<br>
case amd_pp_soc_clock:<br>
pclk_vol_table = pinfo->vdd_dep_on_socclk;<br>
break;<br>
+ case amd_pp_disp_clock:<br>
+ pclk_vol_table = pinfo->vdd_dep_on_dispclk;<br>
+ break;<br>
+ case amd_pp_phy_clock:<br>
+ pclk_vol_table = pinfo->vdd_dep_on_phyclk;<br>
+ break;<br>
default:<br>
return -EINVAL;<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>
</div>
</span></font></div>
</body>
</html>