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>
Tue, 17 Sep 2019 19:41:13 +0000 (14:41 -0500)
commit8b8031703bd75ebedfcae59d64f8c0c006300bcb
treee41f51f1153383d3beff18089fd68ef3f2614e68
parentbb264220d9316f6bd7c1fd84b8da398c93912931
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