]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/VGA: Select SCREEN_INFO on X86
authorMario Limonciello (AMD) <superm1@kernel.org>
Mon, 13 Oct 2025 22:08:26 +0000 (17:08 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 17 Oct 2025 13:31:14 +0000 (08:31 -0500)
commita78835b86a4414230e4cf9a9f16d22302cdb8388
treeba45cadabaab5037221a77fa663cc3c38b6c4744
parente433110eb5bf067f74d3d15c5fb252206c66ae0b
PCI/VGA: Select SCREEN_INFO on X86

commit 337bf13aa9dda ("PCI/VGA: Replace vga_is_firmware_default() with a
screen info check") introduced an implicit dependency upon SCREEN_INFO by
removing the open coded implementation.

If a user didn't have CONFIG_SCREEN_INFO set, vga_is_firmware_default()
would now return false.  SCREEN_INFO is only used on X86 so add a
conditional select for SCREEN_INFO to ensure that the VGA arbiter works as
intended.

Fixes: 337bf13aa9dda ("PCI/VGA: Replace vga_is_firmware_default() with a screen info check")
Reported-by: Eric Biggers <ebiggers@kernel.org>
Closes: https://lore.kernel.org/linux-pci/20251012182302.GA3412@sol/
Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tested-by: Eric Biggers <ebiggers@kernel.org>
Link: https://patch.msgid.link/20251013220829.1536292-1-superm1@kernel.org
drivers/pci/Kconfig
drivers/pci/vgaarb.c