2007-12-12 01:09:31

by Gary Hade

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


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 <[email protected]>
---

--- 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;
}