Final version. Would be nice to if someone could check it on multi-gpu system.
From a3efb7c6e66eabf7fa2dc7b0a51cc524d00b8049 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz <mjuszkiew...@redhat.com> Date: Thu, 10 Sep 2015 21:53:36 +0200 Subject: [PATCH] Use first card on systems without boot initialized cards Several AArch64, PowerPC systems have firmware which does not initialize graphic cards during bootup. In the effect we have proper card found but refuse to use it. Signed-off-by: Marcin Juszkiewicz <mjuszkiew...@redhat.com> --- hw/xfree86/common/xf86platformBus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c index f1e9423..d88c58e 100644 --- a/hw/xfree86/common/xf86platformBus.c +++ b/hw/xfree86/common/xf86platformBus.c @@ -136,7 +136,8 @@ platform_find_pci_info(struct xf86_platform_device *pd, char *busid) if (info) { pd->pdev = info; pci_device_probe(info); - if (pci_device_is_boot_vga(info)) { + if (pci_device_is_boot_vga(info) || xf86_num_platform_devices == 1) + { primaryBus.type = BUS_PLATFORM; primaryBus.id.plat = pd; } -- 2.5.1 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel