<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">
<p style="font-family:Arial;font-size:10pt;color:#317100;margin:15pt;" align="Left">
[AMD Public Use]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Series is:</div>
<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> Quan, Evan <Evan.Quan@amd.com><br>
<b>Sent:</b> Friday, June 5, 2020 2:07 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Quan, Evan <Evan.Quan@amd.com><br>
<b>Subject:</b> [PATCH 4/4] drm/amd/powerplay: use the same interval as PMFW on retrieving metrics table</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Current 100ms interval makes no sense. User gets outdated<br>
data due to this.<br>
<br>
Change-Id: Ie1d950285460443d493f1647463b68cbe4a5ec67<br>
Signed-off-by: Evan Quan <evan.quan@amd.com><br>
---<br>
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c         | 2 +-<br>
 drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c | 2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
index 25653f5f8d16..4cfb1efbc541 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c<br>
@@ -571,7 +571,7 @@ static int navi10_get_smu_metrics_data(struct smu_context *smu,<br>
 <br>
         mutex_lock(&smu->metrics_lock);<br>
         if (!smu_table->metrics_time ||<br>
-            time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) {<br>
+            time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) {<br>
                 ret = smu_update_table(smu,<br>
                                        SMU_TABLE_SMU_METRICS,<br>
                                        0,<br>
diff --git a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c<br>
index 13ec103575f9..78657696b427 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c<br>
@@ -557,7 +557,7 @@ static int sienna_cichlid_get_smu_metrics_data(struct smu_context *smu,<br>
 <br>
         mutex_lock(&smu->metrics_lock);<br>
         if (!smu_table->metrics_time ||<br>
-            time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) {<br>
+            time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) {<br>
                 ret = smu_update_table(smu,<br>
                                        SMU_TABLE_SMU_METRICS,<br>
                                        0,<br>
-- <br>
2.27.0<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>