提交 36028f33 编写于 作者: M Mike Travis 提交者: H. Peter Anvin

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.

v2: simplify setting of MAX_USER_CARDS, revert back to original default of 16
Signed-off-by: NMike Travis <travis@sgi.com>
LKML-Reference: <4B68D51D.6090401@sgi.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
上级 773a38db
...@@ -8,3 +8,11 @@ config VGA_ARB ...@@ -8,3 +8,11 @@ config VGA_ARB
are accessed at same time they need some kind of coordination. Please are accessed at same time they need some kind of coordination. Please
see Documentation/vgaarbiter.txt for more details. Select this to see Documentation/vgaarbiter.txt for more details. Select this to
enable VGA arbiter. enable VGA arbiter.
config VGA_ARB_MAX_GPUS
int "Maximum number of GPUs"
default 16
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.
...@@ -688,7 +688,7 @@ EXPORT_SYMBOL(vga_client_register); ...@@ -688,7 +688,7 @@ EXPORT_SYMBOL(vga_client_register);
* the arbiter. * the arbiter.
*/ */
#define MAX_USER_CARDS 16 #define MAX_USER_CARDS CONFIG_VGA_ARB_MAX_GPUS
#define PCI_INVALID_CARD ((struct pci_dev *)-1UL) #define PCI_INVALID_CARD ((struct pci_dev *)-1UL)
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册