aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch
new file mode 100644
index 00000000..7fd64062
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2848-drm-amdgpu-discovery-fix-DCE_HWIP-mapping-error-in-h.patch
@@ -0,0 +1,33 @@
+From 1580f54f8a1d6b20e054a81fbb282c8213eeec32 Mon Sep 17 00:00:00 2001
+From: tiancyin <tianci.yin@amd.com>
+Date: Thu, 11 Jul 2019 14:09:50 +0800
+Subject: [PATCH 2848/2940] drm/amdgpu/discovery: fix DCE_HWIP mapping error in
+ hw_id_map array
+
+ID of DCE_HWIP from vbios is DMU_HWID,
+mismatch cause null pointer crash in navi10 modprobe.
+
+Change-Id: I3be363cf5248de904b3bdae2f34d3bbe0bbbc07d
+Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
+Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
+Signed-off-by: tiancyin <tianci.yin@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+index e049ae6a76fb..1481899f86c1 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+@@ -123,7 +123,7 @@ static int hw_id_map[MAX_HWIP] = {
+ [UVD_HWIP] = UVD_HWID,
+ [VCE_HWIP] = VCE_HWID,
+ [DF_HWIP] = DF_HWID,
+- [DCE_HWIP] = DCEAZ_HWID,
++ [DCE_HWIP] = DMU_HWID,
+ [OSSSYS_HWIP] = OSSSYS_HWID,
+ [SMUIO_HWIP] = SMUIO_HWID,
+ [PWR_HWIP] = PWR_HWID,
+--
+2.17.1
+