drm/amd/pm: add support to umd P-state "fetch" function for vangogh
authorXiaojian Du <Xiaojian.Du@amd.com>
Tue, 15 Dec 2020 08:41:26 +0000 (16:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:29:48 +0000 (11:29 -0500)
commitae7b32e7c30268196e1b3c61e0dcb50b4e842f39
tree8351fd663c36f0cd79b1ea9ff6e5cae59504d47f
parent23289a221a632fa133cc5159ddcec051ca545b13
drm/amd/pm: add support to umd P-state "fetch" function for vangogh

This patch is to add supoort to umd P-state function for vangogh.
It enables the "fetch" function of 3 sysfs nodes: pp_dpm_mclk,
pp_dpm_fclk, pp_dpm_socclk,the function is used to fetch
the current frequency of memclk/fclk/socclk.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c