Xorg vs AMD Radeon 780M graphics

From: Steven Friedrich <freebsdlouisville_at_gmail.com>
Date: Fri, 07 Jun 2024 20:43:46 UTC
I recently bought a GMKtek K8 (zen4 AMD Ryzen 7) with AMD Radeon 780M 
graphics.  It's an $800 mini-pc and I got it for $640 direct from GMKtec.

I installed FreeBSD 14.1-Release. Linux Mint Cinnamon and KDE Neon too.  
Both work nicely.

I did install package drm-kmod and added amdgpu to rc.conf

Here's my kernel modules:

kldstat
Id Refs Address                Size Name
1  105 0xffffffff80200000  1460e48 kernel
2    1 0xffffffff81661000   1148e0 if_re.ko
3    1 0xffffffff82000000   502958 amdgpu.ko
4    2 0xffffffff82503000    7c050 drm.ko
5    1 0xffffffff81ff8000     22b8 iic.ko
6    3 0xffffffff81ffb000     3080 linuxkpi_hdmi.ko
7    3 0xffffffff82580000     6350 dmabuf.ko
8    3 0xffffffff82587000     3378 lindebugfs.ko
9    1 0xffffffff8258b000     b360 ttm.ko
10    1 0xffffffff82597000     3390 acpi_wmi.ko
11    1 0xffffffff8259b000     5f90 ig4.ko
12    1 0xffffffff825a1000     3220 intpm.ko
13    1 0xffffffff825a5000     2178 smbus.ko
14    1 0xffffffff825a8000     3360 uhid.ko
15    1 0xffffffff825ac000     33c0 usbhid.ko
16    1 0xffffffff825b0000     3380 hidbus.ko
17    1 0xffffffff825b4000     3360 wmt.ko
18    1 0xffffffff825b8000     4364 ums.ko
19    1 0xffffffff825bd000     4d20 ng_ubt.ko
20    6 0xffffffff825c2000     abb8 netgraph.ko
21    2 0xffffffff825cd000     a250 ng_hci.ko
22    4 0xffffffff825d8000     2670 ng_bluetooth.ko
23    1 0xffffffff825db000     e5b0 snd_uaudio.ko
24    1 0xffffffff825ea000     8560 if_ure.ko
25    1 0xffffffff825f3000     3190 uether.ko
26    1 0xffffffff825f7000     e268 ng_l2cap.ko
27    1 0xffffffff82606000    1bf68 ng_btsocket.ko
28    1 0xffffffff82622000     38f8 ng_socket.ko
29    1 0xffffffff82626000     2a68 mac_ntpd.ko

Sadly, xorg won't open a display.  It seemed to be trying an ATI driver, 
so I installed xf86-video-ati. The log looks better, but still no joy.

Here is the dmesg regarding framebuffer:

FreeBSD 14.1-STABLE stable/14-n267894-66b62c07fb91 Friedrich amd64
VT(efifb): resolution 800x600

And here is the Xorg.0.log:

X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[   578.154] Current Operating System: FreeBSD zen4 14.1-STABLE FreeBSD 
14.1-STABLE stable/14-n267894-66b62c07fb91 Friedrich amd64
[   578.154]
[   578.154] Current version of pixman: 0.42.2
[   578.154]     Before reporting problems, check http://wiki.x.org
     to make sure that you have the latest version.
[   578.154] Markers: (--) probed, (**) from config file, (==) default 
setting,
     (++) from command line, (!!) notice, (II) informational,
     (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   578.154] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jun  7 
16:07:07 2024
[   578.154] (==) Using system config directory 
"/usr/local/share/X11/xorg.conf.d"
[   578.155] (==) No Layout section.  Using the first Screen section.
[   578.155] (==) No screen section available. Using defaults.
[   578.155] (**) |-->Screen "Default Screen Section" (0)
[   578.155] (**) |   |-->Monitor "<default monitor>"
[   578.155] (==) No monitor specified for screen "Default Screen Section".
     Using a default monitor configuration.
[   578.155] (**) Allowing byte-swapped clients
[   578.155] (==) Automatically adding devices
[   578.155] (==) Automatically enabling devices
[   578.155] (==) Automatically adding GPU devices
[   578.155] (==) Automatically binding GPU devices
[   578.155] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   578.155] (==) 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
[   578.155] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   578.155] (II) The server relies on udev to provide the list of input 
devices.
     If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[   578.155] (II) Module ABI versions:
