[PATCH] Do nothing when there are no platform devices

Marcin Juszkiewicz mjuszkiewicz at redhat.com
Wed Sep 9 05:58:47 PDT 2015


Probably not best solution yet but closer.

commit dd1aa1f2fb9d91d766e020ac5c2cf474ce951788
Author: Marcin Juszkiewicz <mjuszkiewicz at redhat.com>
Date:   Wed Sep 9 14:53:51 2015 +0200

    xserver: ignore boot_vga on AArch64
    
    AArch64 machines firmware does not initialize graphics output so
    boot_vga is not set.
    
    Without this patch Xserver needs to be told where gfx card is by
    providing BusId entry in xorg.conf file.
    
    Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz at redhat.com>

diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
index f1e9423..9dd56ec 100644
--- a/hw/xfree86/common/xf86platformBus.c
+++ b/hw/xfree86/common/xf86platformBus.c
@@ -136,10 +136,14 @@ platform_find_pci_info(struct xf86_platform_device *pd, char *busid)
     if (info) {
         pd->pdev = info;
         pci_device_probe(info);
+#ifndef __aarch64__
         if (pci_device_is_boot_vga(info)) {
+#endif
             primaryBus.type = BUS_PLATFORM;
             primaryBus.id.plat = pd;
+#ifndef __aarch64__
         }
+#endif
     }
     pci_iterator_destroy(iter);
 


More information about the xorg-devel mailing list