aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch
new file mode 100644
index 00000000..c3d78edf
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5510-drm-amd-pp-Refine-function-iceland_start_smu.patch
@@ -0,0 +1,46 @@
+From 584f1d962d639abcc17d0f8321894e3028d5c2c6 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Sat, 29 Sep 2018 13:28:20 +0800
+Subject: [PATCH 5510/5725] drm/amd/pp: Refine function iceland_start_smu
+
+if upload firmware failed, no matter how many times
+the function runs again, the same error will be encountered.
+so remove the duplicated code.
+
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c
+index 73aa368..c712d93 100644
+--- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c
++++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c
+@@ -234,22 +234,12 @@ static int iceland_start_smu(struct pp_hwmgr *hwmgr)
+ {
+ int result;
+
+- result = iceland_smu_upload_firmware_image(hwmgr);
+- if (result)
+- return result;
+- result = iceland_smu_start_smc(hwmgr);
+- if (result)
+- return result;
+-
+ if (!smu7_is_smc_ram_running(hwmgr)) {
+- pr_info("smu not running, upload firmware again \n");
+ result = iceland_smu_upload_firmware_image(hwmgr);
+ if (result)
+ return result;
+
+- result = iceland_smu_start_smc(hwmgr);
+- if (result)
+- return result;
++ iceland_smu_start_smc(hwmgr);
+ }
+
+ result = smu7_request_smu_load_fw(hwmgr);
+--
+2.7.4
+