[PATCH] Do nothing when there are no platform devices

Marcin Juszkiewicz mjuszkiewicz at redhat.com
Wed Sep 9 05:48:11 PDT 2015


W dniu 01.09.2015 o 09:23, Dave Airlie pisze:

> why isn't udev picking up the GPU? and setting
> xf86_num_platform_devices to 1 is the question you need to answer
>
> pci probing isn't really something we should be relying on.

You may be tired of me answering again and again in same thread but I
may found issue (or be wrong again).


platformProbe() grabs drm/card0 as it should. There are entries in
x86_platform_devices as they should be.

But platform_find_pci_info() checks pci_device_is_boot_vga() and if it
is then primaryBus is set to BUS_PLATFORM.

But my AArch64 lacks boot graphics support in firmware so boot_vga is
set to 0 for pcie card:

14:25 hrw at pinkiepie-rawhide:0000:01:00.0$ pwd
/sys/devices/platform/soc/1f2b0000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0
14:25 hrw at pinkiepie-rawhide:0000:01:00.0$ cat boot_vga 0

If I kill that check then Xserver starts.


More information about the xorg-devel mailing list