Solved No /dev/dri with drm-kmod and amdgpu driver in 13.2-RELEASE

Does anyone know how /dev/dri is created? I have the same problem as reported this thread, but with a Radeon HD8570.
I have

1. the drm-kmod package,
2. kld_list="amdgpu" in /etc/rc.conf, and
3. Section "Device"
Identifier "Card0"
Driver "amdgpu"
BusID "pci0:0:1:0"
EndSection
in /usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf.

But there is no /dev/dri directory, and Xorg reports reports that it cannot open /dev/dri/card0.
How/what creates /dev/dri?
 
Maybe you need the Radeon los, not amdgpu? I don't have one of those, so I don't know.
 
This is the right driver for recent Radeon cards, like mine. The problem, as far as I can tell, is that there is no /dev/dri/card0.
 
Yes, and yes (I have xf86-video-amdgpu).

I've done a lot of experiments, upgraded packages, etc., and now something has, mysteriously, changed: X is no longer trying to open /dev/dri/card0, and it does load "amdgpu". But it still can't finish its initialization.
Please see /var/log/Xorg.0.log below.
Code:
[   296.451]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[   296.451] Current Operating System: FreeBSD wiley.verizon.net 13.2-RELEASE-p1 FreeBSD 13.2-RELEASE-p1 GENERIC amd64
[   296.451] 
[   296.451] Current version of pixman: 0.42.2
[   296.451]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   296.451] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   296.452] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 25 09:32:20 2023
[   296.552] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[   296.552] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   296.583] (==) No Layout section.  Using the first Screen section.
[   296.583] (==) No screen section available. Using defaults.
[   296.583] (**) |-->Screen "Default Screen Section" (0)
[   296.583] (**) |   |-->Monitor "<default monitor>"
[   296.584] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   296.584] (**) |   |-->Device "Card0"
[   296.584] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   296.584] (==) Automatically adding devices
[   296.584] (==) Automatically enabling devices
[   296.584] (==) Not automatically adding GPU devices
[   296.584] (==) Automatically binding GPU devices
[   296.585] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   296.802] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[   296.802] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   296.802] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   296.803] (II) Module ABI versions:
[   296.803]     X.Org ANSI C Emulation: 0.4
[   296.803]     X.Org Video Driver: 25.2
[   296.803]     X.Org XInput driver : 24.4
[   296.803]     X.Org Server Extension : 10.0
[   296.803] (--) PCI:*(0@0:1:0) 1002:990e:17aa:30b2 rev 0, Mem @ 0xd0000000/268435456, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536
[   296.803] (II) LoadModule: "glx"
[   296.845] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   296.973] (II) Module glx: vendor="X.Org Foundation"
[   296.974]     compiled for 1.21.1.7, module version = 1.0.0
[   296.974]     ABI class: X.Org Server Extension, version 10.0
[   296.974] (II) LoadModule: "amdgpu"
[   296.974] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so
[   297.114] (II) Module amdgpu: vendor="X.Org Foundation"
[   297.114]     compiled for 1.21.1.7, module version = 22.0.0
[   297.114]     Module class: X.Org Video Driver
[   297.114]     ABI class: X.Org Video Driver, version 25.2
[   297.114] (II) AMDGPU: Driver for AMD Radeon:
    All GPUs supported by the amdgpu kernel driver
[   297.114] (--) Using syscons driver with X support (version 2.0)
[   297.114] (--) using VT number 9

[   297.116] (EE) No devices detected.
[   297.117] (EE)
Fatal server error:
[   297.117] (EE) no screens found(EE)
[   297.117] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[   297.117] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   297.117] (EE)
[   297.133] (EE) Server terminated with error (1). Closing log file.
 
Card seems to be supported with DRM 5.16. FreeBSD DRM driver (for 13.x) is at 5.10.
Thanks. I also finally concluded that the card is not supported, but it took a lot of work.
So, does this mean no support in FreeBSD 13.x?
 
So, does this mean no support in FreeBSD 13.x?
And no support in 14.0 either (that has DRM 5.15). Although I do believe 5.16 is being worked on right now. So it might be supported in the near future.
 
And no support in 14.0 either (that has DRM 5.15). Although I do believe 5.16 is being worked on right now. So it might be supported in the near future.
Just for fun, I thought I'd try radeonkms. Surprisingly, it does work! Xfce reports the GPU as "AMD Aruba", which is not quite right, but there is noticeable graphics acceleration.
 
Back
Top