linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Adjust fbcon console device detection
@ 2025-06-20  2:49 Mario Limonciello
  2025-06-20  2:49 ` [PATCH v3 1/7] PCI: Add helper for checking if a PCI device is a display controller Mario Limonciello
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Mario Limonciello @ 2025-06-20  2:49 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Alex Deucher, Christian König, David Airlie, Simona Vetter,
	Lukas Wunner, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Woodhouse, Lu Baolu, Joerg Roedel, Will Deacon,
	Robin Murphy, Alex Williamson, Jaroslav Kysela, Takashi Iwai,
	open list:DRM DRIVERS, open list, open list:INTEL IOMMU (VT-d),
	open list:PCI SUBSYSTEM, open list:VFIO DRIVER, open list:SOUND,
	Daniel Dadap, Mario Limonciello

From: Mario Limonciello <mario.limonciello@amd.com>

This series started out as changes to VGA arbiter to try to handle a case
of a system with 2 GPUs that are not VGA devices [1].  This was discussed
but decided not to overload the VGA arbiter for non VGA devices.

Instead move the x86 specific detection of framebuffer resources into x86
specific code that the fbcon can use to properly identify the primary
device. This code is still called from the VGA arbiter, and the logic does
not change there. To avoid regression to fbcon, fall back to VGA arbiter.

In order for userspace to also be able to discover which device was the
primary framebuffer create a link to that device from fbcon.

v2->v3:
 * Pick up tags
 * Drop old patch 6
 * Add 2 new patches for fbcon

Link: https://lore.kernel.org/linux-pci/20250617175910.1640546-1-superm1@kernel.org/ [1]

Mario Limonciello (7):
  PCI: Add helper for checking if a PCI device is a display controller
  vfio/pci: Use pci_is_display()
  vga_switcheroo: Use pci_is_display()
  iommu/vt-d: Use pci_is_display()
  ALSA: hda: Use pci_is_display()
  PCI/VGA: Move check for firmware default out of VGA arbiter
  fbcon: Make a symlink to the device selected as primary

 arch/x86/video/video-common.c    | 28 +++++++++++++++++++++++++
 drivers/gpu/vga/vga_switcheroo.c |  2 +-
 drivers/iommu/intel/iommu.c      |  2 +-
 drivers/pci/vgaarb.c             | 36 ++------------------------------
 drivers/vfio/pci/vfio_pci_igd.c  |  3 +--
 drivers/video/fbdev/core/fbcon.c | 10 ++++++++-
 include/linux/pci.h              | 15 +++++++++++++
 sound/hda/hdac_i915.c            |  2 +-
 sound/pci/hda/hda_intel.c        |  4 ++--
 9 files changed, 60 insertions(+), 42 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-06-23 10:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20  2:49 [PATCH v3 0/7] Adjust fbcon console device detection Mario Limonciello
2025-06-20  2:49 ` [PATCH v3 1/7] PCI: Add helper for checking if a PCI device is a display controller Mario Limonciello
2025-06-20  2:49 ` [PATCH v3 2/7] vfio/pci: Use pci_is_display() Mario Limonciello
2025-06-20  2:49 ` [PATCH v3 3/7] vga_switcheroo: " Mario Limonciello
2025-06-20  2:49 ` [PATCH v3 4/7] iommu/vt-d: " Mario Limonciello
2025-06-20  2:49 ` [PATCH v3 5/7] ALSA: hda: " Mario Limonciello
2025-06-20  8:12   ` Takashi Iwai
2025-06-20  2:49 ` [PATCH v3 6/7] PCI/VGA: Move check for firmware default out of VGA arbiter Mario Limonciello
2025-06-20  8:45   ` Thomas Zimmermann
2025-06-20 22:17     ` Mario Limonciello
2025-06-23 10:43       ` Thomas Zimmermann
2025-06-22  6:02   ` kernel test robot
2025-06-20  2:49 ` [PATCH v3 7/7] fbcon: Make a symlink to the device selected as primary Mario Limonciello
2025-06-20  8:47   ` Thomas Zimmermann
2025-06-20 15:56     ` Mario Limonciello
2025-06-23 10:32       ` Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).