FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

[KMS] drm report modesetting isn't supported if linprocfs first loaded (Kabini / FreeBSD 11.2) #96

Closed Stefar77 closed 5 years ago

Stefar77 commented 5 years ago

It worked fine until I rebooted the machine.

`root@TestTC:/home/paradise # kldstat Id Refs Address Size Name

1 63 0xffffffff80200000 20647f8 kernel 2 1 0xffffffff82cdb000 41f0 linprocfs.ko 3 1 0xffffffff82ce0000 2d28 linux_common.ko 4 1 0xffffffff82ce3000 6fc4 tmpfs.ko 5 1 0xffffffff82cea000 1780 uhid.ko 6 1 0xffffffff82cec000 2328 ums.ko 7 1 0xffffffff82cef000 15b258 amdgpu.ko 8 1 0xffffffff82e4b000 74b70 drm.ko 9 4 0xffffffff82ec0000 edc8 linuxkpi.ko 10 3 0xffffffff82ecf000 114b8 linuxkpi_gplv2.ko 11 2 0xffffffff82ee1000 6b8 debugfs.ko 12 1 0xffffffff82ee2000 23f8 radeon_kabini_pfp_bin.ko 13 1 0xffffffff82ee5000 23f8 radeon_kabini_me_bin.ko 14 1 0xffffffff82ee8000 23f8 radeon_kabini_ce_bin.ko 15 1 0xffffffff82eeb000 43f8 radeon_kabini_mec_bin.ko 16 1 0xffffffff82ef0000 2a78 radeon_kabini_rlc_bin.ko 17 1 0xffffffff82ef3000 12e8 radeon_kabini_sdma_bin.ko 18 1 0xffffffff82ef5000 12e8 radeon_kabini_sdma1_bin.ko 19 1 0xffffffff82ef7000 38ea8 radeon_kabini_uvd_bin.ko 20 1 0xffffffff82f30000 18c48 radeon_kabini_vce_bin.ko `

`root@TestTC:/home/paradise # cat /var/log/Xorg.0.log [ 40.857] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 40.857] X Protocol Version 11, Revision 0 [ 40.857] Build Operating System: FreeBSD 11.1-RELEASE-p14 amd64 [ 40.857] Current Operating System: FreeBSD TestTC 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [ 40.857] Build Date: 13 September 2018 09:29:03AM [ 40.857]
[ 40.857] Current version of pixman: 0.34.0 [ 40.857] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 40.857] Markers: (--) probed, ( ) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 40.858] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 30 16:27:49 2018 [ 40.864] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d" [ 40.864] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 40.866] (==) No Layout section. Using the first Screen section. [ 40.866] (==) No screen section available. Using defaults. [ 40.867] ( ) |-->Screen "Default Screen Section" (0) [ 40.867] ( ) | |-->Monitor "" [ 40.868] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 40.868] ( ) | |-->Device "card0" [ 40.868] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 40.868] (==) Automatically adding devices [ 40.868] (==) Automatically enabling devices [ 40.868] (==) Not automatically adding GPU devices [ 40.869] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 40.877] (==) 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/ [ 40.877] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 40.877] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 40.878] (II) Loader magic: 0x80fc90 [ 40.878] (II) Module ABI versions: [ 40.878] X.Org ANSI C Emulation: 0.4 [ 40.878] X.Org Video Driver: 20.0 [ 40.878] X.Org XInput driver : 22.1 [ 40.878] X.Org Server Extension : 9.0 [ 40.878] (--) PCI:*(0:0:1:0) 1002:9833:103c:21b4 rev 0, Mem @ 0xc0000000/268435456, 0xd0000000/8388608, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536 [ 40.879] (II) LoadModule: "glx" [ 40.880] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 40.900] (II) Module glx: vendor="X.Org Foundation" [ 40.900] compiled for 1.18.4, module version = 1.0.0 [ 40.901] ABI class: X.Org Server Extension, version 9.0 [ 40.901] (==) AIGLX enabled [ 40.901] (II) LoadModule: "amdgpu" [ 40.901] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so [ 40.907] (II) Module amdgpu: vendor="X.Org Foundation" [ 40.907] compiled for 1.18.4, module version = 1.3.0 [ 40.907] Module class: X.Org Video Driver [ 40.907] ABI class: X.Org Video Driver, version 20.0 [ 40.907] (II) AMDGPU: Driver for AMD Radeon: All GPUs supported by the amdgpu kernel driver [ 40.907] (--) Using syscons driver with X support (version 2.0) [ 40.907] (--) using VT number 9

[ 40.908] (II) [KMS] drm report modesetting isn't supported. [ 40.908] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 40.908] (EE) Screen 0 deleted because of no matching config section. [ 40.908] (II) UnloadModule: "amdgpu" [ 40.908] (EE) Device(s) detected, but none match those in the config file. [ 40.908] (EE) Fatal server error: [ 40.908] (EE) no screens found(EE) [ 40.908] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 40.908] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 40.909] (EE) [ 40.909] (EE) Server terminated with error (1). Closing log file. root@TestTC:/home/paradise # cat /usr/local/etc/X11/xorg.conf.d/radeon.conf

Section "Device" Identifier "card0" Driver "amdgpu" EndSection root@TestTC:/home/paradise # ls /dev/dri/ card0 renderD128 `

What am I missing here?

zeising commented 5 years ago

Hi! Can you try with the patch from https://reviews.freebsd.org/D17332 (update xf86-video-amdgpu) and/or test with xf86-video-modesetting? Thanks!

zeising commented 5 years ago

Also, which of the drm kmod ports are you using, and can you please verify which kmod you are loading. Thanks!

Stefar77 commented 5 years ago

With 18.1 the error only changes a bit but still the same. Installed the machine 3 days ago and just rebooted for the first time. No longer getting Xorg running :-/. (only on framebuffer of vesa works) before the reboot the amdgpu driver worked fine.

root@TestTC:/usr/ports/x11-drivers/xf86-video-amdgpu # pkg info | egrep "drm|amd" drm-next-kmod-4.11.g20180822 DRM modules for the linuxkpi-based KMS components libdrm-2.4.93,1 Userspace interface to kernel Direct Rendering Module services nasm-2.13.03,1 General-purpose multi-platform x86 and amd64 assembler webcamd-4.17.0.3 Port of Linux USB webcam and DVB drivers into userspace xf86-video-amdgpu-18.1.0 X.Org amdgpu display driver

` root@TestTC:/usr/ports/x11-drivers/xf86-video-amdgpu # cat /var/log/Xorg.0.log [ 828.558] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 828.558] X Protocol Version 11, Revision 0 [ 828.558] Build Operating System: FreeBSD 11.1-RELEASE-p14 amd64 [ 828.558] Current Operating System: FreeBSD TestTC 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [ 828.558] Build Date: 13 September 2018 09:29:03AM [ 828.558]
[ 828.558] Current version of pixman: 0.34.0 [ 828.558] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 828.558] Markers: (--) probed, ( ) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 828.559] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 30 16:40:57 2018 [ 828.559] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d" [ 828.559] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 828.560] (==) No Layout section. Using the first Screen section. [ 828.560] (==) No screen section available. Using defaults. [ 828.560] ( ) |-->Screen "Default Screen Section" (0) [ 828.560] ( ) | |-->Monitor "" [ 828.560] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 828.560] ( ) | |-->Device "card0" [ 828.560] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 828.560] (==) Automatically adding devices [ 828.560] (==) Automatically enabling devices [ 828.560] (==) Not automatically adding GPU devices [ 828.560] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 828.561] (==) 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/ [ 828.561] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 828.561] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 828.561] (II) Loader magic: 0x80fc90 [ 828.561] (II) Module ABI versions: [ 828.561] X.Org ANSI C Emulation: 0.4 [ 828.561] X.Org Video Driver: 20.0 [ 828.561] X.Org XInput driver : 22.1 [ 828.561] X.Org Server Extension : 9.0 [ 828.561] (--) PCI:*(0:0:1:0) 1002:9833:103c:21b4 rev 0, Mem @ 0xc0000000/268435456, 0xd0000000/8388608, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536 [ 828.561] (II) LoadModule: "glx" [ 828.561] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 828.565] (II) Module glx: vendor="X.Org Foundation" [ 828.565] compiled for 1.18.4, module version = 1.0.0 [ 828.565] ABI class: X.Org Server Extension, version 9.0 [ 828.565] (==) AIGLX enabled [ 828.565] (II) LoadModule: "amdgpu" [ 828.565] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so [ 828.566] (II) Module amdgpu: vendor="X.Org Foundation" [ 828.566] compiled for 1.18.4, module version = 18.1.0 [ 828.566] Module class: X.Org Video Driver [ 828.566] ABI class: X.Org Video Driver, version 20.0 [ 828.566] (II) AMDGPU: Driver for AMD Radeon: All GPUs supported by the amdgpu kernel driver [ 828.566] (--) Using syscons driver with X support (version 2.0) [ 828.566] (--) using VT number 9

[ 828.567] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported. [ 828.567] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 828.567] (EE) Screen 0 deleted because of no matching config section. [ 828.567] (II) UnloadModule: "amdgpu" [ 828.567] (EE) Device(s) detected, but none match those in the config file. [ 828.567] (EE) Fatal server error: [ 828.567] (EE) no screens found(EE) [ 828.568] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 828.568] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 828.568] (EE) [ 828.568] (EE) Server terminated with error (1). Closing log file. `

