summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2015-11-19 13:46:01 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 16:42:40 -0500
commit73c9f222889986d6f0ba0708115337a0284a5b61 (patch)
tree1cd19c4c0bc71e67a8e8c53bb2fdf25391faf412
parent9c97e75f0fe6f98285127fb0424862087916e83f (diff)
downloadlinux-73c9f222889986d6f0ba0708115337a0284a5b61.tar.bz2
drm/amd/powerplay: add new function point in hwmgr.
1. for set_cpu_power_state 2. restore display configuration Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/hwmgr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
index e115a071b5d0..238d1629bdc4 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
@@ -312,6 +312,10 @@ struct pp_hwmgr_func {
const struct pp_hw_power_state *pstate1,
const struct pp_hw_power_state *pstate2,
bool *equal);
+ int (*set_cpu_power_state)(struct pp_hwmgr *hwmgr);
+ int (*store_cc6_data)(struct pp_hwmgr *hwmgr, uint32_t separation_time,
+ bool cc6_disable, bool pstate_disable,
+ bool pstate_switch_disable);
};
struct pp_table_func {
@@ -575,7 +579,7 @@ struct pp_hwmgr {
const struct pp_hwmgr_func *hwmgr_func;
const struct pp_table_func *pptable_func;
struct pp_power_state *ps;
- enum pp_power_source power_source;
+ enum pp_power_source power_source;
uint32_t num_ps;
struct pp_thermal_controller_info thermal_controller;
bool fan_ctrl_is_in_default_mode;