Thanks for the fix. Reviewed-by: Evan Quan <evan.quan@xxxxxxx> > -----Original Message----- > From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex > Deucher > Sent: Thursday, December 5, 2019 11:09 AM > To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx> > Subject: [PATCH] drm/amdgpu: add header line for power profile on Arcturus > > So the output is consistent with other asics. > > Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > index 3f13986d8e50..199c96caa882 100644 > --- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > @@ -1320,12 +1320,17 @@ static int arcturus_get_power_profile_mode(struct > smu_context *smu, > "VR", > "COMPUTE", > "CUSTOM"}; > + static const char *title[] = { > + "PROFILE_INDEX(NAME)"}; > uint32_t i, size = 0; > int16_t workload_type = 0; > > if (!smu->pm_enabled || !buf) > return -EINVAL; > > + size += sprintf(buf + size, "%16s\n", > + title[0]); > + > for (i = 0; i <= PP_SMC_POWER_PROFILE_CUSTOM; i++) { > /* > * Conv PP_SMC_POWER_PROFILE* to > WORKLOAD_PPLIB_*_BIT > -- > 2.23.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.free > desktop.org%2Fmailman%2Flistinfo%2Famd- > gfx&data=02%7C01%7Cevan.quan%40amd.com%7C8ece9bd486934eac9b > db08d779308524%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637 > 111121703901932&sdata=lUZprYsTzq%2FcgwwXJIwaOnMf4583o8aUK8P5 > CYXYjrM%3D&reserved=0 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx