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.
Created attachment 521800 [details] dmesg output
Created attachment 521802 [details] journalctl log
Created attachment 521804 [details] kernel config (4.14.22)
Created attachment 521806 [details] kernel config (4.15.7-r1)
> 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
Maybe related bugs: https://devtalk.nvidia.com/default/topic/1029625/linux/no-sys-class-drm-card0-entries-on-kernel-4-15/1 https://bugs.archlinux.org/task/57305
I created this topic: https://devtalk.nvidia.com/default/topic/1030630/linux/driver-390-25-causes-system-hang-freeze-on-linux-kernel-4-15-boot/
Created bug in kernel Bugzilla as well: https://bugzilla.kernel.org/show_bug.cgi?id=199015
Bug still can be reproduced on Linux kernel 4.15.13 with latest NVIDIA drivers 390.42.
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.
Bug is fixed in 390.48 NVIDIA drivers.