Skip to content

Commit 816f891

Browse files
committed
Merge branch 'pci/vga'
- Move vgaarb.c from drivers/gpu/vga to drivers/pci (Bjorn Helgaas) - Factor out default VGA device selection (Huacai Chen) - Move firmware default device detection to ADD_DEVICE path so we can select a default device regardless of whether it is enumerated before or after vga_arb_device_init() (Huacai Chen) - Move non-legacy VGA detection to ADD_DEVICE path (Huacai Chen) - Move disabled VGA device detection to ADD_DEVICE path (Huacai Chen) * pci/vga: PCI/VGA: Replace full MIT license text with SPDX identifier PCI/VGA: Use unsigned format string to print lock counts PCI/VGA: Log bridge control messages when adding devices PCI/VGA: Remove empty vga_arb_device_card_gone() PCI/VGA: Move disabled VGA device detection to ADD_DEVICE path PCI/VGA: Move non-legacy VGA detection to ADD_DEVICE path PCI/VGA: Move firmware default device detection to ADD_DEVICE path PCI/VGA: Factor out default VGA device selection PCI/VGA: Factor out vga_select_framebuffer_device() PCI/VGA: Move vga_arb_integrated_gpu() earlier in file PCI/VGA: Move vgaarb to drivers/pci
2 parents bdef65d + f321c35 commit 816f891

6 files changed

Lines changed: 176 additions & 179 deletions

File tree

Documentation/gpu/vgaarbiter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ In-kernel interface
100100
.. kernel-doc:: include/linux/vgaarb.h
101101
:internal:
102102

103-
.. kernel-doc:: drivers/gpu/vga/vgaarb.c
103+
.. kernel-doc:: drivers/pci/vgaarb.c
104104
:export:
105105

106106
libpciaccess

drivers/gpu/vga/Kconfig

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
config VGA_ARB
3-
bool "VGA Arbitration" if EXPERT
4-
default y
5-
depends on (PCI && !S390)
6-
help
7-
Some "legacy" VGA devices implemented on PCI typically have the same
8-
hard-decoded addresses as they did on ISA. When multiple PCI devices
9-
are accessed at same time they need some kind of coordination. Please
10-
see Documentation/gpu/vgaarbiter.rst for more details. Select this to
11-
enable VGA arbiter.
12-
13-
config VGA_ARB_MAX_GPUS
14-
int "Maximum number of GPUs"
15-
default 16
16-
depends on VGA_ARB
17-
help
18-
Reserves space in the kernel to maintain resource locking for
19-
multiple GPUS. The overhead for each GPU is very small.
20-
212
config VGA_SWITCHEROO
223
bool "Laptop Hybrid Graphics - GPU switching support"
234
depends on X86

drivers/gpu/vga/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_VGA_ARB) += vgaarb.o
32
obj-$(CONFIG_VGA_SWITCHEROO) += vga_switcheroo.o

drivers/pci/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,25 @@ config PCIE_BUS_PEER2PEER
252252

253253
endchoice
254254

255+
config VGA_ARB
256+
bool "VGA Arbitration" if EXPERT
257+
default y
258+
depends on (PCI && !S390)
259+
help
260+
Some "legacy" VGA devices implemented on PCI typically have the same
261+
hard-decoded addresses as they did on ISA. When multiple PCI devices
262+
are accessed at same time they need some kind of coordination. Please
263+
see Documentation/gpu/vgaarbiter.rst for more details. Select this to
264+
enable VGA arbiter.
265+
266+
config VGA_ARB_MAX_GPUS
267+
int "Maximum number of GPUs"
268+
default 16
269+
depends on VGA_ARB
270+
help
271+
Reserves space in the kernel to maintain resource locking for
272+
multiple GPUS. The overhead for each GPU is very small.
273+
255274
source "drivers/pci/hotplug/Kconfig"
256275
source "drivers/pci/controller/Kconfig"
257276
source "drivers/pci/endpoint/Kconfig"

drivers/pci/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o
3030
obj-$(CONFIG_PCI_ECAM) += ecam.o
3131
obj-$(CONFIG_PCI_P2PDMA) += p2pdma.o
3232
obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
33+
obj-$(CONFIG_VGA_ARB) += vgaarb.o
3334

3435
# Endpoint library must be initialized before its users
3536
obj-$(CONFIG_PCI_ENDPOINT) += endpoint/

0 commit comments

Comments
 (0)