Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segfault in startx, 5.4.* kernel with multiple gpus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
letothesecondth
n00b
n00b


Joined: 13 Apr 2020
Posts: 1

PostPosted: Mon Apr 13, 2020 6:51 pm    Post subject: Segfault in startx, 5.4.* kernel with multiple gpus Reply with quote

I've used Gentoo for a little over a year now, and can usually fix any errors that occur, however this one has me stumped. I've got a self-built desktop that I use for engineering/university work, development, and personal use. I've decided to completely remove my windows partition, and dual boot just Gentoo and OpenBSD. However, I still need Windows for some proprietary software that's GPU intensive (CAD and some gaming). I also need to be able to do GPU passthrough for some driver work I've been doing on OpenBSD, as I'd like to do testing on fresh installs in a VM. I use Gentoo most of the time so this would simplify things for me. The desktop runs an Intel i7 9700k and an AMD Radeon VII. My plan was to use the iGPU on the CPU as graphics for Gentoo when I'm having to use GPU passthrough, and when I'm not just the Radeon VII for Gentoo as I've been doing. Here's my Xorg.0.log from an attempt to blacklist the AMD card.
Code:

[    30.921]
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[    30.921] Build Operating System: Linux 5.4.28-gentoo_1 x86_64 Gentoo
[    30.921] Current Operating System: Linux jacurutu 5.4.31-gentoo_1 #1 SMP PREEMPT Sun Apr 12 21:23:01 CDT 2020 x86_64
[    30.921] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.31-gentoo_1 root=UUID=557784ed-b275-4612-94f3-0206c32f878a ro intel_iommu=on pcie_acs_override=downstream,multifunction i915.enable_guc=2 modprobe.blacklist=amdgpu
[    30.922] Build Date: 12 April 2020  12:14:11PM
[    30.922] 
[    30.922] Current version of pixman: 0.38.4
[    30.922]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    30.922] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    30.923] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 12 22:35:30 2020
[    30.927] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    30.927] (==) No Layout section.  Using the first Screen section.
[    30.927] (==) No screen section available. Using defaults.
[    30.927] (**) |-->Screen "Default Screen Section" (0)
[    30.927] (**) |   |-->Monitor "<default monitor>"
[    30.928] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    30.928] (==) Automatically adding devices
[    30.928] (==) Automatically enabling devices
[    30.928] (==) Automatically adding GPU devices
[    30.928] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    30.930] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    30.930]    Entry deleted from font path.
[    30.930] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    30.930]    Entry deleted from font path.
[    30.930] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    30.930]    Entry deleted from font path.
[    30.932] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    30.932]    Entry deleted from font path.
[    30.932]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    30.932] (==) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/100dpi/
[    30.932] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    30.932] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    30.932] (II) Loader magic: 0x556a4c7fad00
[    30.932] (II) Module ABI versions:
[    30.932]    X.Org ANSI C Emulation: 0.4
[    30.932]    X.Org Video Driver: 24.1
[    30.932]    X.Org XInput driver : 24.1
[    30.932]    X.Org Server Extension : 10.0
[    30.933] (++) using VT number 1

