Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649298 - x11-drivers/nvidia-drivers 390.25 with sys-kernel/gentoo-sources 4.15.7-r1 fails to boot (system hang)
Summary: x11-drivers/nvidia-drivers 390.25 with sys-kernel/gentoo-sources 4.15.7-r1 fa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 23:43 UTC by Viktor Levin
Modified: 2018-04-01 16:49 UTC (History)
1 user (show)

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


Attachments
dmesg output (dmesg.txt,81.20 KB, text/plain)
2018-03-01 23:45 UTC, Viktor Levin
Details
journalctl log (systemd.txt,154.78 KB, text/plain)
2018-03-01 23:46 UTC, Viktor Levin
Details
kernel config (4.14.22) (kernel_4_14_22.txt,150.49 KB, text/plain)
2018-03-01 23:47 UTC, Viktor Levin
Details
kernel config (4.15.7-r1) (kernel_4_15_7_r1.txt,151.75 KB, text/plain)
2018-03-01 23:47 UTC, Viktor Levin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Levin 2018-03-01 23:43:37 UTC
On my PC, I use default/linux/amd64/17.1/systemd profile and:
- sys-devel/gcc-7.3.0
- sys-firmware/intel-microcode-20171117-r1
- x11-base/xorg-server-1.19.6-r1
- x11-misc/lightdm-1.24.0-r1
- sys-boot/plymouth-0.9.3-r1
- sys-apps/systemd-237-r2
- x11-wm/awesome-4.2

I always use NVIDIA GeForce GTX 960 and 2 monitors connected to this card using 2 DisplayPorts. In UEFI, I always have Intel CPU graphics disabled. So NVIDIA is my the only graphics card. In my initramfs, I have the following /etc/modprobe.d/xxx.conf:

> blacklist i915
> blacklist nouveau
> options nvidia_drm modeset=1

In my lightdm.conf, I have:

> display-setup-script=/etc/do_setup_for_lightdm.sh

In my /etc/do_setup_for_lightdm.sh executable, I have:

> #!/usr/bin/env bash
> xrandr --output DP-4 --off
> xdotool mousemove 1280 600
> numlockx

I tried x11-drivers/nvidia-drivers-390.25 with sys-kernel/gentoo-sources-4.14.22 and all worked properly (as usual).

But when I switched to sys-kernel/gentoo-sources-4.15.7-r1, I faced an issue. System started, showed the Plymouth logo, then displayed systemd agetty greeting (as usual), then tried to launch systemd. But lightdm did not start. I faced system hang. Keyboard didn't work. Then I connected to my PC from my notebook via ssh and obtained dmesg.txt (see attachment). I tried to run "sync && systemctl reboot" but my PC did not reboot for some reason. I had to reboot it manually using reset button. After that, I rebooted to my 4.14.22 kernel, performed fsck.ext4, fixed some errors, launched Gentoo Linux on PC and executed "journalctl -a -b -1" (see attachment).

Please help.
Comment 1 Viktor Levin 2018-03-01 23:45:54 UTC
Created attachment 521800 [details]
dmesg output
Comment 2 Viktor Levin 2018-03-01 23:46:30 UTC
Created attachment 521802 [details]
journalctl log
Comment 3 Viktor Levin 2018-03-01 23:47:29 UTC
Created attachment 521804 [details]
kernel config (4.14.22)
Comment 4 Viktor Levin 2018-03-01 23:47:49 UTC
Created attachment 521806 [details]
kernel config (4.15.7-r1)
Comment 5 Viktor Levin 2018-03-01 23:49:52 UTC
> Mar 02 00:31:40 xxxxx kernel: BUG: unable to handle kernel paging request at ffff922fd7595880
> Mar 02 00:31:40 xxxxx kernel: IP: _nv015074rm+0x614/0x780 [nvidia]
> Mar 02 00:31:40 xxxxx kernel: PGD 26c9c9067 P4D 26c9c9067 PUD 0 
> Mar 02 00:31:40 xxxxx kernel: Oops: 0000 [#1] SMP PTI

Probably the same bug on Fedora:
https://devtalk.nvidia.com/default/topic/1030455/linux/fedora-27-geforce-gt-640m-le-driver-390-25-kernel-4-15-4-__schedule-oops-with-optimus-prime-synch-/

Probably similar bug on 4.15 kernel:
https://bugs.freedesktop.org/show_bug.cgi?id=104708
Comment 8 Viktor Levin 2018-03-05 19:42:19 UTC
Created bug in kernel Bugzilla as well:
https://bugzilla.kernel.org/show_bug.cgi?id=199015
Comment 9 Viktor Levin 2018-03-26 19:45:14 UTC
 Bug still can be reproduced on Linux kernel 4.15.13 with latest NVIDIA drivers 390.42.
Comment 10 Viktor Levin 2018-03-26 20:08:14 UTC
Possible solution:

https://git.archlinux.org/svntogit/packages.git/tree/trunk/4.15-FS57305.patch?h=packages/nvidia 

NVIDIA drivers until now only fully work with 4.15.* kernel using this patch.
Comment 11 Viktor Levin 2018-04-01 16:49:09 UTC
Bug is fixed in 390.48 NVIDIA drivers.