[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-05-10 Thread Tomas Vanderka
Yes, dmesg output when X fails to start with that kernel is in comment #18 #19 is when it starts fine But when X failed to start it never even got to your debug code cause it failed in drm_ioctl with EACCESS as can be seen from drm debug output. This is where it tries to call drm_set_version and

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-05-09 Thread Bryce Harrington
Tomas, did you ever get a chance to test the kernel apw posted in comment #17? http://people.canonical.com/~apw/lp982889-precise/ ** Changed in: libdrm (Ubuntu) Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribe

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-23 Thread Joseph Salisbury
** Changed in: linux (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X trying to start faster than drm driver is ready To manage notification

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-22 Thread Tomas Vanderka
After disabling plymouth-splash I can't reproduce this anymore. It's a race between plymouth and xorg. Plymouth holds DRM master (drm_setmaster_ioctl) while xorg tries to start (drm_setversion) and fails with EACCESS because it needs DRM_MASTER for that. It works fine if 1. plymouth never starts

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-20 Thread Tomas Vanderka
Everything starts fine if nothing touches drm before X or it somehow finishes correctly before X tries to start i guess ... Apr 21 02:28:24 kujoniq kernel: [2.802193] [drm] Initialized i915 1.6.0 20080730 for :00:02.0 on minor 0 Apr 21 02:28:24 kujoniq kernel: [2.826851] [drm:drm_stub

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-20 Thread Tomas Vanderka
So I tried a few things with drm.debug=1 kernel param When I reproduce the problem, something (plymouth?) does drm stuff before xorg, and xorg then gets EACCESS error from drm_setversion ioctl (nr=0x07) and dmesg looks like this Apr 21 02:25:35 kujoniq kernel: [0.00] Command line: BOOT_I

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-20 Thread Andy Whitcroft
** Also affects: linux (Ubuntu) Importance: Undecided Status: New ** Changed in: linux (Ubuntu) Assignee: (unassigned) => Andy Whitcroft (apw) ** Changed in: linux (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu B

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-20 Thread Andy Whitcroft
Ok it is clear something odd going on with the drm ioctls. As there is little information in the X logs, I have put some debug in the kernel to try and help us understand this. If those of you who can reproduce this issue could try out the following kernels and report back. When you have success

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-17 Thread Tomas Vanderka
Maybe related to #927684 #899725 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X trying to start faster than drm driver is ready To manage notifications about this bug go to: https://

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
I looked at the code and it seems it fails somewhere in kernel drm_setversion ioctl after being called from libdrm drmSetInterfaceVersion. I guess it's because drm driver load didn't finish yet. And there are no usefull return values in the code involved so there's no way to know libdrm should t

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
** Attachment added: "dmesg-2012-04-17" https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889/+attachment/3080497/+files/dmesg-2012-04-17 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
** Attachment added: "Xorg.0.log-2012-04-17" https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889/+attachment/3080498/+files/Xorg.0.log-2012-04-17 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/b

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
udev log and corresponding dmesg and xorg log In this case it got to a state when lightdm/X thought it was doing fine, but i got black screen with blinking cursor + mouse pointer ** Attachment added: "udev.txt-2012-04-17" https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889/+attachmen

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
slangasek, we know that the drm driver can be opened by splash before its ready. we had to add an 'EAGAIN' failure there slangasek, we may or may not cope with that in userspace commit 6d74feca6235b463ade4ecddd1dfdb73d30a2ff7 Author: Andy Whitcroft Date: Thu Jul 29 16:48:21 2010 +0100

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
** Attachment added: "lshw.txt" https://bugs.launchpad.net/ubuntu/+source/libdrm/+bug/982889/+attachment/3080437/+files/lshw.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X try

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Tomas Vanderka
Putting "sleep 1" in /etc/init/lightdm.conf was enough. When i look at dmesg it says [2.263168] [drm] Initialized drm 1.1.0 20060810 [2.766592] [drm] Initialized i915 1.6.0 20080730 for :00:02.0 on minor 0 so i guess xorg tries to use it at [ 2.497] in some partially initialized state

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
The code that does the kernel module loading is in libdrm; reassigning. Probably best to forward this upstream for advice before we start hacking loops into libdrm... ** Package changed: xserver-xorg-video-intel (Ubuntu) => libdrm (Ubuntu) ** Changed in: libdrm (Ubuntu) Status: Incomplete

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
>From the X log, it is finding the dri card device file ok: [ 2.446] drmOpenDevice: node name is /dev/dri/card0 [ 2.446] drmOpenDevice: open result is 9, (OK) [ 2.497] drmOpenByBusid: Searching for BusID pci::00:02.0 [ 2.497] drmOpenDevice: node name is /dev/dri/card0 [ 2.4

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
bryceh: line 4396 of the udev log shows drm card0 coming up at 1.901920 after boot; the udev doesn't start on the root filesystem until 2.244658 according to BootDmesg.txt bryceh: so the drm device *was* there for coldplugging, which makes this a kernel bug fundamentally, there is still a rac

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
A workaround is to add some sleep to /etc/init/lightdm.conf: sleep 10 exec lightdm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X trying to start faster than drm driver is re

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
Also, please attach your /var/log/udev from after reproducing the bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X trying to start faster than drm driver is ready To manage notifi

[Bug 982889] Re: X trying to start faster than drm driver is ready

2012-04-16 Thread Bryce Harrington
Meanwhile, can you post the output of sudo lshw? ** Changed in: xserver-xorg-video-intel (Ubuntu) Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/982889 Title: X