From: Mike Travis on
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)>

Cc: Dave Airlie <airlied(a)>
Cc: Alex Chiang <achiang(a)>
Cc: Thomas Gleixner <tglx(a)>
Cc: Cyrill Gorcunov <gorcunov(a)>
Cc: Benjamin Herrenschmidt <benh(a)>
Cc: Robin Holt <holt(a)>
Cc: Rafael J. Wysocki <rjw(a)>
Cc: Adam Jackson <ajax(a)>
Cc: Kenji Kaneshige <kaneshige.kenji(a)>
Cc: Andrew Morton <akpm(a)>
Cc: Gaetan Nadon <memsize(a)>
Cc: H. Peter Anvin <hpa(a)>
Cc: Aaron Plattner <aplattner(a)>
Cc: Jack Steiner <steiner(a)>
Cc: Tiago Vignatti <tiago.vignatti(a)>
Cc: Cliff Wickman <cpw(a)>
Cc: Matthew Wilcox <willy(a)>
Cc: Christian Zander <chzander(a)>
Cc: Yu Zhao <yu.zhao(a)>

Cc: linux-kernel(a)
Cc: linux-pci(a)
Cc: x86(a)
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.
+ 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.

#define MAX_USER_CARDS 16
#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)
More majordomo info at
Please read the FAQ at