xf86: Accept devices with the kernel's efidrm driver

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

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/series/146477/ # 1
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1879>
This commit is contained in:
Thomas Zimmermann
2026-03-14 22:24:40 +02:00
committed by Enrico Weigelt
parent bd5c2ee289
commit 901146fe17

View File

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