diff mbox

x86/PCI: never allocate PCI MMIO resources below BIOS_END

Message ID 201004231705.25659.bjorn.helgaas@hp.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Bjorn Helgaas April 23, 2010, 11:05 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c
index 46fd43f..97da2ba 100644
--- a/arch/x86/pci/i386.c
+++ b/arch/x86/pci/i386.c
@@ -72,6 +72,9 @@  pcibios_align_resource(void *data, const struct resource *res,
 			return start;
 		if (start & 0x300)
 			start = (start + 0x3ff) & ~0x3ff;
+	} else if (res->flags & IORESOURCE_MEM) {
+		if (start < BIOS_END)
+			start = BIOS_END;
 	}
 	return start;
 }