[PATCH] Raise MAX_MP_BUSSES to 256 on SMP boxes

James Cleverdon (jamesclv@us.ibm.com)
Fri, 7 Dec 2001 18:46:07 -0800


Testing a NUMA box some pretty extreme PCI-X expansion capability overflowed
mp_bus_id_to_pci_bus[]. May as well raise MAX_MP_BUSSES to the max:

--- linux-2.4.16/include/asm-i386/mpspec.h Thu Nov 22 11:46:18 2001
+++ kdb-2.4.16/include/asm-i386/mpspec.h Fri Dec 7 15:37:08 2001
@@ -184,13 +185,14 @@
* 7 2 CPU MCA+PCI
*/

-#ifdef CONFIG_MULTIQUAD
-#define MAX_IRQ_SOURCES 512
-#else /* !CONFIG_MULTIQUAD */
+#ifdef CONFIG_SMP
+#define MAX_MP_BUSSES 256 /* Need max PCI busses for hotplug. */
+#define MAX_IRQ_SOURCES 1024 /* Four intrs per PCI slot. */
+#else /* !CONFIG_SMP */
+#define MAX_MP_BUSSES 32
#define MAX_IRQ_SOURCES 256
-#endif /* CONFIG_MULTIQUAD */
+#endif /* CONFIG_SMP */

-#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   |   cleverdj@us.ibm.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/