Below are various xorg.conf configurations. The only configuration
that errors is when using section "Device." If I do not have an
xorg.conf file or use section "OutputClass" X works fine. I hope this
clarifies my initial question?
xorg.conf:
Section "Device"
Identifier "AMDgpu"
Driver "amdgpu"
Option "DRI" "3"
Option "TearFree" "true"
EndSection
...
Xorg log file:
[ 85187.126]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 85187.126] Build Operating System: OpenBSD 6.8 amd64
[ 85187.126] Current Operating System: OpenBSD
hellfire.markjolesen.com 6.8 GENERIC.MP#98 amd64
[ 85187.126] Build Date: 04 October 2020 06:41:21PM
[ 85187.126]
[ 85187.126] Current version of pixman: 0.38.4
[ 85187.126] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 85187.126] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 85187.127] (==) Log file:
"/home/markjolesen/.local/share/xorg/Xorg.0.log", Time: Thu Oct 22
10:25:09 2020
[ 85187.127] (==) Using config file: "/etc/X11/xorg.conf"
[ 85187.127] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[ 85187.127] (==) No Layout section. Using the first Screen section.
[ 85187.127] (==) No screen section available. Using defaults.
[ 85187.127] (**) |-->Screen "Default Screen Section" (0)
[ 85187.127] (**) | |-->Monitor ""
[ 85187.128] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 85187.128] (**) | |-->Device "AMDgpu"
[ 85187.128] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 85187.128] (==) Automatically adding devices
[ 85187.128] (==) Automatically enabling devices
[ 85187.128] (==) Not automatically adding GPU devices
[ 85187.128] (==) Max clients allowed: 256, resource mask: 0x1f
[ 85187.128] (**) FontPath set to:
/usr/local/share/fonts/spleen/,
/usr/local/share/fonts/ghostscript,
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[ 85187.128] (==) ModulePath set to "/usr/X11R6/lib/modules"
[ 85187.128] (II) The server relies on wscons to provide the list of
input devices.
If no devices become available, reconfigure wscons or disable AutoAddDevices.
[ 85187.128] (II) Loader magic: 0xf2709dde460
[ 85187.128] (II) Module ABI versions:
[ 85187.128] X.Org ANSI C Emulation: 0.4
[ 85187.128] X.Org Video Driver: 24.1
[ 85187.128] X.Org XInput driver : 24.1
[ 85187.128] X.Org Server Extension : 10.0
[ 85187.128] (--) Using wscons driver on /dev/ttyC4
[ 85187.133] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
(Permission denied)
Check that you have set 'machdep.allowaperture=1'
in /etc/sysctl.conf and reboot your machine
refer to xf86(4) for details
[ 85187.133] linear framebuffer access unavailable
[ 85187.133] (II) LoadModule: "glx"
[ 85187.134] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[ 85187.136] (II) Module glx: vendor="X.Org Foundation"
[ 85187.136] compiled for 1.20.8, module version = 1.0.0
[ 85187.136] ABI class: X.Org Server Extension, version 10.0
[ 85187.136] (II) LoadModule: "amdgpu"
[ 85187.137] (II) Loading /usr/X11R6/lib/modules/drivers/amdgpu_drv.so
[ 85187.138] (II) Module amdgpu: vendor="X.Org Foundation"
[ 85187.138] compiled for 1.20.8, module version = 19.1.0
[ 85187.138] Module class: X.Org Video Driver
[ 85187.138] ABI class: X.Org Video Driver, version 24.1
[ 85187.138] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[ 85187.138] (EE) No devices detected.
[ 85187.138] (EE)
Fatal server error:
[ 85187.138] (EE) no screens found(EE)
[ 85187.138] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 85187.138] (EE) Please also check the log file at
"/home/markjolesen/.local/share/xorg/Xorg.0.log" for additional
information.
[ 85187.138] (EE)
[ 85187.138] (EE) Server terminated with error (1). Closing log file.
__
xorg.conf:
Section "OutputClass"
Identifier "AMDgpu"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "DRI" "3"
Option "TearFree" "true"
EndSection
...
Xorg log file
[ 950.342]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 950.343] Build Operating System: OpenBSD 6.8 amd64
[ 950.343] Current Operating System: OpenBSD
hellfire.markjolesen.com 6.8 GENERIC.MP#98 amd64
[ 950.343] Build Date: 04 October 2020 06:41:21PM
[ 950.344]
[ 950.344] Current version of pixman: 0.38.4
[ 950.344] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 950.344] Markers: (--) probed, (**) from config