Skip to content

Commit 948f279

Browse files
committed
drm/amdgpu/smu13.0.7: print index for profiles
Print the index for the profiles. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3543 Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit b86a6a5)
1 parent 8f61446 commit 948f279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ static int smu_v13_0_7_get_power_profile_mode(struct smu_context *smu, char *buf
23782378

23792379
size += sysfs_emit_at(buf, size, " ");
23802380
for (i = 0; i <= PP_SMC_POWER_PROFILE_WINDOW3D; i++)
2381-
size += sysfs_emit_at(buf, size, "%-14s%s", amdgpu_pp_profile_name[i],
2381+
size += sysfs_emit_at(buf, size, "%d %-14s%s", i, amdgpu_pp_profile_name[i],
23822382
(i == smu->power_profile_mode) ? "* " : " ");
23832383

23842384
size += sysfs_emit_at(buf, size, "\n");
@@ -2408,7 +2408,7 @@ static int smu_v13_0_7_get_power_profile_mode(struct smu_context *smu, char *buf
24082408
do { \
24092409
size += sysfs_emit_at(buf, size, "%-30s", #field); \
24102410
for (j = 0; j <= PP_SMC_POWER_PROFILE_WINDOW3D; j++) \
2411-
size += sysfs_emit_at(buf, size, "%-16d", activity_monitor_external[j].DpmActivityMonitorCoeffInt.field); \
2411+
size += sysfs_emit_at(buf, size, "%-18d", activity_monitor_external[j].DpmActivityMonitorCoeffInt.field); \
24122412
size += sysfs_emit_at(buf, size, "\n"); \
24132413
} while (0)
24142414

0 commit comments

Comments
 (0)