[PATCH] PCI: Restore PCI expansion ROM P2P prefetch window creation

From: Gary Hade
Date: Tue Dec 11 2007 - 20:09:33 EST



Restore PCI expansion ROM P2P prefetch window creation.

This patch reverts previous "Avoid creating P2P prefetch
window for expansion ROMs" change due to regressions that
were spotted on some systems.

Signed-off-by: Gary Hade <garyhade@xxxxxxxxxx>
---

--- linux-2.6.24-rc5/drivers/pci/probe.c.orig 2007-12-11 10:16:04.000000000 -0800
+++ linux-2.6.24-rc5/drivers/pci/probe.c 2007-12-11 09:57:11.000000000 -0800
@@ -276,7 +276,8 @@ static void pci_read_bases(struct pci_de
sz = pci_size(l, sz, (u32)PCI_ROM_ADDRESS_MASK);
if (sz) {
res->flags = (l & IORESOURCE_ROM_ENABLE) |
- IORESOURCE_MEM | IORESOURCE_READONLY;
+ IORESOURCE_MEM | IORESOURCE_PREFETCH |
+ IORESOURCE_READONLY | IORESOURCE_CACHEABLE;
res->start = l & PCI_ROM_ADDRESS_MASK;
res->end = res->start + (unsigned long) sz;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/