Skip to content

Commit e678e75

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amd/pm: Use cached metrics data on SMUv13.0.6
Cached metrics data validity is 1ms on SMUv13.0.6 SOCs. It's not reasonable for any client to query gpu_metrics at a faster rate and constantly interrupt PMFW. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Asad Kamal <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8825dab commit e678e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2693,7 +2693,7 @@ static ssize_t smu_v13_0_6_get_gpu_metrics(struct smu_context *smu, void **table
26932693
bool per_inst;
26942694

26952695
metrics_v0 = kzalloc(METRICS_TABLE_SIZE, GFP_KERNEL);
2696-
ret = smu_v13_0_6_get_metrics_table(smu, metrics_v0, true);
2696+
ret = smu_v13_0_6_get_metrics_table(smu, metrics_v0, false);
26972697
if (ret) {
26982698
kfree(metrics_v0);
26992699
return ret;

0 commit comments

Comments
 (0)