Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Kevin Wang and committed by
Alex Deucher
64e51a1b c18cc2bb

+1 -1
+1 -1
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
··· 548 548 struct smu_table_context *smu_table= &smu->smu_table; 549 549 int ret = 0; 550 550 551 - if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + HZ / 1000)) { 551 + if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) { 552 552 ret = smu_update_table(smu, SMU_TABLE_SMU_METRICS, 0, 553 553 (void *)smu_table->metrics_table, false); 554 554 if (ret) {