summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wang <kevin1.wang@amd.com>2019-09-26 16:16:41 +0800
committerKevin Wang <kevin1.wang@amd.com>2019-09-27 19:19:23 +0800
commit3e5c563c7c5bf13a3844b3e84d1200fb8da0d3ba (patch)
treeb67f291f25ee7f3a7daf16bc6e63a32a0492f293
parentf64f84b4ba7ab64b268bb159f027f2ec5d69b13e (diff)
drm/amd/powerplay: change metrics update period from 1ms to 100ms
v2: change period from 10ms to 100ms (typo error) too high frequence to update mertrics table will cause smu firmware error,so change mertrics table update period from 1ms to 100ms (navi10, 12, 14) Signed-off-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/navi10_ppt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
index 9b65ad784bcf..6d34cbdf242b 100644
--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
@@ -532,7 +532,7 @@ static int navi10_get_metrics_table(struct smu_context *smu,
struct smu_table_context *smu_table= &smu->smu_table;
int ret = 0;
- if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + HZ / 1000)) {
+ if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) {
ret = smu_update_table(smu, SMU_TABLE_SMU_METRICS,
(void *)smu_table->metrics_table, false);
if (ret) {