mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch non-x86] PCI-PCI bridges fix
@ 2001-11-22 12:04 Ivan Kokshaysky
  2001-11-22 21:49 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Kokshaysky @ 2001-11-22 12:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Richard Henderson, linux-kernel

Bridge resources weren't added to the resource tree. This was
harmless for most real-life configurations (especially on Alpha),
but certainly it will be a problem with the hotplug stuff
(thinking of ES45).

Ivan.

--- 2.4.15p9/drivers/pci/setup-bus.c	Fri Oct  5 05:47:08 2001
+++ linux/drivers/pci/setup-bus.c	Wed Nov 21 20:16:24 2001
@@ -201,6 +201,16 @@ pbus_assign_resources(struct pci_bus *bu
 		b->resource[0]->end = ranges->io_end - 1;
 		b->resource[1]->end = ranges->mem_end - 1;
 
+		/* Add bridge resources to the resource tree. */
+		if (b->resource[0]->end > b->resource[0]->start &&
+		    request_resource(bus->resource[0], b->resource[0]) < 0)
+			printk(KERN_ERR "PCI: failed to reserve IO "
+					"for bus %d\n",	b->number);
+		if (b->resource[1]->end > b->resource[1]->start &&
+		    request_resource(bus->resource[1], b->resource[1]) < 0)
+			printk(KERN_ERR "PCI: failed to reserve MEM "
+					"for bus %d\n", b->number);
+
 		pci_setup_bridge(b);
 	}
 }

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

end of thread, other threads:[~2001-11-23 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22 12:04 [patch non-x86] PCI-PCI bridges fix Ivan Kokshaysky
2001-11-22 21:49 ` Paul Mackerras
2001-11-23 12:36   ` Ivan Kokshaysky

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

all inboxes | Powered by JetHome®