vgaarb: Add user selectability of the number of GPUS in a system
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Commit-ID: 5f95078a35e5857afa294a558c277196cf079668 Gitweb: http://git.kernel.org/tip/5f95078a35e5857afa294a558c277196cf079668 Author: Mike Travis <[email protected]> AuthorDate: Tue, 2 Feb 2010 14:38:16 -0800 Committer: H. Peter Anvin <[email protected]> CommitDate: Fri, 5 Feb 2010 14:05:41 -0800
vgaarb: Add user selectability of the number of GPUS in a system
Update the VGA Arbiter to allow the user to select the number of GPU's supported in a system.
Signed-off-by Mike Travis <[email protected]>
LKML-Reference: <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Robin Holt <[email protected]>
Cc Jack Steiner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jesse Barnes <[email protected]>
Cc David Airlie <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
Signed-off-by H. Peter Anvin <[email protected]>
--- drivers/gpu/vga/Kconfig | 8 ++++++++ drivers/gpu/vga/vgaarb.c | 4 ++++ 2 files changed, 12 insertions(+), 0 deletions(-)
drivers/gpu/vga/Kconfig +8 -0
@@ -8,3 +8,11 @@ config VGA_ARB 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.
drivers/gpu/vga/vgaarb.c +4 -0
@@ -688,7 +688,11 @@ EXPORT_SYMBOL(vga_client_register);* 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)/*