[PATCH] fbcon: Drop vga_default_device() check from video_is_primary_device()
From: Mario Limonciello
Date: Sun Jun 21 2026 - 13:53:03 EST
Some multi GPU systems may have a VGA compatible device, but that might
not be used for display. If due to enumeration order this device is
found before the one actually used for display then multiple devices
may show the boot_display attribute, confusing userspace.
Drop the vga_default_device() check from video_is_primary_device() so
that only the device found from screen info is used.
Fixes: ad90860bd10ee ("fbcon: Use screen info to find primary device")
Reported-by: Aaron Ma <aaron.ma@xxxxxxxxxxxxx>
Closes: https://lore.kernel.org/linux-pci/20260618081803.2790848-1-aaron.ma@xxxxxxxxxxxxx/#t
Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxx>
---
arch/x86/video/video-common.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/video/video-common.c b/arch/x86/video/video-common.c
index 152789f00fcda..9440eb3a7b15d 100644
--- a/arch/x86/video/video-common.c
+++ b/arch/x86/video/video-common.c
@@ -43,9 +43,6 @@ bool video_is_primary_device(struct device *dev)
if (!pci_is_display(pdev))
return false;
- if (pdev == vga_default_device())
- return true;
-
#ifdef CONFIG_SCREEN_INFO
numres = screen_info_resources(si, res, ARRAY_SIZE(res));
for (i = 0; i < numres; ++i) {
--
2.43.0