Bug 42972 - Sometimes X doesn't start up on Toshiba Tecra A8
Summary: Sometimes X doesn't start up on Toshiba Tecra A8
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 00:34 UTC by Clemens Eisserer
Modified: 2013-08-21 16:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg log with debug=full (29.32 KB, text/plain)
2011-11-16 00:34 UTC, Clemens Eisserer
no flags Details

Description Clemens Eisserer 2011-11-16 00:34:38 UTC
Created attachment 53592 [details]
xorg log with debug=full

Sometimes (in about 10%) X doesn't start on my "Toshiba tecra A8" notebook.
This sometimes happens when cold-booting the system, sometimes when I restart X.

Haven't seen this behaviour with earlier drivers, as far as I remember I saw it the first time with Fedora-15.

When X fails to start I get the following messages in syslog:

Nov 16 10:48:17 localhost kernel: [  292.191165] [drm:intel_lvds_mode_fixup] *ERROR* Can't enable LVDS and another encoder on the same pipe
Nov 16 10:48:17 localhost kernel: [  292.191175] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:4]
Nov 16 10:48:17 localhost kernel: [  292.191181] detected fb_set_par error, error code: -22
Nov 16 10:48:17 localhost kernel: [  292.191213] [drm:intel_lvds_mode_fixup] *ERROR* Can't enable LVDS and another encoder on the same pipe
Nov 16 10:48:17 localhost kernel: [  292.191219] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:4]
Comment 1 Clemens Eisserer 2011-11-16 00:36:09 UTC
sorry, forgot to mention:

intel i945GM
libdrm-2.4.27
pixman-0.23.8
linux-3.1.1
xorg 1.11.2
Comment 2 Chris Wilson 2012-01-27 06:32:40 UTC
Jesse, not quite in the same league as your 3-pipe/2-output problem, but it does look to be of the same ilk - X choosing the wrong default configuration.
Comment 3 Clemens Eisserer 2012-01-27 16:51:10 UTC
dont know if this has anything to do with the problem I experience - just noticed an unusual delay at boot which usually isn't there, and found the following log-statement in syslog:

[   20.432573] vboxpci: IOMMU not found (not registered)
[   26.857435] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
[   28.330885] wlan0: authenticate with 00:1e:69:e9:63:40 (try 1)
Comment 4 Clemens Eisserer 2012-03-08 05:40:24 UTC
Seems to be timing related too, my SSD died so I am using my old HDD again - which makes me experience this bug a lot more frequently.
Comment 5 Clemens Eisserer 2012-03-19 15:09:06 UTC
I am quite confident this is related to Fedora's graphical boot sequence.

Usually rhgb displays a Fedora logo that is animated right before X is started.
In case X doesn't start, it hangs right before this animation.

I also had those "animation-hangs" when booting into runlevel 3 directly with the same sympthoms - I wasn't able to switch to any VTs and always saw the rhgb stuck right before the animation. 

If I can provide further details, please let me know. I'll meanwhile try to get a stacktrace of a hanging rhgb.
Comment 6 Jesse Barnes 2012-04-19 14:58:09 UTC
I wonder if this is related to the race fix recently posted to dri-devel.  That bug manifests as some sort of boot error because a boot splash program opens the DRM device before it's finished initializing.  Given the racy nature of yours, that seems like a possibility.
Comment 7 Chris Wilson 2012-04-19 15:14:48 UTC
(In reply to comment #6)
> I wonder if this is related to the race fix recently posted to dri-devel.  That
> bug manifests as some sort of boot error because a boot splash program opens
> the DRM device before it's finished initializing.  Given the racy nature of
> yours, that seems like a possibility.

I don't think so. That race manifests itself in X or libdrm not being able to open the i915.ko device and exploding very early on. Whereas this failure is much later with (presumably) X requesting a completely bogus configuration, LVDS and another encoder on the same crtc? Madness!
Comment 8 Chris Wilson 2012-05-25 06:34:47 UTC
Looking the debug file more closely, the instructive error is that we fail to become DRM master which at 180s suggests that something else was... I think this is actually a system config issue rather than X being broken and choosing an invalid config like I first presumed.
Comment 9 Philippe "RzR" Coval 2013-08-21 16:15:43 UTC
Hi,

I noticed this bug is marked invalid/closed
but let me connect to this thread related to userspace race :

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/982889#149

{

Wondering why this bug has not been forwarded upstream ?

https://bugs.freedesktop.org/show_bug.cgi?id=42972

does not mention about :

     setversion 1.4 failed

nor https://bugzilla.redhat.com/show_bug.cgi?id=855677

Also I feel the patch worth to be forwarded/upstreamed too :

https://launchpadlibrarian.net/131169748/0001-If-drm-device-couldn-t-be-opened-keep-trying-for-a-s.patch

}


May this help, if not then excuse me for the noise and excuse some ubuntu monkey too :)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.