Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: Check bridge secondary/subordinate bus register
@ 2012-09-11  0:19 Yinghai Lu
  2012-09-11  3:03 ` Ram Pai
  2012-09-18 22:54 ` Bjorn Helgaas
  0 siblings, 2 replies; 5+ messages in thread
From: Yinghai Lu @ 2012-09-11  0:19 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: VL, linux-pci, Yinghai Lu, stable

Intel DP43BF requires "pci=assign-busses" to discover some devices.

It turns out BIOS set the bridge 00:1e.0 bus register wrong.

Try to check that wrong range and reject so next pass could only assign
bus for that bridge.

	https://bugzilla.kernel.org/show_bug.cgi?id=18412

Reported-by: VL <vl.homutov@gmail.com>
Tested-by: VL <vl.homutov@gmail.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: stable@vger.kernel.org

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 3cdba8b..a8f1bf6 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -729,7 +729,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
 
 	/* Check if setup is sensible at all */
 	if (!pass &&
-	    (primary != bus->number || secondary <= bus->number)) {
+	    (primary != bus->number || secondary <= bus->number ||
+	     secondary > subordinate)) {
 		dev_dbg(&dev->dev, "bus configuration invalid, reconfiguring\n");
 		broken = 1;
 	}

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-19 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-11  0:19 [PATCH] PCI: Check bridge secondary/subordinate bus register Yinghai Lu
2012-09-11  3:03 ` Ram Pai
2012-09-18 22:54 ` Bjorn Helgaas
2012-09-18 23:55   ` Yinghai Lu
2012-09-19 13:56     ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox