public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MAX_MP_BUSSES increase
@ 2001-12-20  4:28 James Cleverdon
  2001-12-20  5:55 ` Linus Torvalds
  2001-12-26 15:43 ` Marcelo Tosatti
  0 siblings, 2 replies; 13+ messages in thread
From: James Cleverdon @ 2001-12-20  4:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds, Marcelo Tosatti

We've run into a bit of a problem with a forthcoming system.  The BIOS 
reserves so many PCI bus numbers for hotplug when maxed out PCI expansion 
box(es) are present that some arrays (mp_bus_id_to_node[], 
mp_bus_id_to_pci_bus[], etc) overflow, splattering important variables.

They've been predicting the time when 256 PCI busses are not enough for some 
time now.  We've nearly hit that point.  Meanwhile, here's a patch to boost 
MAX_MP_BUSSES from 32 to the max, plus one more for ISA.

Some folks might think that this is excessive, but the BIOS is adding 50 bus 
records to the tables just for a quad computer and one fully loaded PCI 
expansion box.  (You can buy extra PCI slots in units of 6.)  The thing is 
supposed to support 3 expansion boxes soon.  The NUMA version of this, coming 
out next year, has the potential to be even more extreme:  4 quads with 3 
expansion boxes each == a whole lot of PCI slots, each of which needs its own 
PCI bus number in case someone hotplugs in a quad ethernet card or some other 
combo board with its own PCI bridge chip.

Marcello and Linus, please apply.

--- linux-2.4.16/include/asm-i386/mpspec.h	Thu Nov 22 11:46:18 2001
+++ jamesc-2.4.16/include/asm-i386/mpspec.h	Tue Dec 18 13:45:49 2001
@@ -184,13 +185,10 @@
  *	7	2 CPU MCA+PCI
  */
 
-#ifdef CONFIG_MULTIQUAD
-#define MAX_IRQ_SOURCES 512
-#else /* !CONFIG_MULTIQUAD */
-#define MAX_IRQ_SOURCES 256
-#endif /* CONFIG_MULTIQUAD */
+#define MAX_MP_BUSSES 257	/* Need max PCI busses for hotplug + 1 for ISA. */
+				/* Four intrs per PCI slot. */
+#define MAX_IRQ_SOURCES (MAX_MP_BUSSES * 4)
 
-#define MAX_MP_BUSSES 32
 enum mp_bustype {
 	MP_BUS_ISA = 1,
 	MP_BUS_EISA,


-- 
James Cleverdon, IBM xSeries Platform (NUMA), Beaverton
jamesclv@us.ibm.com (kmail)  |   cleverdj@us.ibm.com (Lotus Notes)


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

end of thread, other threads:[~2002-01-18 21:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200112210419.fBL4Jfq08533@butler1.beaverton.ibm.com>
     [not found] ` <Pine.LNX.4.33.0112211131130.2269-100000@localhost.localdomain>
2001-12-21 10:01   ` aspects of bootmem design (was: Re: [PATCH] MAX_MP_BUSSES increase) William Lee Irwin III
2001-12-21 11:57   ` [PATCH] MAX_MP_BUSSES increase William Lee Irwin III
2001-12-20  4:28 James Cleverdon
2001-12-20  5:55 ` Linus Torvalds
2001-12-20 13:07   ` Ingo Molnar
2001-12-20 17:03     ` Andi Kleen
2001-12-20 22:29       ` James Cleverdon
2001-12-20 22:56         ` Andi Kleen
     [not found]           ` <Pine.LNX.4.33.0112211113570.2196-100000@localhost.localdomain>
2001-12-21  9:14             ` William Lee Irwin III
2001-12-26 15:43 ` Marcelo Tosatti
2002-01-08  9:14   ` James Cleverdon
2002-01-08  9:41     ` Martin J. Bligh
2002-01-18 21:21       ` James Cleverdon

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