From 901146fe17822e99c714143d11192edfb25c2f40 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Sat, 14 Mar 2026 22:24:40 +0200 Subject: [PATCH] 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 Link: https://patchwork.freedesktop.org/series/146477/ # 1 Part-of: --- hw/xfree86/common/xf86platformBus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c index 6ef72c9e8d..671feef63b 100644 --- a/hw/xfree86/common/xf86platformBus.c +++ b/hw/xfree86/common/xf86platformBus.c @@ -604,6 +604,9 @@ xf86platformProbeDev(DriverPtr drvp) if (ServerIsNotSeat0()) { break; } 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 */ if (strcmp(xf86_platform_devices[j].attribs->driver, "hyperv_drm") == 0) break;