drm/amd/powerplay: implement sysfs for getting dpm clock
authorPrike Liang <Prike.Liang@amd.com>
Wed, 4 Sep 2019 08:34:39 +0000 (16:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:49:19 +0000 (17:49 -0500)
commit6ab3b9e3139309243bcc07d396eff24cc0c0e419
treea4ed7441ba020f2608e88959bfc4863c3e5c63fe
parent337c200756b40681a46bbdc0e0cde88775474344
drm/amd/powerplay: implement sysfs for getting dpm clock

With the common interface print_clk_levels can get the following dpm clock:

-pp_dpm_dcefclk
-pp_dpm_fclk
-pp_dpm_mclk
-pp_dpm_sclk
-pp_dpm_socclk

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/renoir_ppt.c
drivers/gpu/drm/amd/powerplay/renoir_ppt.h