From ca1c0976dd3ead501604a9ab2a6de2da0a3ea763 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Sat, 14 Mar 2026 22:28:00 +0200 Subject: [PATCH] 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 Link: https://patchwork.freedesktop.org/series/159820/ # [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 44e4a47af5..3f1804c66e 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 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;