Commit 10d9ee96 authored by Le Ma's avatar Le Ma Committed by Alex Deucher

drm/amd/pm: add plpd_mode in smu_context to indicate current mode

Add enum pp_xgmi_plpd_mode to describe PLPD policies.

v2: move the enum from amdgpu_smu.h to kgd_pp_interface.h
Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarAsad Kamal <asad.kamal@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ca2ce4cc
...@@ -265,6 +265,14 @@ enum pp_power_type ...@@ -265,6 +265,14 @@ enum pp_power_type
PP_PWR_TYPE_FAST, PP_PWR_TYPE_FAST,
}; };
enum pp_xgmi_plpd_mode {
XGMI_PLPD_NONE = -1,
XGMI_PLPD_DISALLOW,
XGMI_PLPD_DEFAULT,
XGMI_PLPD_OPTIMIZED,
XGMI_PLPD_COUNT,
};
#define PP_GROUP_MASK 0xF0000000 #define PP_GROUP_MASK 0xF0000000
#define PP_GROUP_SHIFT 28 #define PP_GROUP_SHIFT 28
......
...@@ -563,6 +563,8 @@ struct smu_context { ...@@ -563,6 +563,8 @@ struct smu_context {
u32 debug_resp_reg; u32 debug_resp_reg;
struct delayed_work swctf_delayed_work; struct delayed_work swctf_delayed_work;
enum pp_xgmi_plpd_mode plpd_mode;
}; };
struct i2c_adapter; struct i2c_adapter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment