drm/amd/pm: Increase cache interval time
Subsystems (3)
PATCH 1/1 drm/amd/pm: Increase cache interval time
Increase cache interval time to 50 ms while fetching system metrics table for smu_v13_0_12
Signed-off-by Asad Kamal <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1 -1
@@ -372,7 +372,7 @@ static int smu_v13_0_12_get_system_metrics_table(struct smu_context *smu, void *if (bypass_cache || !smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time ||time_after (jiffies, smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time + -msecs_to_jiffies (1 ))) { +msecs_to_jiffies (50 ))) { ret =smu_cmn_send_smc_msg (smu, SMU_MSG_GetSystemMetricsTable,NULL );if (ret) { dev_info(smu->adev->dev,
Signature · 1 line
2.46.0
Quoted 4 lines · Asad Kamal
Increase cache interval time to 50 ms while fetching system metrics table for
smu_v13_0_12Signed-off-by Asad Kamal <[email protected]>
You may add additional info in commit description like this data is expected to be polled less frequently.
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 17 lines
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1
-1@@ -372,7 +372,7 @@ static int smu_v13_0_12_get_system_metrics_table(struct smu_context *smu, void *if (bypass_cache || !smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time ||time_after (jiffies, smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time + -msecs_to_jiffies (1 ))) { +msecs_to_jiffies (50 ))) { ret =smu_cmn_send_smc_msg (smu, SMU_MSG_GetSystemMetricsTable,NULL );if (ret) { dev_info(smu->adev->dev,
Quoted 4 lines · Asad Kamal
Increase cache interval time to 50 ms while fetching system metrics table for
smu_v13_0_12
Can we move the caching up to the device independent level? It would be nice to have this for other GPUs.
Alex
Quoted 21 lines
Signed-off-by Asad Kamal <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +1
-2@@ -372,7 +372,7 @@ static int smu_v13_0_12_get_system_metrics_table(struct smu_context *smu, void *if (bypass_cache || !smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time ||time_after (jiffies, smu_table->tables[SMU_TABLE_TEMP_METRICS ].metrics_time + -msecs_to_jiffies (1 ))) { +msecs_to_jiffies (50 ))) { ret =smu_cmn_send_smc_msg (smu, SMU_MSG_GetSystemMetricsTable,NULL );if (ret) { dev_info(smu->adev->dev, --2.46.0