aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch
new file mode 100644
index 00000000..f793e759
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3815-drm-amd-pp-Mark-bunches-of-functins-in-vega10_smumgr.patch
@@ -0,0 +1,82 @@
+From b5e26001fe9fe99b290eecb916f40a81725527b1 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Fri, 16 Mar 2018 13:56:18 +0800
+Subject: [PATCH 3815/4131] drm/amd/pp: Mark bunches of functins in
+ vega10_smumgr.c static
+
+Change-Id: Ic4ce930b906e60965bebb3a2bf7ecd859d044099
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 10 +++++-----
+ drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h | 3 ---
+ 2 files changed, 5 insertions(+), 8 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
+index b03a9a0..d40edd5 100644
+--- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
++++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
+@@ -101,7 +101,7 @@ static uint32_t vega10_wait_for_response(struct pp_hwmgr *hwmgr)
+ * @param msg the message to send.
+ * @return Always return 0.
+ */
+-int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr,
++static int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr,
+ uint16_t msg)
+ {
+ uint32_t reg;
+@@ -119,7 +119,7 @@ int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr,
+ * @param msg the message to send.
+ * @return Always return 0.
+ */
+-int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)
++static int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)
+ {
+ uint32_t reg;
+ uint32_t ret;
+@@ -146,7 +146,7 @@ int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)
+ * @param parameter: the parameter to send
+ * @return Always return 0.
+ */
+-int vega10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
++static int vega10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
+ uint16_t msg, uint32_t parameter)
+ {
+ uint32_t reg;
+@@ -266,7 +266,7 @@ int vega10_enable_smc_features(struct pp_hwmgr *hwmgr,
+ msg, feature_mask);
+ }
+
+-int vega10_get_smc_features(struct pp_hwmgr *hwmgr,
++static int vega10_get_smc_features(struct pp_hwmgr *hwmgr,
+ uint32_t *features_enabled)
+ {
+ if (features_enabled == NULL)
+@@ -289,7 +289,7 @@ static bool vega10_is_dpm_running(struct pp_hwmgr *hwmgr)
+ return false;
+ }
+
+-int vega10_set_tools_address(struct pp_hwmgr *hwmgr)
++static int vega10_set_tools_address(struct pp_hwmgr *hwmgr)
+ {
+ struct vega10_smumgr *priv =
+ (struct vega10_smumgr *)(hwmgr->smu_backend);
+diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h
+index 01b4f5b..1f7f137 100644
+--- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h
++++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h
+@@ -58,10 +58,7 @@ int vega10_copy_table_to_smc(struct pp_hwmgr *hwmgr,
+ uint8_t *table, int16_t table_id);
+ int vega10_enable_smc_features(struct pp_hwmgr *hwmgr,
+ bool enable, uint32_t feature_mask);
+-int vega10_get_smc_features(struct pp_hwmgr *hwmgr,
+- uint32_t *features_enabled);
+
+-int vega10_set_tools_address(struct pp_hwmgr *hwmgr);
+
+ #endif
+
+--
+2.7.4
+