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