Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572752 - sys-kernel/gentoo-sources-4.1.15-r1: intel+nvidia black screen
Summary: sys-kernel/gentoo-sources-4.1.15-r1: intel+nvidia black screen
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-24 11:11 UTC by Garry Filakhtov
Modified: 2018-02-20 03:14 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Garry Filakhtov 2016-01-24 11:11:35 UTC
I have a following hardware:
- Intel Core i7 4770
- AsRock H87 Pro4
- ASUS GTX650-DC-1GD5 (Nvidia GTX 650)
- Two monitors, one attached to intel graphics, another one to Nvidia

I'm using pure UEFI boot with kernel stub. Asus card firmware is upgraded for UEFI GOP support.

I have two graphics cards: integrated intel and nvidia. Sometimes I use my Nvidia for KVM VFIO pass-through.

When I need to use VFIO I set my primary graphics to Intel inside UEFI setup and boot with modprobe.blacklist=nvidia. When I don't need to use VFIO I set Nvidia as primary and add modprobe.blacklist=i915.

After upgrading to kernel 4.1.15 I have a very strange behavior: plymouth is displayed on Intel-attached monitor, while diagnostic messages are displayed on Nvidia-attached monitor. When system finishes booting I'm getting black screen on Intel, some diagnostic messages like "starting systemd..." on Nvidia and I'm unable to access X or console. I can SSH into my machine and remotely it works just fine.

If I disconnect monitor from Nvidia - system works just perfectly on Intel card. I can attach monitor back to Nvidia after system finishes booting and use VFIO pass-through without any issues.

If I boot without any modprobe.blacklist options, I'm getting console on intel but X is running on nvidia, even if I set Intel as my primary card in UEFI settings.

This setup perfectly worked with kernel 4.1.12 and below.

Reproducible: Always

Steps to Reproduce:
1. Set primary VGA to Intel in UEFI
2. Attach monitors to both intel and nvidia cards
3. Boot with modprobe.blacklist=nvidia
Actual Results:  
Plymouth animation is displayed on intel during boot and then it goes black, diagnostic messages are displayed on nvidia and stay there forever.

Expected Results:  
X or console working on intel card, black screen on nvidia.
Comment 1 Garry Filakhtov 2016-01-24 15:26:47 UTC
After extensive debugging with different kernel switches and UEFI settings I found that switching from "Ultra Fastboot" to just "Fastboot" solves the issue. Buggy board FW?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-30 08:36:06 UTC
1) `emerge --info`?
2) `emerge -vpq x11-drivers/nvidia-drivers x11-base/xorg-server`?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-30 12:22:45 UTC
Or is this a CANTFIX?
Comment 4 Garry Filakhtov 2016-01-30 15:09:19 UTC
# emerge --info
Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/systemd, gcc-4.9.3, glibc-2.21-r1, 4.1.15-gentoo-r1-magnificus x86_64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-magnificus-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    15868356 total,  12088440 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sat, 30 Jan 2016 07:15:01 +0000
Timestamp of repository geekmagus: Fri, 29 Jan 2016 19:17:29 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc[23627] (dcc_mkdir) ERROR: mkdir '/var/tmp/portage/.distcc/state' failed: No such file or directory [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /var/pkg/portage
    sync-type: rsync
    sync-umask: 022
    sync-uri: rsync://emerald.de.dfn/gentoo-portage
    priority: 1

crossdev
    location: /var/pkg/crossdev
    masters: gentoo
    priority: 3

geekmagus
    location: /var/pkg/geekmagus
    sync-type: rsync
    sync-umask: 0022
    sync-uri: rsync://emerald.de.dfn/geekmagus-overlay
    sync-user: root:root
    masters: gentoo
    priority: 5

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2 -mavx -mavx2 -msse4.2 -msse4.1 -mtune=core-avx2 -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core-avx2 -mavx -mavx2 -msse4.2 -msse4.1 -mtune=core-avx2 -fstack-protector"
DISTDIR="/var/pkg/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j18 -l9"
PKGDIR="/var/pkg/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 bash-completion branding bzip2 caps cli cracklib crypt cryptsetup cups cxx dbus dri ffmpeg fortran gdbm gles1 gles2 gmp gnome-keyring gtk gtk3 iconv icu introspection lzma mmx mmxext modules mpfr multilib ncurses nls nptl openmp pam pcre pic policykit pulseaudio readline seccomp session sndfile sse sse2 ssl systemd threads udev unicode vaapi vdpau vim-syntax xa xattr xinerama zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="empty_gif fastcgi memcached rewrite cache_purge" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Garry Filakhtov 2016-01-30 15:11:00 UTC
# emerge -vpq x11-drivers/nvidia-drivers x11-base/xorg-server
[ebuild   R   ] x11-base/xorg-server-1.17.4  USE="kdrive nptl suid systemd udev xephyr xorg xvfb -dmx -doc -glamor -ipv6 (-libressl) -minimal (-selinux) -static-libs -tslib -unwind -wayland -xnest" 
[ebuild   R   ] x11-drivers/nvidia-drivers-355.11-r2  USE="X acpi gtk3 tools -gtk2 -multilib -pax_kernel -uvm"
Comment 6 Garry Filakhtov 2016-01-30 15:15:25 UTC
@Jeroen Roovers:
But I guess this is not related to xorg/nvidia-drivers because problem starts much earlier, during boot animation, from initrd (dracut in my case), even before root partition is mounted and init daemon (systemd in my case) starts.

Let me know if any additional information is needed.
Comment 7 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2018-02-17 00:46:25 UTC
any news on this bug?
Comment 8 Garry Filakhtov 2018-02-17 03:04:26 UTC
I'm on the different hardware and on the way newer kernel currently, so I can't provide any additional information. Sorry.
Comment 9 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2018-02-17 15:59:30 UTC
which kernel are you using ? is solved there ?
Comment 10 Garry Filakhtov 2018-02-18 00:08:11 UTC
I'm on a different hardware, with Intel graphics only and running 4.9.76 kernel, so I can't really provide any info.
Comment 11 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2018-02-20 03:14:29 UTC
cannot reproduce