Xorg's modesetting driver does not automatically work on the SimpleDRM driver
Hi
In Linux 5.14, a new driver was added. SimpleDRM which allows for generic modesetting. It's mostly for Wayland based sessions, but in theory it should work with X too.
This is on QEMU with the vmware driver with SimpleDRM set up. It detects /dev/dri/card0, but something causes it to skip it, and I am not sure what. I tried looking at the mode setting driver too.
P: /devices/platform/simple-framebuffer.0/drm/card0
N: dri/card0
L: 0
S: dri/by-path/platform-simple-framebuffer.0-card
E: DEVPATH=/devices/platform/simple-framebuffer.0/drm/card0
E: DEVNAME=/dev/dri/card0
E: DEVTYPE=drm_minor
E: MAJOR=226
E: MINOR=0
E: SUBSYSTEM=drm
E: USEC_INITIALIZED=1742060
E: ID_PATH=platform-simple-framebuffer.0
E: ID_PATH_TAG=platform-simple-framebuffer_0
E: ID_FOR_SEAT=drm-platform-simple-framebuffer_0
E: DEVLINKS=/dev/dri/by-path/platform-simple-framebuffer.0-card
E: TAGS=:uaccess:master-of-seat:seat:
E: CURRENT_TAGS=:uaccess:master-of-seat:seat:
This is the below log output
X.Org X Server 1.21.0.99
X Protocol Version 11, Revision 0
[ 276.449] Current Operating System: Linux rebestie 5.10.67 #1 SMP Mon Sep 20 12:05:49 UTC 2021 x86_64
[ 276.449] Kernel command line: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper initrd=/casper/initrd.gz noeject noprompt quiet loglevel=3 splash vt.global_cursor_default=0 vttydisable
[ 276.454]
[ 276.455] Current version of pixman: 0.40.1
[ 276.457] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 276.457] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 276.463] (==) Log file: "/opt/var/log/Xorg.0.log", Time: Mon Sep 27 12:32:18 2021
[ 276.468] (==) Using system config directory "/opt/share/X11/xorg.conf.d"
[ 276.481] (==) No Layout section. Using the first Screen section.
[ 276.481] (==) No screen section available. Using defaults.
[ 276.481] (**) |-->Screen "Default Screen Section" (0)
[ 276.481] (**) | |-->Monitor "<default monitor>"
[ 276.481] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 276.481] (==) Automatically adding devices
[ 276.481] (==) Automatically enabling devices
[ 276.481] (==) Automatically adding GPU devices
[ 276.481] (==) Automatically binding GPU devices
[ 276.481] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 276.481] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (WW) The directory "/usr/share/fonts/X11/TTF" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (WW) The directory "/usr/share/fonts/X11/OTF" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 276.481] Entry deleted from font path.
[ 276.481] (==) FontPath set to:
[ 276.481] (==) ModulePath set to "/opt/lib/x86_64-linux-gnu/xorg/modules"
[ 276.481] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 276.481] (II) Module ABI versions:
[ 276.481] X.Org ANSI C Emulation: 0.4
[ 276.481] X.Org Video Driver: 25.2
[ 276.481] X.Org XInput driver : 24.4
[ 276.481] X.Org Server Extension : 10.0
[ 276.482] (--) using VT number 2
[ 276.482] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 276.482] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 276.482] (II) Platform probe for /sys/devices/platform/simple-framebuffer.0/drm/card0
[ 276.484] (--) PCI:*(0@0:2:0) 1013:00b8:1af4:1100 rev 0, Mem @ 0xfc000000/33554432, 0xfebf4000/4096, BIOS @ 0x????????/131072
[ 276.485] (II) Open ACPI successful (/var/run/acpid.socket)
[ 276.485] (II) LoadModule: "glx"
[ 276.485] (II) Loading /opt/lib/x86_64-linux-gnu/xorg/modules/extensions/libglx.so
[ 276.507] (II) Module glx: vendor="X.Org Foundation"
[ 276.507] compiled for 1.21.0.99, module version = 1.0.0
[ 276.507] ABI class: X.Org Server Extension, version 10.0
[ 276.507] (==) Matched cirrus as autoconfigured driver 0
[ 276.507] (==) Matched modesetting as autoconfigured driver 1
[ 276.507] (==) Matched fbdev as autoconfigured driver 2
[ 276.507] (==) Matched vesa as autoconfigured driver 3
[ 276.507] (==) Assigned the driver to the xf86ConfigLayout
[ 276.507] (II) LoadModule: "cirrus"
[ 276.507] (WW) Warning, couldn't open module cirrus
[ 276.507] (EE) Failed to load module "cirrus" (module does not exist, 0)
[ 276.507] (II) LoadModule: "modesetting"
[ 276.507] (II) Loading /opt/lib/x86_64-linux-gnu/xorg/modules/drivers/modesetting_drv.so
[ 276.522] (II) Module modesetting: vendor="X.Org Foundation"
[ 276.522] compiled for 1.21.0.99, module version = 1.21.0
[ 276.522] Module class: X.Org Video Driver
[ 276.522] ABI class: X.Org Video Driver, version 25.2
[ 276.522] (II) LoadModule: "fbdev"
[ 276.522] (WW) Warning, couldn't open module fbdev
[ 276.522] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 276.522] (II) LoadModule: "vesa"
[ 276.522] (WW) Warning, couldn't open module vesa
[ 276.522] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 276.522] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 276.526] (WW) Falling back to old probe method for modesetting
[ 276.527] (II) modeset(1): using default device
[ 276.527] (II) modeset(G0): using drv /dev/dri/card0
[ 276.527] (EE) Screen 0 deleted because of no matching config section.
[ 276.527] (II) UnloadModule: "modesetting"
[ 276.527] (EE)
Fatal server error:
[ 276.527] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
[ 276.527] (EE)
[ 276.527] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 276.527] (EE) Please also check the log file at "/opt/var/log/Xorg.0.log" for additional information.
[ 276.527] (EE)
[ 276.533] (EE) Server terminated with error (1). Closing log file.
Thanks