drm/amd/powerplay: change sysfs pp_dpm_xxx format for navi10
authorKevin Wang <kevin1.wang@amd.com>
Thu, 18 Jul 2019 07:46:55 +0000 (15:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:07 +0000 (14:18 -0500)
commitc49b1b59a2fa3fa6972afd7e216799f696e67fe5
tree31fcf744399e88fbf2ce973033974de68e774050
parent33c976c9612a8b414d56e1f591bc39bbacd18b9c
drm/amd/powerplay: change sysfs pp_dpm_xxx format for navi10

v2:
set average clock value on level 1 when current clock equal
min or max clock (fine grained dpm support).

the navi10 gfxclk (sclk) support fine grained DPM,
so use level 1 to show current dpm freq in sysfs pp_dpm_xxx

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c