Hello dear FreeBSD community, I would ask of you a little bit of help in getting Xorg to work with amdgpu.
The setup:
X11 configuration:
In order to use
I tried with the following to, perhaps, get X to detect the display in
I also have an active
The logs are attached, but I'd point out some key things:
Without setting bus ID, there are issues:
When the bus ID is set, I get:
The setup:
- FreeBSD 14-CURRENT on amd64 architecture (would use RELEASE if it turns out there are no GPU compatibility issues)
- GPU AMD Radeon RX 6600 (Navi 23)
- Monitor connected via DisplayPort
- Installed graphics/drm-kmod, which pulls in graphics/drm-510-kmod (CURRENT may have no advantage over RELEASE at this point, since it does not use graphics/drm-515-kmod). Added
amdgpu
tokld_list
. Checked that the module loads in boot output and with kldstat(8).
amdgpu
kernel module loads, amdgpu
loads in X, but no devices (screens) are detected. I get working X with vesa
.X11 configuration:
display.conf
for forcing specific display driver. Setting BusID
was mandatory to get amdgpu
to load, as far as I can discern from the logs (attached).
Code:
Section "Device"
Identifier "Card0"
Driver "amdgpu"
#Driver "vesa"
BusID "pci0:3:0:0"
EndSection
In order to use
vesa
, I had to remove the BusID
specification and unload the amdgpu
kernel module.I tried with the following to, perhaps, get X to detect the display in
display.conf
. It is probably totally useless. I've tested without it as well.
Code:
Section "Screen"
Identifier "Screen0"
Device "Card0"
SubSection "Display"
Modes "1920x1080"
EndSubSection
EndSection
I also have an active
InputClass
keyboard section, which most likely does not matter.The logs are attached, but I'd point out some key things:
Without setting bus ID, there are issues:
Code:
[ 68.703] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[ 68.703] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:03:00.0: No such file or directory
[ 68.703] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 68.703] (EE) Screen 0 deleted because of no matching config section.
[ 68.703] (II) UnloadModule: "amdgpu"
When the bus ID is set, I get:
Code:
[ 108.350] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 108.350] (--) Using syscons driver with X support (version 2.0)
[ 108.350] (--) using VT number 9
[ 108.476] (EE) No devices detected.
[ 108.476] (EE)
Fatal server error:
[ 108.476] (EE) no screens found(EE)