-- edit- github keeps ubbing my copy/pase. :-(

zeising commented 5 years ago

Can you test without any config for X?

Stefar77 commented 5 years ago

` root@TestTC:/usr/ports/x11-drivers/xf86-video-amdgpu # startx xauth: file /root/.serverauth.8113 does not exist

X.Org X Server 1.18.4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 11.1-RELEASE-p14 amd64 Current Operating System: FreeBSD TestTC 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Build Date: 13 September 2018 09:29:03AM

Current version of pixman: 0.34.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 30 16:48:07 2018 (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" (II) [KMS] drm report modesetting isn't supported. scfb trace: probe start scfb trace: probe done (EE) Fatal server error: (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. ^Cxinit: giving up xinit: unable to connect to X server: Connection refused xinit: unexpected signal 2 root@TestTC:/usr/ports/x11-drivers/xf86-video-amdgpu # cat /var/log/Xorg.0.log [ 1258.574] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 1258.574] X Protocol Version 11, Revision 0 [ 1258.574] Build Operating System: FreeBSD 11.1-RELEASE-p14 amd64 [ 1258.574] Current Operating System: FreeBSD TestTC 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [ 1258.574] Build Date: 13 September 2018 09:29:03AM [ 1258.574]
[ 1258.574] Current version of pixman: 0.34.0 [ 1258.574] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 1258.574] Markers: (--) probed, (
) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 1258.575] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 30 16:48:07 2018 [ 1258.575] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 1258.576] (==) No Layout section. Using the first Screen section. [ 1258.576] (==) No screen section available. Using defaults. [ 1258.576] () |-->Screen "Default Screen Section" (0) [ 1258.576] () | |-->Monitor "" [ 1258.576] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 1258.576] (==) Automatically adding devices [ 1258.576] (==) Automatically enabling devices [ 1258.576] (==) Not automatically adding GPU devices [ 1258.576] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 1258.576] (==) 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/ [ 1258.576] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 1258.576] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 1258.576] (II) Loader magic: 0x80fc90 [ 1258.576] (II) Module ABI versions: [ 1258.576] X.Org ANSI C Emulation: 0.4 [ 1258.577] X.Org Video Driver: 20.0 [ 1258.577] X.Org XInput driver : 22.1 [ 1258.577] X.Org Server Extension : 9.0 [ 1258.577] (--) PCI:*(0:0:1:0) 1002:9833:103c:21b4 rev 0, Mem @ 0xc0000000/268435456, 0xd0000000/8388608, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536 [ 1258.577] (II) LoadModule: "glx" [ 1258.577] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 1258.581] (II) Module glx: vendor="X.Org Foundation" [ 1258.581] compiled for 1.18.4, module version = 1.0.0 [ 1258.581] ABI class: X.Org Server Extension, version 9.0 [ 1258.581] (==) AIGLX enabled [ 1258.581] (==) Matched ati as autoconfigured driver 0 [ 1258.581] (==) Matched modesetting as autoconfigured driver 1 [ 1258.581] (==) Matched scfb as autoconfigured driver 2 [ 1258.581] (==) Matched vesa as autoconfigured driver 3 [ 1258.581] (==) Assigned the driver to the xf86ConfigLayout [ 1258.581] (II) LoadModule: "ati" [ 1258.581] (II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so [ 1258.582] (II) Module ati: vendor="X.Org Foundation" [ 1258.582] compiled for 1.18.4, module version = 7.9.0 [ 1258.582] Module class: X.Org Video Driver [ 1258.582] ABI class: X.Org Video Driver, version 20.0 [ 1258.584] (II) LoadModule: "radeon" [ 1258.585] (II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so [ 1258.590] (II) Module radeon: vendor="X.Org Foundation" [ 1258.590] compiled for 1.18.4, module version = 7.9.0 [ 1258.590] Module class: X.Org Video Driver [ 1258.590] ABI class: X.Org Video Driver, version 20.0 [ 1258.591] (II) LoadModule: "modesetting" [ 1258.591] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so [ 1258.593] (II) Module modesetting: vendor="X.Org Foundation" [ 1258.593] compiled for 1.18.4, module version = 1.18.4 [ 1258.593] Module class: X.Org Video Driver [ 1258.593] ABI class: X.Org Video Driver, version 20.0 [ 1258.593] (II) LoadModule: "scfb" [ 1258.593] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so [ 1258.594] (II) Module scfb: vendor="X.Org Foundation" [ 1258.594] compiled for 1.18.4, module version = 0.0.4 [ 1258.594] ABI class: X.Org Video Driver, version 20.0 [ 1258.594] (II) LoadModule: "vesa" [ 1258.594] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 1258.595] (II) Module vesa: vendor="X.Org Foundation" [ 1258.595] compiled for 1.18.4, module version = 2.4.0 [ 1258.595] Module class: X.Org Video Driver [ 1258.595] ABI class: X.Org Video Driver, version 20.0 [ 1258.595] (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 [ 1258.602] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 1258.602] (II) scfb: driver for wsdisplay framebuffer: scfb [ 1258.602] (II) VESA: driver for VESA chipsets: vesa [ 1258.603] (--) Using syscons driver with X support (version 2.0) [ 1258.603] (--) using VT number 9

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

` I know root is bad.. just testing and it at least should start.

zeising commented 5 years ago

Are the user you're running X as normally in the video group?

It is quite strange that it used to work, and then stopped after a reboot. Is there anything else you might've changed?

Stefar77 commented 5 years ago

I installed the entire machine, kldloaded amdgpu and started Xorg, compiled KDE5 and played with it a while.. then rebooted for the first time after install and never got Xorg running accelerated anymore. I did do freebsd-update maybe I should try the -RELEASE kernel again..

Yes the user in the video group gets the same error. root@TestTC:/usr/ports/x11-drivers/xf86-video-amdgpu # grep video /etc/group video:*:44:pguser,root

I'm used to NVidia and/or Intel cards never had this error before. Also with my NVidia I can unload the module and reload it without the machine crashing.. :-)

zeising commented 5 years ago

How do you load the module? What happens if you start X as your normal user (that need to be in the video group)?

Stefar77 commented 5 years ago

1st time I just loaded with kldload because I was still compiling ports. After the reboot I tried; I tried kld_list="amdgpu" and also tried adding all firmwares, drm and amdgpu /boot/loader.conf but didn't help

Also tried radeonkms.ko and a bunch of others. Installed xf86-video-ati and stuff. Reinstalled drm-next-kms, tried drm-current-kms.

Everything I do it either hangs X hard (can't kill it with kill -KILL) or gives the modesetting error.

Stefar77 commented 5 years ago

Funny thing.. when I kldload amdgpu I get /dev/dri/card0 Then I do startx and it fails and then /dev/dri/card0 is gone!

Stefar77 commented 5 years ago

kldload amdgpu drm-next-kmod-4.11.g2018082

Just tried the -RELEASE kernel and no luck..

This is just a test project to try and get a thin-client stable with FreeBSD for Citrix.. At first I thought this is going great.. then I rebooted... (Ps. Windows 10 bluescreens on these things all the time too so it's just bad hardware)

I think I will just give up on this little project, AMD is not for me.. It just never works for me. Years back I had an exploding AMD CPU because the cooler fell off.. never bothered with any AMD stuff sinds then. I think the not using AMD policy is sparing me a lot of headaches :-)

zeising commented 5 years ago

Loading drm modules from /boot/loader.conf is not supported. What you normally need is something like kld_list=/boot/modules/amdgpu.ko in /etc/rc.conf. Perhaps that's what missing, but I don't know.

Stefar77 commented 5 years ago

Ok, I think I have a solution. When I do not load linprocfs and remove the /compat/linux/proc mount it works. :-/

Stefar77 commented 5 years ago

Without linprocfs (and linux_common.ko) it works.. #weirdness

` root@TestTC:/home/paradise # cat /var/log/Xorg.0.log [ 39.788] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 39.788] X Protocol Version 11, Revision 0 [ 39.789] Build Operating System: FreeBSD 11.1-RELEASE-p14 amd64 [ 39.789] Current Operating System: FreeBSD TestTC 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [ 39.789] Build Date: 13 September 2018 09:29:03AM [ 39.789]
[ 39.789] Current version of pixman: 0.34.0 [ 39.789] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 39.789] Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 39.789] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 30 19:10:22 2018 [ 39.795] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d" [ 39.795] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 39.797] (==) No Layout section. Using the first Screen section. [ 39.797] (==) No screen section available. Using defaults. [ 39.797] () |-->Screen "Default Screen Section" (0) [ 39.797] () | |-->Monitor "" [ 39.798] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 39.798] () | |-->Device "Card0" [ 39.798] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 39.798] (==) Automatically adding devices [ 39.798] (==) Automatically enabling devices [ 39.798] (==) Not automatically adding GPU devices [ 39.799] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 39.807] (==) 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/ [ 39.807] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 39.807] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 39.808] (II) Loader magic: 0x80fc90 [ 39.808] (II) Module ABI versions: [ 39.808] X.Org ANSI C Emulation: 0.4 [ 39.808] X.Org Video Driver: 20.0 [ 39.808] X.Org XInput driver : 22.1 [ 39.808] X.Org Server Extension : 9.0 [ 39.808] (--) PCI:*(0:0:1:0) 1002:9833:103c:21b4 rev 0, Mem @ 0xc0000000/268435456, 0xd0000000/8388608, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536 [ 39.809] (II) LoadModule: "glx" [ 39.810] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 39.830] (II) Module glx: vendor="X.Org Foundation" [ 39.830] compiled for 1.18.4, module version = 1.0.0 [ 39.830] ABI class: X.Org Server Extension, version 9.0 [ 39.830] (==) AIGLX enabled [ 39.831] (II) LoadModule: "amdgpu" [ 39.831] (II) Loading /usr/local/lib/xorg/modules/drivers/amdgpu_drv.so [ 39.836] (II) Module amdgpu: vendor="X.Org Foundation" [ 39.836] compiled for 1.18.4, module version = 1.3.0 [ 39.836] Module class: X.Org Video Driver [ 39.836] ABI class: X.Org Video Driver, version 20.0 [ 39.836] (II) AMDGPU: Driver for AMD Radeon: All GPUs supported by the amdgpu kernel driver [ 39.836] (--) Using syscons driver with X support (version 2.0) [ 39.836] (--) using VT number 9

[ 39.837] (II) [KMS] Kernel modesetting enabled. [ 39.839] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 39.839] (II) AMDGPU(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 39.839] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32 [ 39.839] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps) [ 39.839] (==) AMDGPU(0): Default visual is TrueColor [ 39.840] (==) AMDGPU(0): RGB weight 888 [ 39.840] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC) [ 39.840] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x9833) [ 39.840] (II) Loading sub module "fb" [ 39.840] (II) LoadModule: "fb" [ 39.840] (II) Loading /usr/local/lib/xorg/modules/libfb.so [ 39.843] (II) Module fb: vendor="X.Org Foundation" [ 39.843] compiled for 1.18.4, module version = 1.0.0 [ 39.843] ABI class: X.Org ANSI C Emulation, version 0.4 [ 39.843] (II) Loading sub module "dri2" [ 39.843] (II) LoadModule: "dri2" [ 39.843] (II) Module "dri2" already built-in [ 40.628] (II) Loading sub module "glamoregl" [ 40.628] (II) LoadModule: "glamoregl" [ 40.629] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so [ 40.676] (II) Module glamoregl: vendor="X.Org Foundation" [ 40.676] compiled for 1.18.4, module version = 1.0.0 [ 40.676] ABI class: X.Org ANSI C Emulation, version 0.4 [ 40.676] (II) glamor: OpenGL accelerated X.org driver based. [ 40.687] (II) glamor: EGL version 1.5 (DRI2): [ 40.710] (II) AMDGPU(0): glamor detected, initialising EGL layer. [ 40.710] (==) AMDGPU(0): TearFree property default: auto [ 40.710] (II) AMDGPU(0): KMS Pageflipping: enabled [ 40.729] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section [ 40.747] (II) AMDGPU(0): Output DisplayPort-1 has no monitor section [ 40.778] (II) AMDGPU(0): Output VGA-0 has no monitor section [ 40.798] (II) AMDGPU(0): EDID for output DisplayPort-0 [ 40.817] (II) AMDGPU(0): EDID for output DisplayPort-1 [ 40.848] (II) AMDGPU(0): EDID for output VGA-0 [ 40.848] (II) AMDGPU(0): Manufacturer: IVM Model: 5601 Serial#: 51074 [ 40.848] (II) AMDGPU(0): Year: 2007 Week: 44 [ 40.848] (II) AMDGPU(0): EDID Version: 1.3 [ 40.848] (II) AMDGPU(0): Analog Display Input, Input Voltage Level: 0.700/0.700 V [ 40.848] (II) AMDGPU(0): Sync: Separate Composite [ 40.848] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 52 vert.: 33 [ 40.848] (II) AMDGPU(0): Gamma: 2.20 [ 40.849] (II) AMDGPU(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display [ 40.849] (II) AMDGPU(0): First detailed timing is preferred mode [ 40.849] (II) AMDGPU(0): redX: 0.653 redY: 0.337 greenX: 0.295 greenY: 0.607 [ 40.849] (II) AMDGPU(0): blueX: 0.144 blueY: 0.075 whiteX: 0.313 whiteY: 0.329 [ 40.849] (II) AMDGPU(0): Supported established timings: [ 40.849] (II) AMDGPU(0): 720x400@70Hz [ 40.849] (II) AMDGPU(0): 640x480@60Hz [ 40.849] (II) AMDGPU(0): 640x480@67Hz [ 40.849] (II) AMDGPU(0): 640x480@72Hz [ 40.849] (II) AMDGPU(0): 640x480@75Hz [ 40.849] (II) AMDGPU(0): 800x600@60Hz [ 40.849] (II) AMDGPU(0): 800x600@72Hz [ 40.849] (II) AMDGPU(0): 800x600@75Hz [ 40.849] (II) AMDGPU(0): 832x624@75Hz [ 40.849] (II) AMDGPU(0): 1024x768@60Hz [ 40.849] (II) AMDGPU(0): 1024x768@70Hz [ 40.849] (II) AMDGPU(0): 1024x768@75Hz [ 40.849] (II) AMDGPU(0): 1280x1024@75Hz [ 40.849] (II) AMDGPU(0): 1152x864@75Hz [ 40.849] (II) AMDGPU(0): Manufacturer's mask: 0 [ 40.849] (II) AMDGPU(0): Supported standard timings: [ 40.849] (II) AMDGPU(0): #0: hsize: 1152 vsize 864 refresh: 75 vid: 20337 [ 40.849] (II) AMDGPU(0): #1: hsize: 1280 vsize 1024 refresh: 76 vid: 36993 [ 40.849] (II) AMDGPU(0): #2: hsize: 1280 vsize 1024 refresh: 60 vid: 32897 [ 40.849] (II) AMDGPU(0): #3: hsize: 1280 vsize 1024 refresh: 72 vid: 35969 [ 40.849] (II) AMDGPU(0): #4: hsize: 1600 vsize 1200 refresh: 60 vid: 16553 [ 40.849] (II) AMDGPU(0): #5: hsize: 1680 vsize 1050 refresh: 60 vid: 179 [ 40.849] (II) AMDGPU(0): #6: hsize: 1440 vsize 900 refresh: 75 vid: 3989 [ 40.849] (II) AMDGPU(0): #7: hsize: 1440 vsize 900 refresh: 60 vid: 149 [ 40.849] (II) AMDGPU(0): Supported detailed timing: [ 40.849] (II) AMDGPU(0): clock: 154.0 MHz Image Size: 519 x 324 mm [ 40.849] (II) AMDGPU(0): h_active: 1920 h_sync: 1968 h_sync_end 2000 h_blank_end 2080 h_border: 0 [ 40.849] (II) AMDGPU(0): v_active: 1200 v_sync: 1203 v_sync_end 1209 v_blanking: 1235 v_border: 0 [ 40.849] (II) AMDGPU(0): Supported detailed timing: [ 40.849] (II) AMDGPU(0): clock: 25.2 MHz Image Size: 376 x 301 mm [ 40.849] (II) AMDGPU(0): h_active: 640 h_sync: 656 h_sync_end 752 h_blank_end 800 h_border: 0 [ 40.849] (II) AMDGPU(0): v_active: 350 v_sync: 387 v_sync_end 389 v_blanking: 449 v_border: 0 [ 40.850] (II) AMDGPU(0): Ranges: V min: 56 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 175 MHz [ 40.850] (II) AMDGPU(0): Monitor name: PLE2400WS [ 40.850] (II) AMDGPU(0): EDID (in hex): [ 40.850] (II) AMDGPU(0): 00ffffffffffff0026cd015682c70000 [ 40.850] (II) AMDGPU(0): 2c1101036c342178ea5ad5a7564b9b24 [ 40.850] (II) AMDGPU(0): 135054bdef80714f81908180818ca940 [ 40.850] (II) AMDGPU(0): b300950f9500283c80a070b023403020 [ 40.850] (II) AMDGPU(0): 360007442100001ed50980a0205e6310 [ 40.850] (II) AMDGPU(0): 10605208782d1100001a000000fd0038 [ 40.850] (II) AMDGPU(0): 4c1e5311000a202020202020000000fc [ 40.850] (II) AMDGPU(0): 00504c453234303057530a0a0a0a0060 [ 40.850] (II) AMDGPU(0): Printing probed modes for output VGA-0 [ 40.850] (II) AMDGPU(0): Modeline "1920x1200"x60.0 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +hsync +vsync (74.0 kHz eP) [ 40.850] (II) AMDGPU(0): Modeline "1600x1200"x60.0 162.00 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync (75.0 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1280x1024"x76.0 141.81 1280 1376 1512 1744 1024 1025 1028 1070 -hsync +vsync (81.3 kHz) [ 40.850] (II) AMDGPU(0): Modeline "1280x1024"x75.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1280x1024"x72.0 132.84 1280 1368 1504 1728 1024 1025 1028 1067 -hsync +vsync (76.9 kHz) [ 40.850] (II) AMDGPU(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1440x900"x75.0 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync (70.6 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1440x900"x59.9 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync (55.9 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1152x864"x75.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1024x768"x70.1 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "832x624"x74.6 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "800x600"x72.2 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e) [ 40.850] (II) AMDGPU(0): Modeline "640x480"x72.8 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz e) [ 40.851] (II) AMDGPU(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e) [ 40.851] (II) AMDGPU(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e) [ 40.851] (II) AMDGPU(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e) [ 40.851] (II) AMDGPU(0): Modeline "640x350"x70.1 25.17 640 656 752 800 350 387 389 449 +hsync -vsync (31.5 kHz e) [ 40.851] (II) AMDGPU(0): Output DisplayPort-0 disconnected [ 40.851] (II) AMDGPU(0): Output DisplayPort-1 disconnected [ 40.851] (II) AMDGPU(0): Output VGA-0 connected [ 40.851] (II) AMDGPU(0): Using exact sizes for initial modes [ 40.851] (II) AMDGPU(0): Output VGA-0 using initial mode 1920x1200 +0+0 [ 40.851] (II) AMDGPU(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated. [ 40.851] (II) AMDGPU(0): mem size init: gart size :3fecd000 vram size: s:1f30e000 visible:1f30e000 [ 40.851] (==) AMDGPU(0): DPI set to (96, 96) [ 40.851] (II) Loading sub module "ramdac" [ 40.851] (II) LoadModule: "ramdac" [ 40.851] (II) Module "ramdac" already built-in [ 40.851] (--) Depth 24 pixmap format is 32 bpp [ 40.852] (II) AMDGPU(0): [DRI2] Setup complete [ 40.852] (II) AMDGPU(0): [DRI2] DRI driver: radeonsi [ 40.852] (II) AMDGPU(0): [DRI2] VDPAU driver: radeonsi [ 40.852] (II) AMDGPU(0): Front buffer pitch: 7680 bytes [ 40.855] (II) AMDGPU(0): SYNC extension fences enabled [ 40.855] (II) AMDGPU(0): Present extension enabled [ 40.855] (==) AMDGPU(0): DRI3 enabled [ 40.855] (==) AMDGPU(0): Backing store enabled [ 40.855] (II) AMDGPU(0): Direct rendering enabled [ 40.874] (II) AMDGPU(0): Use GLAMOR acceleration. [ 40.874] (II) AMDGPU(0): Acceleration enabled [ 40.874] (==) AMDGPU(0): DPMS enabled [ 40.874] (==) AMDGPU(0): Silken mouse enabled [ 40.875] (II) AMDGPU(0): Set up textured video (glamor) [ 40.876] (II) AMDGPU(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 40.877] (--) RandR disabled [ 40.902] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer [ 40.903] (II) AIGLX: enabled GLX_ARB_create_context [ 40.903] (II) AIGLX: enabled GLX_ARB_create_context_profile [ 40.903] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile [ 40.903] (II) AIGLX: enabled GLX_INTEL_swap_event [ 40.903] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control [ 40.903] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB [ 40.903] (II) AIGLX: enabled GLX_ARB_fbconfig_float [ 40.903] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float [ 40.903] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects [ 40.903] (II) AIGLX: enabled GLX_ARB_create_context_robustness [ 40.907] (II) AIGLX: Loaded and initialized radeonsi [ 40.907] (II) GLX: Initialized DRI2 GL provider for screen 0 [ 40.909] (II) AMDGPU(0): Setting screen physical size to 508 x 317 [ 41.312] (II) config/devd: probing input devices... [ 41.312] (II) config/devd: adding input device (null) (/dev/kbdmux) [ 41.313] (II) LoadModule: "kbd" [ 41.314] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so [ 41.315] (II) Module kbd: vendor="X.Org Foundation" [ 41.315] compiled for 1.18.4, module version = 1.9.0 [ 41.315] Module class: X.Org XInput Driver [ 41.315] ABI class: X.Org XInput driver, version 22.1 [ 41.315] (II) Using input driver 'kbd' for 'kbdmux' [ 41.315] () kbdmux: always reports core events [ 41.315] () kbdmux: always reports core events [ 41.315] () Option "Protocol" "standard" [ 41.315] () Option "XkbRules" "base" [ 41.315] () Option "XkbModel" "pc105" [ 41.315] () Option "XkbLayout" "us" [ 41.315] () Option "config_info" "devd:kbdmux" [ 41.315] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6) [ 41.316] (II) config/devd: kbdmux is enabled, ignoring device ukbd0 [ 41.316] (II) config/devd: kbdmux is enabled, ignoring device atkbd0 [ 41.316] (II) config/devd: adding input device (null) (/dev/sysmouse) [ 41.316] (II) LoadModule: "mouse" [ 41.317] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so [ 41.318] (II) Module mouse: vendor="X.Org Foundation" [ 41.318] compiled for 1.18.4, module version = 1.9.3 [ 41.318] Module class: X.Org XInput Driver [ 41.318] ABI class: X.Org XInput driver, version 22.1 [ 41.318] (II) Using input driver 'mouse' for 'sysmouse' [ 41.318] () sysmouse: always reports core events [ 41.318] () Option "Device" "/dev/sysmouse" [ 41.319] (==) sysmouse: Protocol: "Auto" [ 41.319] () sysmouse: always reports core events [ 41.319] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50 [ 41.319] () sysmouse: ZAxisMapping: buttons 4 and 5 [ 41.319] () sysmouse: Buttons: 5 [ 41.319] () Option "config_info" "devd:sysmouse" [ 41.319] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7) [ 41.319] () sysmouse: (accel) keeping acceleration scheme 1 [ 41.319] () sysmouse: (accel) acceleration profile 0 [ 41.319] () sysmouse: (accel) acceleration factor: 2.000 [ 41.319] (**) sysmouse: (accel) acceleration threshold: 4 [ 41.319] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0 [ 41.319] (II) sysmouse: SetupAuto: protocol is SysMouse [ 41.319] (II) config/devd: device /dev/ums0 already opened

`

Stefar77 commented 5 years ago

You can close this issue, I'll just kldload linprocfs and mount it after Xorg started. You guys may wanna look into this issue further but for now I have a workaround.

@zeising by the way thanks for the quick support.. :+1:

johalun commented 5 years ago

This is weird indeed. I think we'll keep this around for further investigation. I've never seen this on my Intel or AMD machines and I use linprocfs on all of them. Do you load linprocfs module? I never load explicitly, only have the entry in /etc/fstab and let it load the module on request.

Stefar77 commented 5 years ago

@johalun I had linprocfs_load="YES" in loader.conf and when I remarked that line Xorg started again. I now have linprocfs next to amdgpu in kld_list in rc.conf and that solved the issue. I also created a shell script to mount /compat/linux/proc.

I also use linprocfs on other machines but I normally only use Nvidia or Intel so this was new for me. Found the solution by accident didn't suspect linprocfs.ko, last thing I tried was remark the only line I left unremarked in the loader.conf and then Xorg started again. :-)

mattmacy commented 5 years ago

@Stefar77 My guess is linprocfs is a red herring. I've seen issues with radeonkms not always seeing a correctly initialized BIOS ROM on my Talos II. I've taking to cycling the card through the D0->D3 state which works ~95% of the time. It may be your hardware needs the same hackery.

mattmacy commented 5 years ago

@Stefar77 can we close this?

Stefar77 commented 5 years ago

@mattmacy Yes, I solved my problem with a script that loads the modules after boot. Already using it in production so I already sort-of forgot about this. :-)