Commit e3439895 authored by Dave Airlie's avatar Dave Airlie

drm/radeon/kms: check for valid PCI bios and not OF rom

stops us trying to treat a OF rom as a PCI rom.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 03047cdf
...@@ -411,6 +411,12 @@ bool radeon_get_bios(struct radeon_device *rdev) ...@@ -411,6 +411,12 @@ bool radeon_get_bios(struct radeon_device *rdev)
goto free_bios; goto free_bios;
} }
tmp = RBIOS16(0x18);
if (RBIOS8(tmp + 0x14) != 0x0) {
DRM_INFO("Not an x86 BIOS ROM, not using.\n");
goto free_bios;
}
rdev->bios_header_start = RBIOS16(0x48); rdev->bios_header_start = RBIOS16(0x48);
if (!rdev->bios_header_start) { if (!rdev->bios_header_start) {
goto free_bios; goto free_bios;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment