aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch
new file mode 100644
index 00000000..7eff2642
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1957-drm-amd-powerplay-drop-redundant-smu-call.patch
@@ -0,0 +1,34 @@
+From fb332dc954f96df13694ab273a79b4d48175da1a Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Mon, 13 May 2019 11:16:27 +0800
+Subject: [PATCH 1957/2940] drm/amd/powerplay: drop redundant smu call
+
+smu_get_clk_info_from_vbios() was called repeatedly. It
+seems a merge error.
+
+Change-Id: Ice22a171cbb976d0aebd6609344a10b008d18f14
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+index ed8840026e59..b119a276a977 100644
+--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+@@ -636,10 +636,6 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
+ * check if the format_revision in vbios is up to pptable header
+ * version, and the structure size is not 0.
+ */
+- ret = smu_get_clk_info_from_vbios(smu);
+- if (ret)
+- return ret;
+-
+ ret = smu_check_pptable(smu);
+ if (ret)
+ return ret;
+--
+2.17.1
+