drm/amd/pm: add support to umd P-state function for vangogh
authorXiaojian Du <Xiaojian.Du@amd.com>
Thu, 24 Dec 2020 10:04:30 +0000 (18:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:31:01 +0000 (11:31 -0500)
commitea173d15b2fda671b04c1de048238b02b8c139ac
treefdf5663b7ec0b6bbfaf5faff60c87adfb080b248
parentdd9e0b217686065bc82c7e6f75b4ab54710410d5
drm/amd/pm: add support to umd P-state function for vangogh

This patch is to add support to umd P-state function for vangogh.
It enables the "set" function of 3 sysfs nodes: pp_dpm_mclk,
pp_dpm_fclk, pp_dpm_socclk, the functions is used to set the DPM
frequency level of memclk/fclk/socclk.
Due to only after enabling the "power_dpm_force_performance_level"
sysfs node, it is allowed to set these three nodes,
so this patch also enables the "powe_dpm_force_performance_level"
sysfs node, which is used to change power profile.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c