linux/arch
Bjorn Helgaas 2fe2abf896 PCI: augment bus resource table with a list
Previously we used a table of size PCI_BUS_NUM_RESOURCES (16) for resources
forwarded to a bus by its upstream bridge.  We've increased this size
several times when the table overflowed.

But there's no good limit on the number of resources because host bridges
and subtractive decode bridges can forward any number of ranges to their
secondary buses.

This patch reduces the table to only PCI_BRIDGE_RESOURCE_NUM (4) entries,
which corresponds to the number of windows a PCI-to-PCI (3) or CardBus (4)
bridge can positively decode.  Any additional resources, e.g., PCI host
bridge windows or subtractively-decoded regions, are kept in a list.

I'd prefer a single list rather than this split table/list approach, but
that requires simultaneous changes to every architecture.  This approach
only requires immediate changes where we set up (a) host bridges with more
than four windows and (b) subtractive-decode P2P bridges, and we can
incrementally change other architectures to use the list.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2010-02-23 09:43:37 -08:00
..
alpha resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
arm resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
avr32
blackfin
cris resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
frv resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
h8300
ia64 PCI: augment bus resource table with a list 2010-02-23 09:43:37 -08:00
m32r
m68k
m68knommu m68knommu: fix invalid flags on coldfire pit clocksource 2010-01-16 12:15:38 -08:00
microblaze microblaze: Invalidate dcache before enabling it 2010-02-08 11:39:18 +01:00
mips resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
mn10300 PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs 2010-02-23 09:43:31 -08:00
parisc resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
powerpc PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs 2010-02-23 09:43:31 -08:00
s390 [S390] Fix struct _lowcore layout. 2010-02-09 09:46:23 +01:00
score
sh resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
sparc resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
um
x86 PCI: augment bus resource table with a list 2010-02-23 09:43:37 -08:00
xtensa resource/PCI: mark struct resource as const 2010-02-22 16:16:57 -08:00
.gitignore
Kconfig