diff options
author | Ken Wang <Ken.Wang@amd.com> | 2017-11-08 01:48:50 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-09 18:10:42 -0500 |
commit | ab6613b7eaefe85dadfc86025e901c55d71c0379 (patch) | |
tree | 771cc39f6e5bcb46b385a2d234f27c1a87ae54b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | |
parent | a9386bb051931778436db3dd6e3a163f7db92b56 (diff) |
drm/amdgpu: Remove check which is not valid for certain VBIOS
Fixes vbios fetching on certain headless boards.
Signed-off-by: Ken Wang <Ken.Wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c index c21adf60a7f2..057e1ecd83ce 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) | |||
59 | return false; | 59 | return false; |
60 | } | 60 | } |
61 | 61 | ||
62 | tmp = bios[0x18] | (bios[0x19] << 8); | ||
63 | if (bios[tmp + 0x14] != 0x0) { | ||
64 | DRM_INFO("Not an x86 BIOS ROM\n"); | ||
65 | return false; | ||
66 | } | ||
67 | |||
68 | bios_header_start = bios[0x48] | (bios[0x49] << 8); | 62 | bios_header_start = bios[0x48] | (bios[0x49] << 8); |
69 | if (!bios_header_start) { | 63 | if (!bios_header_start) { |
70 | DRM_INFO("Can't locate bios header\n"); | 64 | DRM_INFO("Can't locate bios header\n"); |