xref: /openbmc/linux/drivers/gpu/vga/Kconfig (revision 94e8e8e9)
1deb2d2ecSBenjamin Herrenschmidtconfig VGA_ARB
26a108a14SDavid Rientjes	bool "VGA Arbitration" if EXPERT
3deb2d2ecSBenjamin Herrenschmidt	default y
41150f254SJan Glauber	depends on (PCI && !S390)
5deb2d2ecSBenjamin Herrenschmidt	help
6deb2d2ecSBenjamin Herrenschmidt	  Some "legacy" VGA devices implemented on PCI typically have the same
7deb2d2ecSBenjamin Herrenschmidt	  hard-decoded addresses as they did on ISA. When multiple PCI devices
8deb2d2ecSBenjamin Herrenschmidt	  are accessed at same time they need some kind of coordination. Please
95fb94e9cSMauro Carvalho Chehab	  see Documentation/gpu/vgaarbiter.rst for more details. Select this to
10deb2d2ecSBenjamin Herrenschmidt	  enable VGA arbiter.
1136028f33SMike Travis
1236028f33SMike Travisconfig VGA_ARB_MAX_GPUS
1336028f33SMike Travis	int "Maximum number of GPUs"
1436028f33SMike Travis	default 16
1536028f33SMike Travis	depends on VGA_ARB
1636028f33SMike Travis	help
1736028f33SMike Travis	  Reserves space in the kernel to maintain resource locking for
1836028f33SMike Travis	  multiple GPUS.  The overhead for each GPU is very small.
1903a2c4d7SLinus Torvalds
206a9ee8afSDave Airlieconfig VGA_SWITCHEROO
21ca117d6dSRandy Dunlap	bool "Laptop Hybrid Graphics - GPU switching support"
226a9ee8afSDave Airlie	depends on X86
236a9ee8afSDave Airlie	depends on ACPI
2494e8e8e9SSinan Kaya	depends on PCI
25343d4a79SDave Airlie	select VGA_ARB
266a9ee8afSDave Airlie	help
27ca117d6dSRandy Dunlap	  Many laptops released in 2008/9/10 have two GPUs with a multiplexer
286a9ee8afSDave Airlie	  to switch between them. This adds support for dynamic switching when
296a9ee8afSDave Airlie          X isn't running and delayed switching until the next logoff. This
30ca117d6dSRandy Dunlap	  feature is called hybrid graphics, ATI PowerXpress, and Nvidia
316a9ee8afSDave Airlie	  HybridPower.
32