Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2019 14:31:21 +0200
From:      Gary Jennejohn <gljennjohn@gmail.com>
To:        Miranda van den Breukelingen <mms.vanbreukelingen@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Problems with AMDGPU and two grafic cards
Message-ID:  <20191018143121.038b4990@ernst.home>
In-Reply-To: <4c94a2f5-4bca-33fe-7c5c-85a58d4e4d89@gmail.com>
References:  <mailman.69.1571313603.12335.freebsd-x11@freebsd.org> <76704353-023d-347d-5704-335582473082@gmail.com> <20191017173204.3a14266d@ernst.home> <4c94a2f5-4bca-33fe-7c5c-85a58d4e4d89@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Oct 2019 11:55:38 +0200
Miranda van den Breukelingen <mms.vanbreukelingen@gmail.com> wrote:

> Having BIOS reversion 5220 and something changed, but not as desired.
> This is the log:
> 
[snip]
> Oct 18 05:48:02 freebsd13 kernel: drmn0: amdgpu_device_ip_init failed
> Oct 18 05:48:02 freebsd13 kernel: drmn0: Fatal error during GPU init
> Oct 18 05:48:02 freebsd13 kernel: [drm] amdgpu: finishing device.
> 

I have no idea whether the "Fatal error" above will render your card
unusable.

But here's a thread on freebsd-current about drm-devel-kmod having a
bug which makes it fail.  Don't know whether you're using it.  Anyway,
it's the "DRM-current-kmod is still a problem at r353339" thread.

