New: xorg hangs at initial startup on linux-4.9.0
https://bugs.freedesktop.org/show_bug.cgi?id=99147
Bug ID: 99147
Summary: xorg hangs at initial startup on linux-4.9.0
Product: xorg
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: gleb-97jfqw80gc5Wk0Htik3J/[email protected]
QA Contact: [email protected]
Created attachment 128563
--> https://bugs.freedesktop.org/attachment.cgi?id=128563&action=edit
nouveau
The issue start to appear after upgrading to Kernel 4.9.0. Before that, on 4.8.14 everything seems to be fine.
I have Lenovo B560 laptop with Intel Core i5 560M and Iron Lake GPU, Nvidia 310M, so it's an Optimus laptop. I have external monitor connected to HDMI port.
Components when the probelm could be reproduced:
- gentoo almost stable
- mesa 12.0.1 or 13.0.2;
- libdrm 2.4.68 or 2.4.73
- xorg 1.18.4 or 1.19.0
- intel xf86 driver snapshot or modesetting driver
- nouveau 1.0.12 or 1.0.13
- libinput 1.5.3, libevdev 1.5.2
- xfce, polkit, consolekit, dbus, etc.
So just after all services started and lightdm expected to appear with login screen, instead I can only see console login screen and nothing appears on tty7 also.
Xorg.log.0 shows no errors, dmesg is also empy (even with debug level 4). I can't reboot system after that as Xorg has red D symbol and cannot be killed, so SysRq is used.
I blacklisted nouveau driver and it helped, so I can boot to the system normally and after that I can load the nouveau module manually and even restart Xorg.
Xorg.log.0 hangs on the following item:
[ 14.361] (II) xfree86: Adding drm device (/dev/dri/card1)
syslog kernel with nouveau filtered (only one time I enabled debug level when the I had the problem).
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #1 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Created attachment 128564
--> https://bugs.freedesktop.org/attachment.cgi?id=128564&action=edit
kernel syslog
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #2 from Karol Herbst <[email protected]> --- does booting with nouveau not blacklisted and with "nouveau.runpm=0" help?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #3 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Yes, kernel boots with this option. The only disadvantage is that in this case nvidia GPU will always stay powered on, probably could be solved with bbswitch.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #4 from Karol Herbst <[email protected]> --- (In reply to Gleb from comment #3)
Quoted 3 lines
Yes, kernel boots with this option. The only disadvantage is that in this case nvidia GPU will always stay powered on, probably could be solved with bbswitch.
bbswitch won't help if nouveau is loaded.
If this is indeed a regression in 4.9, could you try and bisect this?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #5 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Well, I may need some guide or a at least some sort of explanation (probably short) what to do as this is completely new for me. Will this guide work for this task?
https://wiki.gentoo.org/wiki/Kernel_git-bisect
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #6 from Peter Wu <[email protected]> --- Nothing unusual in logs. Can you reproduce the lockup issue if you boot to a console (disable sddm), then invoke "lspci", wait for at least 5 seconds, then repeat "lspci" again? (Have a look at dmesg for unusual messages.)
If lspci hangs, then there is a problem (and hopefully dmesg is more helpful). Can you also confirm that downgrading just the kernel (while keeping the rest of userspace the same) makes the problem disappear?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #7 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- lspci doesn't hang when I invoke it from console. I also tried startx and startxfce4 from console and it worked, so it probably some other thing?
I can confirm that the issue occured on 4.9.0 and did not occur on 4.8.14 on the same userspace stuff. I only started upgrading it after multiple unseccessfull reboots into 4.9.0. So I had stable stuff, tested 4.8.14 (no problem) and 4.9.0 (problem persist). Then upgraded stuff, tested on 4.8.14 (no problem) and 4.9.0 (problem persist).
I also recompiled 4.9.0 at some point before testing lspci (but not specifically for that, I will try to revert the changes) so that it includes nouveau into kernel and not as a module, though it still have the same issue. Does it matter in what form nouveau is presented?
I want to clarify that the only process that hangs is Xorg (and probably another which I noticed right now -- libvirtd, it also has red D symbol). The system continue to work, I have access to console and can run stuff from there.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #8 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Created attachment 128590
--> https://bugs.freedesktop.org/attachment.cgi?id=128590&action=edit
1st attempt: before lscpi
TL;DR lspci hangs on first invocation
I tried few more things, step by step:
1) removed kernel 4.9.0, modules, config, etc
2) tried 4.8.15 -- everything is fine, no hanging
3) installed 4.9.0 from scratch:
- redownloaded sources (gentoo-sources)
- copied old config from 4.8.{14,15}, so nouveau built as external module
- make silentoldconfig, for everything new I just press <enter>
- built, installed the kernel as did it before with the same steps
Conclusion:
- 4.8.14 -- OK
- 4.8.15 -- OK
- 4.9.0 -- fail (xorg hangs)
Then I tired suggested steps:
- disabled xdm, system boots to text console
- in 2nd attempt additionally disabled libvirtd
In both cases lspci just hangs without any output with red D status. At first attempt libvirtd also was with red D status, at second there wasn't libvirtd started.
Userspace stuff with for all actions was the same:
- mesa-13.0.2
- libdrm-2.4.74
- xorg-1.19.0
- xf86-video-intel (snapshot from 12 December 2016)
- xf86-video-nouveau-1.0.13
- libinput-1.5.3
- libevdev 1.5.2
dmesg attached, with "drm.debug=0x1e log_buf_len=1M", two attemps with 2 log files (before invoking lspci and after).
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
--- Comment #9 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Created attachment 128591
--> https://bugs.freedesktop.org/attachment.cgi?id=128591&action=edit
1st attempt: after lscpi
I think those logs will be enough. If necessary I can attach more, but I think that 2nd attempt looks the same.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gleb-97jfqw80gc5Wk0Htik3J/[email protected]
--- Comment #10 from Gleb <gleb-97jfqw80gc5Wk0Htik3J/[email protected]> --- Created attachment 128607
--> https://bugs.freedesktop.org/attachment.cgi?id=128607&action=edit
bisect.log
So I bisected a kernel and come to the same conclusin as in this bug
https://bugs.freedesktop.org/show_bug.cgi?id=98690
bisect.log attached. I assume that this bug probably can be closed as duplicate and I can move to the previous one?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 99147] xorg hangs at initial startup on linux-4.9.0
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=99147
Peter Wu <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
CC| |[email protected]
Status|NEW |RESOLVED--- Comment #11 from Peter Wu <[email protected]> --- Seems related indeed, marking as dup.
*** This bug has been marked as a duplicate of bug 98690 ***
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau