Update the VGA Arbiter to allow the user to select the number of GPU's supported in a system. Signed-off-by: Mike Travis Cc: Dave Airlie Cc: Alex Chiang Cc: Thomas Gleixner Cc: Cyrill Gorcunov Cc: Benjamin Herrenschmidt Cc: Robin Holt Cc: Rafael J. Wysocki Cc: Adam Jackson Cc: Kenji Kaneshige Cc: Andrew Morton Cc: Gaetan Nadon Cc: H. Peter Anvin Cc: Aaron Plattner Cc: Jack Steiner Cc: Tiago Vignatti Cc: Cliff Wickman Cc: Matthew Wilcox Cc: Christian Zander Cc: Yu Zhao Cc: linux-kernel@vger.kernel.org Cc: linux-pci@vger.kernel.org Cc: x86@kernel.org --- drivers/gpu/vga/Kconfig | 8 ++++++++ drivers/gpu/vga/vgaarb.c | 4 ++++ 2 files changed, 12 insertions(+) --- linux.orig/drivers/gpu/vga/Kconfig +++ linux/drivers/gpu/vga/Kconfig @@ -8,3 +8,11 @@ are accessed at same time they need some kind of coordination. Please see Documentation/vgaarbiter.txt for more details. Select this to enable VGA arbiter. + +config VGA_ARB_MAX_GPUS + int "Maximum number of GPUs" + default 64 + depends on VGA_ARB + help + Reserves space in the kernel to maintain resource locking for + multiple GPUS. The overhead for each GPU is very small. --- linux.orig/drivers/gpu/vga/vgaarb.c +++ linux/drivers/gpu/vga/vgaarb.c @@ -688,7 +688,11 @@ * the arbiter. */ +#ifdef CONFIG_VGA_ARB_MAX_GPUS +#define MAX_USER_CARDS CONFIG_VGA_ARB_MAX_GPUS +#else #define MAX_USER_CARDS 16 +#endif #define PCI_INVALID_CARD ((struct pci_dev *)-1UL) /* -- -- 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/