<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);">
Maybe mention that this fixes issues with stutter mode and 4k. With that,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-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 hersen wu <hersenxs.wu@amd.com><br>
<b>Sent:</b> Monday, April 15, 2019 9:52 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org; Feng, Kenneth<br>
<b>Cc:</b> Wu, Hersen<br>
<b>Subject:</b> [PATCH] SWDEV-183622 4k@60hz dp monitor always flicking</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[WHY] clock unit mis-match between caller DC and SMU interface.<br>
dc pass lock in mhz. the same unit as smu. no covert is needed.<br>
<br>
[HOW] remove covert_10k_to_mhz in smu interface<br>
<br>
Signed-off-by: hersen wu <hersenxs.wu@amd.com><br>
---<br>
.../gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 17 ++++++-----------<br>
1 file changed, 6 insertions(+), 11 deletions(-)<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 f32e3d0aaea6..078613348e78 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c<br>
@@ -204,18 +204,13 @@ static int smu10_set_clock_limit(struct pp_hwmgr *hwmgr, const void *input)<br>
return 0;<br>
}<br>
<br>
-static inline uint32_t convert_10k_to_mhz(uint32_t clock)<br>
-{<br>
- return (clock + 99) / 100;<br>
-}<br>
-<br>
static int smu10_set_min_deep_sleep_dcefclk(struct pp_hwmgr *hwmgr, uint32_t clock)<br>
{<br>
struct smu10_hwmgr *smu10_data = (struct smu10_hwmgr *)(hwmgr->backend);<br>
<br>
if (smu10_data->need_min_deep_sleep_dcefclk &&<br>
- smu10_data->deep_sleep_dcefclk != convert_10k_to_mhz(clock)) {<br>
- smu10_data->deep_sleep_dcefclk = convert_10k_to_mhz(clock);<br>
+ smu10_data->deep_sleep_dcefclk != clock) {<br>
+ smu10_data->deep_sleep_dcefclk = clock;<br>
smum_send_msg_to_smc_with_parameter(hwmgr,<br>
PPSMC_MSG_SetMinDeepSleepDcefclk,<br>
smu10_data->deep_sleep_dcefclk);<br>
@@ -228,8 +223,8 @@ static int smu10_set_hard_min_dcefclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t c<br>
struct smu10_hwmgr *smu10_data = (struct smu10_hwmgr *)(hwmgr->backend);<br>
<br>
if (smu10_data->dcf_actual_hard_min_freq &&<br>
- smu10_data->dcf_actual_hard_min_freq != convert_10k_to_mhz(clock)) {<br>
- smu10_data->dcf_actual_hard_min_freq = convert_10k_to_mhz(clock);<br>
+ smu10_data->dcf_actual_hard_min_freq != clock) {<br>
+ smu10_data->dcf_actual_hard_min_freq = clock;<br>
smum_send_msg_to_smc_with_parameter(hwmgr,<br>
PPSMC_MSG_SetHardMinDcefclkByFreq,<br>
smu10_data->dcf_actual_hard_min_freq);<br>
@@ -242,8 +237,8 @@ static int smu10_set_hard_min_fclk_by_freq(struct pp_hwmgr *hwmgr, uint32_t cloc<br>
struct smu10_hwmgr *smu10_data = (struct smu10_hwmgr *)(hwmgr->backend);<br>
<br>
if (smu10_data->f_actual_hard_min_freq &&<br>
- smu10_data->f_actual_hard_min_freq != convert_10k_to_mhz(clock)) {<br>
- smu10_data->f_actual_hard_min_freq = convert_10k_to_mhz(clock);<br>
+ smu10_data->f_actual_hard_min_freq != clock) {<br>
+ smu10_data->f_actual_hard_min_freq = clock;<br>
smum_send_msg_to_smc_with_parameter(hwmgr,<br>
PPSMC_MSG_SetHardMinFclkByFreq,<br>
smu10_data->f_actual_hard_min_freq);<br>
-- <br>
2.17.1<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>