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: default avatarThomas 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-03-14 22:28:00 +02:00
committed by Enrico Weigelt
parent af1459136d
commit ca1c0976dd

View File

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