> after doing hw.syscons.disable=1, I'm getting an grafical screen, where
> you an see that it's booting boot not anything else, sometimes the
> monitor is completely off but can't find to Xorg. Here's the Xorg.log
> 
> [____ 120.717] (--) Log file renamed from "/var/log/Xorg.pid-4712.log" to
> "/var/log/Xorg.0.log"
> [____ 120.718]
> X.Org X Server 1.18.4
> Release Date: 2016-07-19
> [____ 120.718] X Protocol Version 11, Revision 0
> [____ 120.718] Build Operating System: FreeBSD 13.0-CURRENT amd64
> [____ 120.718] Current Operating System: FreeBSD freebsd13 13.0-CURRENT
> FreeBSD 13.0-CURRENT #0 r353710: Fri Oct 18 05:30:18 CEST 2019________
> root@freebsd13:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> [____ 120.719] Build Date: 10 October 2019__ 06:43:10AM
> [____ 120.719]
> [____ 120.719] Current version of pixman: 0.38.4
> [____ 120.719]________ Before reporting problems, check http://wiki.x.org
> ______ to make sure that you have the latest version.
> [____ 120.719] Markers: (--) probed, (**) from config file, (==) default
> setting,
> ______ (++) from command line, (!!) notice, (II) informational,
> ______ (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> [____ 120.719] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 18
> 08:31:12 2019
> [____ 120.720] (==) Using system config directory
> "/usr/local/share/X11/xorg.conf.d"
> [____ 120.720] (==) No Layout section.__ Using the first Screen section.
> [____ 120.720] (==) No screen section available. Using defaults.
> [____ 120.720] (**) |-->Screen "Default Screen Section" (0)
> [____ 120.720] (**) |____ |-->Monitor "<default monitor>"
> [____ 120.720] (==) No monitor specified for screen "Default Screen Section".
> ______ Using a default monitor configuration.
> [____ 120.720] (==) Automatically adding devices
> [____ 120.720] (==) Automatically enabling devices
> [____ 120.721] (==) Not automatically adding GPU devices
> [____ 120.721] (==) Max clients allowed: 256, resource mask: 0x1fffff
> [____ 120.721] (==) 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/
> [____ 120.721] (==) ModulePath set to "/usr/local/lib/xorg/modules"
> [____ 120.721] (II) The server relies on devd to provide the list of input
> devices.
> ______ If no devices become available, reconfigure devd or disable
> AutoAddDevices.
> [____ 120.721] (II) Loader magic: 0x42a010
> [____ 120.721] (II) Module ABI versions:
> [____ 120.721]________ X.Org ANSI C Emulation: 0.4
> [____ 120.721]________ X.Org Video Driver: 20.0
> [____ 120.721]________ X.Org XInput driver : 22.1
> [____ 120.721]________ X.Org Server Extension : 9.0
> [____ 120.721] (WW) checkDevMem: failed to open /dev/mem (Operation not
> permitted)
> [____ 120.722] (II) LoadModule: "glx"
> [____ 120.722] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
> [____ 120.724] (II) Module glx: vendor="X.Org Foundation"
> [____ 120.724]________ compiled for 1.18.4, module version = 1.0.0
> [____ 120.724]________ ABI class: X.Org Server Extension, version 9.0
> [____ 120.724] (==) AIGLX enabled
> [____ 120.724] (==) Matched modesetting as autoconfigured driver 0
> [____ 120.724] (==) Matched scfb as autoconfigured driver 1
> [____ 120.724] (==) Matched vesa as autoconfigured driver 2
> [____ 120.725] (==) Assigned the driver to the xf86ConfigLayout
> [____ 120.725] (II) LoadModule: "modesetting"
> [____ 120.725] (II) Loading
> /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
> [____ 120.725] (II) Module modesetting: vendor="X.Org Foundation"
> [____ 120.725]________ compiled for 1.18.4, module version = 1.18.4
> [____ 120.725]________ Module class: X.Org Video Driver
> [____ 120.726]________ ABI class: X.Org Video Driver, version 20.0
> [____ 120.726] (II) LoadModule: "scfb"
> [____ 120.726] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
> [____ 120.726] (II) Module scfb: vendor="X.Org Foundation"
> [____ 120.726]________ compiled for 1.18.4, module version = 0.0.4
> [____ 120.726]________ ABI class: X.Org Video Driver, version 20.0
> [____ 120.727] (II) LoadModule: "vesa"
> [____ 120.727] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
> [____ 120.727] (II) Module vesa: vendor="X.Org Foundation"
> [____ 120.727]________ compiled for 1.18.4, module version = 2.4.0
> [____ 120.727]________ Module class: X.Org Video Driver
> [____ 120.727]________ ABI class: X.Org Video Driver, version 20.0
> [____ 120.727] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> [____ 120.728] (II) scfb: driver for wsdisplay framebuffer: scfb
> [____ 120.728] (II) VESA: driver for VESA chipsets: vesa
> [____ 120.728] (--) Using syscons driver with X support (version 2.0)
> [____ 120.728] (++) using VT number 9
> 
> [____ 120.728] (WW) xf86EnableIO: Failed to open /dev/io for extended
> I/O(WW) Falling back to old probe method for modesetting
> [____ 120.728] (EE) open /dev/dri/card0: Operation not supported by device
> [____ 120.728] (WW) Falling back to old probe method for scfb
> [____ 120.728] scfb trace: probe start
> [____ 120.729] scfb trace: probe done
> [____ 120.729] (EE) No devices detected.
> [____ 120.729] (EE)
> Fatal server error:
> [____ 120.729] (EE) no screens found(EE)
> [____ 120.729] (EE)
> Please consult the The X.Org Foundation support
> ________ at http://wiki.x.org
> __for help.
> [____ 120.729] (EE) Please also check the log file at
> "/var/log/Xorg.0.log" for additional information.
> [____ 120.729] (EE)
> [____ 120.729] (EE) Server terminated with error (1). Closing log file.
> 
> after a fresh installation and a recent built of world and kernel. Do I
> need to change something in UE__FI BIOS?
> 

I notice several problems here:
1) Xorg can't access /dev/mem and /dev/io.  You might need to set
Xorg suid root (see chmod(1)). My Xorg is suid root and I do not
see these kinds of errors.
2) Xorg doesn't know that it has to load the amdgpu driver.  It
pretty much loads all the standard drivers, but that doesn't do
you much good.  You probably need to create a /etc/X11/xorg.conf
to force Xorg to load the driver.  I use nvidia-driver and have
this entry in xorg.conf to get Xorg to load it:

Section "Device"
	Identifier     "GeForce750"
	Driver         "nvidia"
EndSection

You can simply replace nvidia with amdgpu and Geforce750 with the
name of your card.  That might help.

-- 
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191018143121.038b4990>