drm/amd/pp: Expose set/get_power_limit for DGPU
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 29 Jan 2018 10:04:18 +0000 (18:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:44 +0000 (14:19 -0500)
commit6ab8555e04ecd2278fdca54c33a7ddac7d4ba5d2
treef58109e970b10a250fdfdbbd57a3f4b4bac6a6a0
parent71d0a89812c9749fbb48c633f91512d51433989e
drm/amd/pp: Expose set/get_power_limit for DGPU

User can change power limit between
[0, 1] * max power limit.

Set power limit to 0, restore to max power limit.

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/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h