summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/ofw_pcibus.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-04-17 12:38:00 +0000
committermarius <marius@FreeBSD.org>2008-04-17 12:38:00 +0000
commit3215bc9d5f31c44edeb0a319c1456140986ac1de (patch)
tree646b5b1dcb4b90320e3790b627d5df68e35cf191 /sys/sparc64/pci/ofw_pcibus.c
parentb11f9dd52aac5645107b2d8cb24361e9495b17d6 (diff)
downloadFreeBSD-src-3215bc9d5f31c44edeb0a319c1456140986ac1de.zip
FreeBSD-src-3215bc9d5f31c44edeb0a319c1456140986ac1de.tar.gz
On sparc64 machines with multiple host-PCI-bridges these bridges
have separate configuration spaces so by definition they implement different PCI domains. Thus change psycho(4) to use PCI domains instead of reenumerating all PCI busses so they have globally unique bus numbers and drop support for reenumerating busses in the OFW PCI code. According to CVS history reenumeration was also required in order to get some E450 to boot but given that no other open source kernel changes the PCI bus numbers assigned by the firmware I believe the real problem was that the old code used the bus number as the device number for the PCI busses and unlike most of the other machines the firmwares of the problematic ones don't use disjoint PCI bus numbers across the host-PCI-bridges. MFC after: 1 month
Diffstat (limited to 'sys/sparc64/pci/ofw_pcibus.c')
-rw-r--r--sys/sparc64/pci/ofw_pcibus.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c
index f771389..b9b9fed 100644
--- a/sys/sparc64/pci/ofw_pcibus.c
+++ b/sys/sparc64/pci/ofw_pcibus.c
@@ -179,10 +179,6 @@ ofw_pcibus_attach(device_t dev)
pcib = device_get_parent(dev);
domain = pcib_get_domain(dev);
- /*
- * Ask the bridge for the bus number - in some cases, we need to
- * renumber buses, so the firmware information cannot be trusted.
- */
busno = pcib_get_bus(dev);
if (bootverbose)
device_printf(dev, "domain=%d, physical bus=%d\n",
OpenPOWER on IntegriCloud