aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch
new file mode 100644
index 00000000..071f6f33
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2158-drm-amdgpu-Remove-check-which-is-not-valid-for-certa.patch
@@ -0,0 +1,32 @@
+From 15eba745961f8d130bb566d1bc1669b185c2d297 Mon Sep 17 00:00:00 2001
+From: Ken Wang <Ken.Wang@amd.com>
+Date: Wed, 8 Nov 2017 14:48:50 +0800
+Subject: [PATCH 2158/4131] drm/amdgpu: Remove check which is not valid for
+ certain VBIOS
+
+Signed-off-by: Ken Wang <Ken.Wang@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+index b0b01c5..7c472ae 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+@@ -59,12 +59,6 @@ static bool check_atom_bios(uint8_t *bios, size_t size)
+ return false;
+ }
+
+- tmp = bios[0x18] | (bios[0x19] << 8);
+- if (bios[tmp + 0x14] != 0x0) {
+- DRM_INFO("Not an x86 BIOS ROM\n");
+- return false;
+- }
+-
+ bios_header_start = bios[0x48] | (bios[0x49] << 8);
+ if (!bios_header_start) {
+ DRM_INFO("Can't locate bios header\n");
+--
+2.7.4
+