From: Gary Hade Date: Wed, 12 Dec 2007 01:09:13 +0000 (-0800) Subject: PCI: Restore PCI expansion ROM P2P prefetch window creation X-Git-Tag: v2.6.24-rc6~58^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bb44609361fe87c5e136c2b8dfde59bcbdbabf61;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index c2f8a78c894..2f75d695eed 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -276,7 +276,8 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) 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; }