drm/amd/pp: Implement get_performance_level for legacy dgpu
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 5 Jul 2018 11:22:50 +0000 (19:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:47 +0000 (11:09 -0500)
commitf688b614b64368ce1681f28cb6f2ff53e1eb8462
tree4a3b93db51ff3c3a45c66c58836bbd70a292faba
parent65f7260b135669bb1da72969ca8aad5c2fc4a300
drm/amd/pp: Implement get_performance_level for legacy dgpu

display can get clock info through this function.
implement this function for vega10 and old asics.
from vega12, there is no power state management,
so need to add new interface to notify display
the clock info

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c