[   578.155]     X.Org ANSI C Emulation: 0.4
[   578.155]     X.Org Video Driver: 25.2
[   578.155]     X.Org XInput driver : 24.4
[   578.155]     X.Org Server Extension : 10.0
[   578.156] (--) PCI:*(101@0:0:0) 1002:1900:2014:8001 rev 197, Mem @ 
0x7c00000000/268435456, 0xdc000000/2097152, 0xdc500000/524288, I/O @ 
0x0000d000/256, BIOS @ 0x????????/65536
[   578.156] (II) LoadModule: "glx"
[   578.156] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   578.157] (II) Module glx: vendor="X.Org Foundation"
[   578.157]     compiled for 1.21.1.13, module version = 1.0.0
[   578.157]     ABI class: X.Org Server Extension, version 10.0
[   578.157] (==) Matched ati as autoconfigured driver 0
[   578.157] (==) Matched modesetting as autoconfigured driver 1
[   578.157] (==) Matched scfb as autoconfigured driver 2
[   578.157] (==) Matched vesa as autoconfigured driver 3
[   578.157] (==) Assigned the driver to the xf86ConfigLayout
[   578.157] (II) LoadModule: "ati"
[   578.157] (II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so
[   578.157] (II) Module ati: vendor="X.Org Foundation"
[   578.157]     compiled for 1.21.1.13, module version = 19.1.0
[   578.157]     Module class: X.Org Video Driver
[   578.157]     ABI class: X.Org Video Driver, version 25.2
[   578.157] (II) LoadModule: "radeon"
[   578.157] (II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so
[   578.158] (II) Module radeon: vendor="X.Org Foundation"
[   578.158]     compiled for 1.21.1.13, module version = 19.1.0
[   578.158]     Module class: X.Org Video Driver
[   578.158]     ABI class: X.Org Video Driver, version 25.2
[   578.158] (II) LoadModule: "modesetting"
[   578.158] (II) Loading 
/usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   578.158] (II) Module modesetting: vendor="X.Org Foundation"
[   578.158]     compiled for 1.21.1.13, module version = 1.21.1
[   578.158]     Module class: X.Org Video Driver
[   578.158]     ABI class: X.Org Video Driver, version 25.2
[   578.158] (II) LoadModule: "scfb"
[   578.158] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   578.158] (II) Module scfb: vendor="X.Org Foundation"
[   578.158]     compiled for 1.21.1.13, module version = 0.0.5
[   578.158]     ABI class: X.Org Video Driver, version 25.2
[   578.158] (II) LoadModule: "vesa"
[   578.158] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   578.158] (II) Module vesa: vendor="X.Org Foundation"
[   578.158]     compiled for 1.21.1.13, module version = 2.5.0
[   578.158]     Module class: X.Org Video Driver
[   578.158]     ABI class: X.Org Video Driver, version 25.2
[   578.158] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
     ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
     ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
     ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380),
     ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4),
     ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE,
     ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE,
     ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360,
     ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW,
     ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2),
     ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000,
     ATI Radeon X800 (R420), ATI Radeon X800PRO (R420),
     ATI Radeon X800SE (R420), ATI FireGL X3 (R420),
     ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420),
     ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420),
     ATI Radeon X850 (R480), ATI Radeon X850 XT (R480),
     ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480),
     ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7,
     ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6,
     ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9),
     ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1,
     ATI Radeon 9800PRO, ATI Radeon 9800XT,
     ATI Radeon Mobility 9600/9700 (M10/M11),
     ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11),
     ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11),
     ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100,
     ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000,
     ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C),
     ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423),
     ATI Radeon X800LE (R423), ATI Radeon X800SE (R423),
     ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430),
     ATI Radeon X800 SE (R430), ATI Radeon X800 (R430),
     ATI FireGL V7100 (R423), ATI FireGL V5100 (R423),
     ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26),
     ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26),
     ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5),
     ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200,
     ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200,
     ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370),
     ATI Radeon X600 (RV370), ATI Radeon X550 (RV370),
     ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370),
     ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28),
     ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28),
     ATI Radeon X850, ATI unknown Radeon / FireGL (R480),
     ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410),
     ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410),
     ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410),
     ATI Radeon X1800, ATI Mobility Radeon X1800 XT,
     ATI Mobility Radeon X1800, ATI Mobility FireGL V7200,
     ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100,
     ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
     ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
     ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit,
     ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300,
     ATI FireGL V3350, ATI Mobility Radeon X1450,
     ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
     ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200,
     ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro,
     ATI FireGL V3400, ATI Mobility FireGL V5250,
     ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT,
     ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300,
     ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
     ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570,
     ATI FireGL V7400, ATI Radeon 9100 PRO IGP,
     ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740,
     ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro,
     ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600,
     ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
     ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL),
     ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
     ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770,
     AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
     ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
     ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650,
     ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
     ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
     ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
     ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
     ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
     ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
     ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610,
     ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
     ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350,
     ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400,
     ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
     ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
     ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870,
     ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2,
     ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
     ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350,
     ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
     ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
     ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
     ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
     ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
     ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
     ATI FireGL V3600, ATI Radeon HD 2600 LE,
     ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
     ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
     ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700,
     ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
     ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
     ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
     ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
     ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
     ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2,
     ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
     ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250,
     AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
     AMD Radeon HD 6300 Series Graphics,
     AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
     ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
     AMD Firestream 9350, ATI Radeon HD 5800 Series,
     ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series,
     ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series,
     ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
     ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series,
     REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
     ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
     AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
     AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
     ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
     MULLINS, KAVERI, HAWAII
[   578.159] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   578.159] (II) scfb: driver for wsdisplay framebuffer: scfb
[   578.159] (II) VESA: driver for VESA chipsets: vesa
[   578.159] (--) Using syscons driver with X support (version 2.0)
[   578.159] (--) using VT number 9

[   578.160] (EE) open /dev/dri/card0: No such file or directory
[   578.160] (WW) Falling back to old probe method for modesetting
[   578.160] (EE) open /dev/dri/card0: No such file or directory
[   578.160] (WW) Falling back to old probe method for scfb
[   578.160] scfb trace: probe start
[   578.160] (II) scfb(1): using default device
[   578.160] scfb trace: probe done
[   578.160] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card 
support
[   578.160] (EE) Screen 0 deleted because of no matching config section.
[   578.160] (II) UnloadModule: "modesetting"
[   578.160] (EE)
Fatal server error:
[   578.160] (EE) Cannot run in framebuffer mode. Please specify 
busIDs        for all framebuffer devices
[   578.160] (EE)
[   578.160] (EE)
Please consult the The X.Org Foundation support
      at http://wiki.x.org
  for help.
[   578.160] (EE) Please also check the log file at 
"/var/log/Xorg.0.log" for additional information.
[   578.160] (EE)
[   578.161] (EE) Server terminated with error (1). Closing log file.