aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch
new file mode 100644
index 00000000..aaeb3a93
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1545-drm-amd-powerplay-fix-raven-issue-for-sw-smu.patch
@@ -0,0 +1,30 @@
+From 8634195c347d209836bc3a9cf342a79ab72779ea Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Wed, 27 Feb 2019 18:51:01 +0800
+Subject: [PATCH 1545/2940] drm/amd/powerplay: fix raven issue for sw smu
+
+Raven series doesn't support sw smu so far, so we have to add checking to
+confirm it return false while the asic is raven.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Likun Gao <Likun.Gao@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+index fe2f7e2abe35..00b7c885772b 100644
+--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+@@ -138,7 +138,7 @@ bool is_support_sw_smu(struct amdgpu_device *adev)
+ if (amdgpu_dpm != 1)
+ return false;
+
+- if (adev->asic_type >= CHIP_VEGA20)
++ if (adev->asic_type >= CHIP_VEGA20 && adev->asic_type != CHIP_RAVEN)
+ return true;
+
+ return false;
+--
+2.17.1
+