Prev: [PATCH 22/64] pata_via: fix address setup timings underlocking
Next: [PATCH] Add reference to memrar.h file
From: Mike Travis on 18 Jan 2010 13:40 Update the VGA Arbiter to allow the user to select the number of GPU's supported in a system. Signed-off-by: Mike Travis <travis(a)sgi.com> Cc: Dave Airlie <airlied(a)redhat.com> Cc: Alex Chiang <achiang(a)hp.com> Cc: Thomas Gleixner <tglx(a)linutronix.de> Cc: Cyrill Gorcunov <gorcunov(a)openvz.org> Cc: Benjamin Herrenschmidt <benh(a)kernel.crashing.org> Cc: Robin Holt <holt(a)sgi.com> Cc: Rafael J. Wysocki <rjw(a)sisk.pl> Cc: Adam Jackson <ajax(a)nwnk.net> Cc: Kenji Kaneshige <kaneshige.kenji(a)jp.fujitsu.com> Cc: Andrew Morton <akpm(a)linux-foundation.org> Cc: Gaetan Nadon <memsize(a)videotron.ca> Cc: H. Peter Anvin <hpa(a)zytor.com> Cc: Aaron Plattner <aplattner(a)nvidia.com> Cc: Jack Steiner <steiner(a)sgi.com> Cc: Tiago Vignatti <tiago.vignatti(a)nokia.com> Cc: Cliff Wickman <cpw(a)sgi.com> Cc: Matthew Wilcox <willy(a)linux.intel.com> Cc: Christian Zander <chzander(a)nvidia.com> Cc: Yu Zhao <yu.zhao(a)intel.com> Cc: linux-kernel(a)vger.kernel.org Cc: linux-pci(a)vger.kernel.org Cc: x86(a)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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |