Message ID | 20090626174418.GX19977@parisc-linux.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | kyle mcmartin |
Headers | show |
On Fri, Jun 26, 2009 at 11:44:18AM -0600, Matthew Wilcox wrote: > > > Hardware is HP j6000. > > > It cannot initialize many PCI devices (sym53c8xx, tulip, STI, > > > usb(onci)) and cannot boot (no root device). > > > Messages like this: > > > sym53c8xx 0:0:0f.0: device not available because of BAR 1 [0xf4005000 > > > - 0xf40053ff] collisions. > > > > I'm pretty sure this is a problem of the root bus resources not getting > > setup correctly. I'm not clear on what's wrong. jejb and willy are looking > > at it now as well. > > This patch fixes it for me. > obviously correct, applied and pushed out. thanks, kyle -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index d46dd57..123d8fe 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c @@ -2057,6 +2057,7 @@ void sba_directed_lmmio(struct parisc_device *pci_hba, struct resource *r) r->start = (base & ~1UL) | PCI_F_EXTEND; size = ~ READ_REG32(reg + LMMIO_DIRECT0_MASK); r->end = r->start + size; + r->flags = IORESOURCE_MEM; } } @@ -2093,4 +2094,5 @@ void sba_distributed_lmmio(struct parisc_device *pci_hba, struct resource *r ) size = (~READ_REG32(sba->sba_hpa + LMMIO_DIST_MASK)) / ROPES_PER_IOC; r->start += rope * (size + 1); /* adjust base for this rope */ r->end = r->start + size; + r->flags = IORESOURCE_MEM; }