drm/amd/powerplay: support retrieving and adjusting fclock power levels V2
authorEvan Quan <evan.quan@amd.com>
Mon, 14 Jan 2019 07:44:44 +0000 (15:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2019 21:15:34 +0000 (16:15 -0500)
commit828e37efe802ba8c868922af23099638fde5b7b4
tree6860d47f01d20d92cfe804fe970f0c8b61422177
parentd7337ca2640cde21ff178bd78f01d94cd5ea2e08
drm/amd/powerplay: support retrieving and adjusting fclock power levels V2

User can use "pp_dpm_fclk" to retrieve and adjust fclock power
levels.

V2: expose this interface for Vega20 and later ASICs only

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c