aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch
new file mode 100644
index 00000000..b0f1f074
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1349-drm-amd-powerplay-add-interfaces-for-smu-resume.patch
@@ -0,0 +1,44 @@
+From 68f2d90fe9bcc2cccc3039b15ab3b4f54729f95c Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Thu, 10 Jan 2019 23:58:08 +0800
+Subject: [PATCH 1349/2940] drm/amd/powerplay: add interfaces for smu resume
+
+SMU resume needs three more interfaces such as write_watermarks_table,
+set_last_dcef_min_deep_sleep_clk, and system_features_control.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+index 46f0d178543f..b08c0c918491 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+@@ -49,6 +49,9 @@ struct smu_funcs
+ int (*set_min_dcef_deep_sleep)(struct smu_context *smu);
+ int (*set_tool_table_location)(struct smu_context *smu);
+ int (*notify_memory_pool_location)(struct smu_context *smu);
++ int (*write_watermarks_table)(struct smu_context *smu);
++ int (*set_last_dcef_min_deep_sleep_clk)(struct smu_context *smu);
++ int (*system_features_control)(struct smu_context *smu, bool en);
+ };
+
+ #define smu_init_microcode(smu) \
+@@ -81,6 +84,12 @@ struct smu_funcs
+ ((smu)->funcs->set_tool_table_location ? (smu)->funcs->set_tool_table_location((smu)) : 0)
+ #define smu_notify_memory_pool_location(smu) \
+ ((smu)->funcs->notify_memory_pool_location ? (smu)->funcs->notify_memory_pool_location((smu)) : 0)
++#define smu_write_watermarks_table(smu) \
++ ((smu)->funcs->write_watermarks_table ? (smu)->funcs->write_watermarks_table((smu)) : 0)
++#define smu_set_last_dcef_min_deep_sleep_clk(smu) \
++ ((smu)->funcs->set_last_dcef_min_deep_sleep_clk ? (smu)->funcs->set_last_dcef_min_deep_sleep_clk((smu)) : 0)
++#define smu_system_features_control(smu, en) \
++ ((smu)->funcs->system_features_control ? (smu)->funcs->system_features_control((smu), (en)) : 0)
+
+
+ extern const struct amd_ip_funcs smu_ip_funcs;
+--
+2.17.1
+