xref: /OK3568_Linux_fs/kernel/drivers/gpu/vga/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig VGA_ARB
3*4882a593Smuzhiyun	bool "VGA Arbitration" if EXPERT
4*4882a593Smuzhiyun	default y
5*4882a593Smuzhiyun	depends on (PCI && !S390)
6*4882a593Smuzhiyun	help
7*4882a593Smuzhiyun	  Some "legacy" VGA devices implemented on PCI typically have the same
8*4882a593Smuzhiyun	  hard-decoded addresses as they did on ISA. When multiple PCI devices
9*4882a593Smuzhiyun	  are accessed at same time they need some kind of coordination. Please
10*4882a593Smuzhiyun	  see Documentation/gpu/vgaarbiter.rst for more details. Select this to
11*4882a593Smuzhiyun	  enable VGA arbiter.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunconfig VGA_ARB_MAX_GPUS
14*4882a593Smuzhiyun	int "Maximum number of GPUs"
15*4882a593Smuzhiyun	default 16
16*4882a593Smuzhiyun	depends on VGA_ARB
17*4882a593Smuzhiyun	help
18*4882a593Smuzhiyun	  Reserves space in the kernel to maintain resource locking for
19*4882a593Smuzhiyun	  multiple GPUS.  The overhead for each GPU is very small.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunconfig VGA_SWITCHEROO
22*4882a593Smuzhiyun	bool "Laptop Hybrid Graphics - GPU switching support"
23*4882a593Smuzhiyun	depends on X86
24*4882a593Smuzhiyun	depends on ACPI
25*4882a593Smuzhiyun	depends on PCI
26*4882a593Smuzhiyun	depends on (FRAMEBUFFER_CONSOLE=n || FB=y)
27*4882a593Smuzhiyun	select VGA_ARB
28*4882a593Smuzhiyun	help
29*4882a593Smuzhiyun	  Many laptops released in 2008/9/10 have two GPUs with a multiplexer
30*4882a593Smuzhiyun	  to switch between them. This adds support for dynamic switching when
31*4882a593Smuzhiyun	  X isn't running and delayed switching until the next logoff. This
32*4882a593Smuzhiyun	  feature is called hybrid graphics, ATI PowerXpress, and Nvidia
33*4882a593Smuzhiyun	  HybridPower.
34