All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI/VGA: Select SCREEN_INFO
@ 2025-10-13 13:59 Mario Limonciello (AMD)
  2025-10-13 14:16 ` Ilpo Järvinen
  0 siblings, 1 reply; 7+ messages in thread
From: Mario Limonciello (AMD) @ 2025-10-13 13:59 UTC (permalink / raw)
  To: mario.limonciello, bhelgaas, superm1, tzimmermann; +Cc: Eric Biggers, linux-pci

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.  Add a select for SCREEN_INFO to ensure that the
VGA arbiter works as intended.

Reported-by: Eric Biggers <ebiggers@kernel.org>
Closes: https://lore.kernel.org/linux-pci/20251012182302.GA3412@sol/
Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 337bf13aa9dda ("PCI/VGA: Replace vga_is_firmware_default() with a screen info check")
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
---
 drivers/pci/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 7065a8e5f9b14..c35fed47addd5 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -306,6 +306,7 @@ config VGA_ARB
 	bool "VGA Arbitration" if EXPERT
 	default y
 	depends on (PCI && !S390)
+	select SCREEN_INFO
 	help
 	  Some "legacy" VGA devices implemented on PCI typically have the same
 	  hard-decoded addresses as they did on ISA. When multiple PCI devices
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-13 16:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 13:59 [PATCH] PCI/VGA: Select SCREEN_INFO Mario Limonciello (AMD)
2025-10-13 14:16 ` Ilpo Järvinen
2025-10-13 14:31   ` Mario Limonciello
2025-10-13 14:35     ` Ilpo Järvinen
2025-10-13 15:19       ` Thomas Zimmermann
2025-10-13 15:36         ` Ilpo Järvinen
2025-10-13 16:08           ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.