aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/kgd_pp_interface.h
diff options
context:
space:
mode:
authorRex Zhu <[email protected]>2018-01-29 10:04:18 +0000
committerAlex Deucher <[email protected]>2018-02-19 19:19:44 +0000
commit6ab8555e04ecd2278fdca54c33a7ddac7d4ba5d2 (patch)
treef58109e970b10a250fdfdbbd57a3f4b4bac6a6a0 /drivers/gpu/drm/amd/include/kgd_pp_interface.h
parentamdgpu/dc: Fix enum mismatch in calls to program_color_matrix() (diff)
downloadkernel-6ab8555e04ecd2278fdca54c33a7ddac7d4ba5d2.tar.gz
kernel-6ab8555e04ecd2278fdca54c33a7ddac7d4ba5d2.zip
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 <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/include/kgd_pp_interface.h')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
index 4f69fe8ca371..22c2fa30731f 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -283,6 +283,8 @@ struct amd_pm_funcs {
uint32_t mc_addr_low,
uint32_t mc_addr_hi,
uint32_t size);
+ int (*set_power_limit)(void *handle, uint32_t n);
+ int (*get_power_limit)(void *handle, uint32_t *limit, bool default_limit);
/* export to DC */
u32 (*get_sclk)(void *handle, bool low);
u32 (*get_mclk)(void *handle, bool low);