summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/include/kgd_pp_interface.h
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2023-08-29 19:38:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-09-26 17:00:23 -0400
commit10d9ee96ce058eea6b9bb670d2dff69694bb99d4 (patch)
treef6ef4eb091e20bb732a50301b7e8452fc6f5cd36 /drivers/gpu/drm/amd/include/kgd_pp_interface.h
parentca2ce4cc080e197b0374099b3e4b98bb14d4f273 (diff)
downloadlinux-10d9ee96ce058eea6b9bb670d2dff69694bb99d4.tar.gz
linux-10d9ee96ce058eea6b9bb670d2dff69694bb99d4.tar.bz2
linux-10d9ee96ce058eea6b9bb670d2dff69694bb99d4.zip
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: Le Ma <le.ma@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/kgd_pp_interface.h')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h8
1 files changed, 8 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 5a889f733462..e0bb6d39f0c3 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -265,6 +265,14 @@ enum pp_power_type
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_SHIFT 28