Closed Stefar77 closed 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!
Also, which of the drm kmod ports are you using, and can you please verify which kmod you are loading. Thanks!
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.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. :-(
Can you test without any config for X?
` 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.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.
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?
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.. :-)
How do you load the module? What happens if you start X as your normal user (that need to be in the video group)?
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.
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!
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 :-)
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.
Ok, I think I have a solution. When I do not load linprocfs and remove the /compat/linux/proc mount it works. :-/
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.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
`
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:
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.
@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. :-)
@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.
@Stefar77 can we close this?
@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. :-)
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.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.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.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?