[    30.936] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    30.937] (II) xfree86: Adding drm device (/dev/dri/card0)
[    30.938] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[    30.945] (--) PCI:*(0@0:2:0) 8086:3e98:1458:d000 rev 2, Mem @ 0xab000000/16777216, 0x40000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[    30.945] (--) PCI: (3@0:0:0) 1002:66af:1002:081e rev 193, Mem @ 0x80000000/268435456, 0x90000000/2097152, 0xac100000/524288, I/O @ 0x00004000/256, BIOS @ 0x????????/131072
[    30.945] (II) LoadModule: "glx"
[    30.946] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    30.956] (II) Module glx: vendor="X.Org Foundation"
[    30.956]    compiled for 1.20.7, module version = 1.0.0
[    30.956]    ABI class: X.Org Server Extension, version 10.0
[    30.956] (==) Matched intel as autoconfigured driver 0
[    30.956] (==) Matched modesetting as autoconfigured driver 1
[    30.956] (==) Matched fbdev as autoconfigured driver 2
[    30.956] (==) Matched vesa as autoconfigured driver 3
[    30.956] (==) Assigned the driver to the xf86ConfigLayout
[    30.956] (II) LoadModule: "intel"
[    30.956] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[    30.959] (II) Module intel: vendor="X.Org Foundation"
[    30.959]    compiled for 1.20.7, module version = 2.99.917
[    30.959]    Module class: X.Org Video Driver
[    30.959]    ABI class: X.Org Video Driver, version 24.1
[    30.959] (II) LoadModule: "modesetting"
[    30.960] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    30.961] (II) Module modesetting: vendor="X.Org Foundation"
[    30.961]    compiled for 1.20.7, module version = 1.20.7
[    30.961]    Module class: X.Org Video Driver
[    30.961]    ABI class: X.Org Video Driver, version 24.1
[    30.961] (II) LoadModule: "fbdev"
[    30.962] (WW) Warning, couldn't open module fbdev
[    30.962] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    30.962] (II) LoadModule: "vesa"
[    30.963] (WW) Warning, couldn't open module vesa
[    30.963] (EE) Failed to load module "vesa" (module does not exist, 0)
[    30.963] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    30.964] (II) intel: Driver for Intel(R) HD Graphics
[    30.964] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    30.964] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    30.964] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    30.964] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20190822
[    30.977] (WW) Falling back to old probe method for modesetting
[    30.977] (--) intel(0): gen9 engineering sample
[    30.977] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 8 threads
[    30.978] (II) intel(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[    30.978] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    30.978] (==) intel(0): RGB weight 888
[    30.978] (==) intel(0): Default visual is TrueColor
[    30.979] (II) intel(0): Output DP1 has no monitor section
[    30.979] (II) intel(0): Enabled output DP1
[    30.979] (II) intel(0): Output HDMI1 has no monitor section
[    30.980] (II) intel(0): Enabled output HDMI1
[    30.980] (II) intel(0): Output DP2 has no monitor section
[    30.980] (II) intel(0): Enabled output DP2
[    30.980] (II) intel(0): Output HDMI2 has no monitor section
[    30.980] (II) intel(0): Enabled output HDMI2
[    30.980] (II) intel(0): Output HDMI3 has no monitor section
[    30.981] (II) intel(0): Enabled output HDMI3
[    30.981] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    30.981] (II) intel(0): Output VIRTUAL1 has no monitor section
[    30.981] (II) intel(0): Enabled output VIRTUAL1
[    30.981] (--) intel(0): Output HDMI3 using initial mode 3440x1440 on pipe 0
[    30.981] (==) intel(0): TearFree enabled
[    30.981] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    30.982] (==) intel(0): DPI set to (96, 96)
[    30.982] (II) Loading sub module "present"
[    30.982] (II) LoadModule: "present"
[    30.982] (II) Module "present" already built-in
[    30.982] (II) UnloadModule: "modesetting"
[    30.982] (II) Unloading modesetting
[    30.982] (II) intel(0): SNA initialized with Coffeelake (gen9) backend
[    30.982] (==) intel(0): Backing store enabled
[    30.982] (==) intel(0): Silken mouse enabled
[    30.982] (II) intel(0): HW Cursor enabled
[    30.983] (==) intel(0): DPMS enabled
[    30.983] (==) intel(0): Display hotplug detection enabled
[    30.984] (EE)
[    30.984] (EE) Backtrace:
[    30.984] (EE) 0: /usr/bin/X (xorg_backtrace+0x79) [0x556a4c76ea79]
[    30.984] (EE) 1: /usr/bin/X (0x556a4c5c5000+0x1ad705) [0x556a4c772705]
[    30.984] (EE) 2: /lib64/libpthread.so.0 (0x7f5eb9ef9000+0x14790) [0x7f5eb9f0d790]
[    30.984] (EE) 3: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5eb97c2000+0x6e212) [0x7f5eb9830212]
[    30.984] (EE) 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5eb97c2000+0xb75e1) [0x7f5eb98795e1]
[    30.984] (EE) 5: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5eb97c2000+0xb52f1) [0x7f5eb98772f1]
[    30.984] (EE) 6: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f5eb97c2000+0x7ef7d) [0x7f5eb9840f7d]
[    30.984] (EE) 7: /usr/bin/X (AddScreen+0xd6) [0x556a4c61c5e6]
[    30.985] (EE) 8: /usr/bin/X (InitOutput+0x2bf) [0x556a4c65c4ff]
[    30.985] (EE) 9: /usr/bin/X (0x556a4c5c5000+0x5b273) [0x556a4c620273]
[    30.985] (EE) 10: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f5eb9d49f1b]
[    30.985] (EE) 11: /usr/bin/X (_start+0x2a) [0x556a4c60a1da]
[    30.985] (EE)
[    30.985] (EE) Segmentation fault at address 0x11
[    30.985] (EE)
Fatal server error:
[    30.985] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    30.985] (EE)
[    30.985] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    30.985] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    30.985] (EE)


I get the same exact crash without blacklisting the AMD card as well. I've tried this on both the 5.4.28 and 5.4.31 kernels. I've used the same specification to enable the intel drivers as listed on the wiki. The only way I can get gentoo to run as normal is when I disable the iGPU in the BIOS. If I boot in specifying to use the iGPU, the screen goes black when the desktop tries to load XDM (SDDM in my case).
Here's my emerge --info if any of this is relevant, such as the VIDEO_CARDS flags.
Code:

Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.0/hardened/selinux, gcc-9.2.0, glibc-2.29-r7, 5.4.31-gentoo_1 x86_64)
=================================================================
System uname: Linux-5.4.31-gentoo_1-x86_64-Intel-R-_Core-TM-_i7-9700K_CPU_@_3.60GHz-with-gentoo-2.6
KiB Mem:    65859196 total,  56272384 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Sun, 12 Apr 2020 15:30:01 +0000
Head commit of repository gentoo: b793f35f929b15d55e557363b33a8d6ac4497505
Timestamp of repository Drauthius: Tue, 07 Apr 2020 21:06:29 +0000
Head commit of repository Drauthius: 2e4a6b033ed6b848296755be4207c0fa64549821

Timestamp of repository haskell: Sun, 12 Apr 2020 13:05:57 +0000
Head commit of repository haskell: 44c516f3c3e16597058a686402f6aba0915140cd

Timestamp of repository libressl: Sun, 12 Apr 2020 15:36:02 +0000
Head commit of repository libressl: 57d6081a64446d9bd6002b2e4d50e611fd9611f4

Head commit of repository flatpak-overlay: 2bcc4b030ff8288683533a84f15777680c8c883e

Head commit of repository steam-overlay: c63523eabba3d5f70a495e63d366111089ea27cc

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

Drauthius
    location: /var/db/repos/Drauthius
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/Drauthius.git
    masters: gentoo

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

libressl
    location: /var/db/repos/libressl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/libressl.git
    masters: gentoo

flatpak-overlay
    location: /usr/local/portage/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O3 -pipe -march=native -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-O3 -pipe -march=native -flto"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O3 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=native"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bzip2 clang crypt dbus dhclient elogind gui hardened iconv ipv6 java libressl libtirpc llvm lz4 multiboot multilib ncurses networkmanager nls nptl open_perms opencl opengl openmp pam pcre peer_perms pie plasma polkit pulseaudio qt5 readline sddm seccomp selinux split-usr sqlite ssl ssp thunderbolt unicode vim-syntax vulkan wayland widgets xattr xinerama xtpax zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi intel i915 fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I can post my kernel config as well if that would be useful. Thanks in advance for any help or advice you have to offer ! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum