linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] vgaarb: Select fallback default VGA device
@ 2017-10-06 22:24 Bjorn Helgaas
  2017-10-06 22:24 ` [PATCH 1/2] vgaarb: Select a default VGA device even if there's no legacy VGA Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2017-10-06 22:24 UTC (permalink / raw)
  To: Daniel Vetter
  Cc: Lorenzo Pieralisi, Gabriele Paoloni, Ard Biesheuvel, linux-pci,
	Catalin Marinas, Will Deacon, dri-devel, Xinliang Liu,
	Alex Williamson, Lukas Wunner, Benjamin Herrenschmidt,
	Rongrong Zou, Dave Airlie, linuxppc-dev, linux-arm-kernel,
	Daniel Axtens

These patches are supposed to fix a problem Daniel Axtens found on the
HiSilicon D05 board.  The VGA device there is behind a bridge that doesn't
support PCI_BRIDGE_CTL_VGA, so the arbiter never selects the device as the
default.

The first patch extends the arbiter so that if it can't find an enabled VGA
device with legacy resources, it selects the first enabled device *without*
legacy resources (this is what fixes the D05).  If that fails, it selects
the first device that isn't enabled.  The combination of both changes
should make the current powerpc fixup_vga() quirk unnecessary.

N.B. It changes the powerpc behavior: if there are several enabled VGA
devices, the current quirk selects the last one, while this patch selects
the first one.  If this is a problem, I can drop that part of the patch and
keep the quirk.

The second patch pulls out this fallback device detection (and the EFI
override) from vga_arb_device_init() to make it easier to read.

---

Bjorn Helgaas (2):
      vgaarb: Select a default VGA device even if there's no legacy VGA
      vgaarb: Factor out EFI and fallback default device selection


 arch/powerpc/kernel/pci-common.c |   12 ------
 drivers/gpu/vga/vgaarb.c         |   72 +++++++++++++++++++++++++++++---------
 2 files changed, 55 insertions(+), 29 deletions(-)

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

end of thread, other threads:[~2017-10-13  3:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06 22:24 [PATCH 0/2] vgaarb: Select fallback default VGA device Bjorn Helgaas
2017-10-06 22:24 ` [PATCH 1/2] vgaarb: Select a default VGA device even if there's no legacy VGA Bjorn Helgaas
2017-10-12 11:24   ` Julien Thierry
2017-10-12 12:05     ` Lothar Waßmann
2017-10-12 12:56       ` Julien Thierry
2017-10-13  3:44     ` Bjorn Helgaas
2017-10-06 22:24 ` [PATCH 2/2] vgaarb: Factor out EFI and fallback default device selection Bjorn Helgaas
2017-10-12 10:35 ` [PATCH 0/2] vgaarb: Select fallback default VGA device Sherlock Wang

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).