Commit 80c5a807 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add header line for power profile on Arcturus

So the output is consistent with other asics.
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a5a4d68c
...@@ -1320,12 +1320,17 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu, ...@@ -1320,12 +1320,17 @@ static int arcturus_get_power_profile_mode(struct smu_context *smu,
"VR", "VR",
"COMPUTE", "COMPUTE",
"CUSTOM"}; "CUSTOM"};
static const char *title[] = {
"PROFILE_INDEX(NAME)"};
uint32_t i, size = 0; uint32_t i, size = 0;
int16_t workload_type = 0; int16_t workload_type = 0;
if (!smu->pm_enabled || !buf) if (!smu->pm_enabled || !buf)
return -EINVAL; return -EINVAL;
size += sprintf(buf + size, "%16s\n",
title[0]);
for (i = 0; i <= PP_SMC_POWER_PROFILE_CUSTOM; i++) { for (i = 0; i <= PP_SMC_POWER_PROFILE_CUSTOM; i++) {
/* /*
* Conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT * Conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment