aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch
new file mode 100644
index 00000000..2609d8c3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3114-drm-amd-powerplay-no-pptable-transfer-and-dpms-enabl.patch
@@ -0,0 +1,34 @@
+From 840b2107a5557d8bbf7e2e53a3cba82f7b9e9162 Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Tue, 23 Jul 2019 14:27:20 +0800
+Subject: [PATCH 3114/4256] drm/amd/powerplay: no pptable transfer and dpms
+ enabled with "dpm=0"
+
+Honor the 'dpm' module parameter setting on SW SMU routine as what
+we did on previous ASICs. SMU FW loading is still proceeded even
+with "dpm=0".
+
+Change-Id: I4e2bd434035c315391d0c0cbabb6ac8c6f23f239
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+index 416f9a837fa8..1d2d17aad861 100644
+--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+@@ -1083,6 +1083,9 @@ static int smu_hw_init(void *handle)
+ }
+ }
+
++ if (!smu->pm_enabled)
++ return 0;
++
+ ret = smu_feature_init_dpm(smu);
+ if (ret)
+ goto failed;
+--
+2.17.1
+