aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch
new file mode 100644
index 00000000..46a323e1
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3221-drm-amd-pp-Add-hwmgr-interface-for-edit-dpm-table.patch
@@ -0,0 +1,51 @@
+From 2fd3017741f57a316722d01309746d1dba9aed2f Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Thu, 11 Jan 2018 15:02:15 +0800
+Subject: [PATCH 3221/4131] drm/amd/pp: Add hwmgr interface for edit dpm table
+
+Add odn_edit_dpm_table function
+points for setting user assigned clock/voltage.
+
+Change-Id: I29d336123d1a78384b74b54d34f34f1e60dc5f51
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/include/kgd_pp_interface.h | 7 +++++++
+ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 3 +++
+ 2 files changed, 10 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+index 103837c..e35dcd0 100644
+--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
++++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+@@ -161,6 +161,13 @@ enum {
+ PP_GROUP_MAX
+ };
+
++enum PP_OD_DPM_TABLE_COMMAND {
++ PP_OD_EDIT_SCLK_VDDC_TABLE,
++ PP_OD_EDIT_MCLK_VDDC_TABLE,
++ PP_OD_RESTORE_DEFAULT_TABLE,
++ PP_OD_COMMIT_DPM_TABLE
++};
++
+ struct pp_states_info {
+ uint32_t nums;
+ uint32_t states[16];
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+index 7caab09..604a7cb 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+@@ -345,6 +345,9 @@ struct pp_hwmgr_func {
+ struct PP_TemperatureRange *range);
+ int (*get_power_profile_mode)(struct pp_hwmgr *hwmgr, char *buf);
+ int (*set_power_profile_mode)(struct pp_hwmgr *hwmgr, long *input, uint32_t size);
++ int (*odn_edit_dpm_table)(struct pp_hwmgr *hwmgr,
++ enum PP_OD_DPM_TABLE_COMMAND type,
++ long *input, uint32_t size);
+ };
+
+ struct pp_table_func {
+--
+2.7.4
+