xf86: Accept devices with the kernel's corebootdrm driver

Add a workaround to accept devices of the kernel's corebootdrm
driver. Makes Xorg work on pre-configured displays with coreboot
and the DRM graphics stack. Review of the corebootdrm driver
happens at [1].

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/series/159820/ # [1]
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2132>
This commit is contained in:
Thomas Zimmermann 2026-01-06 17:56:09 +01:00 committed by Marge Bot
parent 2e338890ee
commit c12cf4f585

View file

@ -577,6 +577,9 @@ xf86platformProbeDev(DriverPtr drvp)
if (ServerIsNotSeat0()) {
break;
} else {
/* Accept the device if the driver is corebootdrm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "corebootdrm") == 0)
break;
/* Accept the device if the driver is efidrm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "efidrm") == 0)
break;