summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-03-20 11:25:13 +0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 10:48:24 -0700
commita28724b0fb909d247229a70761c90bb37b13366a (patch)
tree7c5332004a8f52e676076b39aa03aeb45cb03f2a /drivers/pci/probe.c
parent8c5cdb6adc6688b9b8fd82ea4a5cf4674dabad79 (diff)
downloadblackbird-obmc-linux-a28724b0fb909d247229a70761c90bb37b13366a.tar.gz
blackbird-obmc-linux-a28724b0fb909d247229a70761c90bb37b13366a.zip
PCI: reserve bus range for SR-IOV device
Reserve the bus number range used by the Virtual Function when pcibios_assign_all_busses() returns true. Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 0471f6ea1466..0ecdaea3915f 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1085,6 +1085,9 @@ unsigned int __devinit pci_scan_child_bus(struct pci_bus *bus)
for (devfn = 0; devfn < 0x100; devfn += 8)
pci_scan_slot(bus, devfn);
+ /* Reserve buses for SR-IOV capability. */
+ max += pci_iov_bus_range(bus);
+
/*
* After performing arch-dependent fixup of the bus, look behind
* all PCI-to-PCI bridges on this bus.
OpenPOWER on IntegriCloud