diff options
author | Yu Zhao <yu.zhao@intel.com> | 2009-03-20 11:25:13 +0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-20 10:48:24 -0700 |
commit | a28724b0fb909d247229a70761c90bb37b13366a (patch) | |
tree | 7c5332004a8f52e676076b39aa03aeb45cb03f2a /drivers/pci/probe.c | |
parent | 8c5cdb6adc6688b9b8fd82ea4a5cf4674dabad79 (diff) | |
download | op-kernel-dev-a28724b0fb909d247229a70761c90bb37b13366a.zip op-kernel-dev-a28724b0fb909d247229a70761c90bb37b13366a.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 0471f6e..0ecdaea 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. |