I830WaitLpRing() lockup

Bug #22741 reported by DanH
18
Affects Status Importance Assigned to Milestone
xserver-xorg-video-i810 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Playing video with e.g. totem-xine locks up Xorg completely, sometimes. See

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

Alan Hourihane apparently has a fix for this: his 1.5.156 driver doesn't crash.
Perhaps he could be persuaded to share the fix?

Revision history for this message
Daniel Stone (daniels) wrote :

which version are you using? please attach your full /var/log/Xorg.0.log.

Revision history for this message
DanH (holmsand-gmail) wrote :

Created an attachment (id=4229)
Crash log

Here's a log file for a crash, using Xorg from Breezy. I (and apparently at
least one other, according to the logs posted at
https://bugs.freedesktop.org/show_bug.cgi?id=4353), have also seen the same
crash with Hoary.

The log file is the result of doing a suspend/resume cycle, then playing video
with totem-xine.

However, I think I've found a workaround, that also might explain why
relatively few people experience the crash:

The crashing doesn't occur if USE_DPMS is set to "true" in
/etc/defaults/acpi-support, so that "vbetool dpms off/on" is called on
suspend/resume. USE_DPMS is set to true by default.

Revision history for this message
DanH (holmsand-gmail) wrote :
Revision history for this message
DanH (holmsand-gmail) wrote :

Created an attachment (id=4420)
Another crash log

Unfortunately, the fix in xorg cvs doesn't work with Breezy's xorg: I'm still
getting crashes with 6.8.2-75

In fact, it's now even worse as the workaround above no longer helps.

The only thing that changed is that the log file (enclosed) no longer shows
anything special at all after the crash...

Please revert to the previous version.

Revision history for this message
Daniel Stone (daniels) wrote :

there is no possible way the recent changes could cause the crash you described:
they only touch LeaveVT, which is not called at startup (as per its name).

Revision history for this message
DanH (holmsand-gmail) wrote :

(In reply to comment #5)
> there is no possible way the recent changes could cause the crash you described:
> they only touch LeaveVT, which is not called at startup (as per its name).

I admit that I don't know the first thing about Xorg internals, but the change at

http://cvs.freedesktop.org/xorg/xc/programs/Xserver/hw/xfree86/drivers/i810/i830_driver.c?r1=1.35&r2=1.36

must have *something* to do with the crashing (it is, after all, supposed to fix
just that).

With 6.8.2-75, X crashes when playing video, after a suspend/resume cycle. With
the previous
version, this didn't happen (as long as USE_DPMS was set to true).

I also don't seem to get any crashes when using a rebuilt i810 driver from 6.8.2-75,
except for reverting the patch above.

Revision history for this message
Pedro Côrte-Real (pedrocr) wrote :

I can reproduce the same lockup with 6.8.2-77. I have "USE_DPMS=true" and I
still get the error in the log file.

Revision history for this message
Pedro Côrte-Real (pedrocr) wrote :

Created an attachment (id=4566)
Xorg crash log

Revision history for this message
Pedro Côrte-Real (pedrocr) wrote :

I just got this crash without playing any video, just by using the system after
suspend/resume. This never happened in hoary. The result is that X gets
respawned by gdm shows the pointer and crashes again. The log looks like the one
I already attached.

Revision history for this message
greg_g (ggalazka) wrote :

Created an attachment (id=4606)
another crashh log

I have this crash on my CA S260 notebook right after starting mplayer trying to
watch a movie with sdl or xv output. x11 output works fine, no lockups. distro:
breezy

Revision history for this message
Pedro Côrte-Real (pedrocr) wrote :

I haven't had the crash again yet. What I did was remove the VBERestore option
from my xorg.conf. Could the other people that have reproduced this bug check if
they have that enabled? Maybe it makes no difference and I just haven't hit the
bug again.

Revision history for this message
greg_g (ggalazka) wrote :

(In reply to comment #11)
> I haven't had the crash again yet. What I did was remove the VBERestore option
> from my xorg.conf. Could the other people that have reproduced this bug check if
> they have that enabled? Maybe it makes no difference and I just haven't hit the
> bug again.

well, I don't have this option in my xorg.conf, so I presume it's disabled (as
man i810 says)

Revision history for this message
Adriaan Peeters (apeeters) wrote :

Created an attachment (id=5237)
yet another crash log

I also have this problem on my Dell Latitude D505 with the i810 driver. I
assume it only happens after a suspend/resume cycle but I can not yet confirm
it.

Revision history for this message
DanH (holmsand-gmail) wrote : Still crashing in dapper

I'm still having the same problem in dapper (with xserver-xorg-driver-i810 1:1.4.1.3-0ubuntu1).

I've been using Alan Hourihane's "experimental" driver at http://www.fairlite.demon.co.uk/intel.html for quite some time now in breezy, without any crashes. According to https://bugs.freedesktop.org/show_bug.cgi?id=4353 his changes are now in Xorg CVS, but unfortunately I can't get that to build (something about a missing "randrstr.h" that's apparently missing in ubuntu).

Revision history for this message
Paul Sladen (sladen) wrote :

When I contacted AlanH he said that the only changes that have gone in the i810 CVS head since are the fix for this Xv issue and rotation support.

Pulling across rotation would be useful for the Tablet PC support that is need. Could we get the patch synced across from there?

Revision history for this message
DanH (holmsand-gmail) wrote : Backporting fixes from xorg cvs

This is an attempt at backporting the xv-related changes from Xorg CVS, and applies against 1.4.1.3-0ubuntu1.

I've been using this for quite a while now on my machine, without a single crash and other ill effects. I've suspended/resumed/played video hundreds of times, without any problems.

I should point out, though, that I don't now the first thing about xorg internals - I've just cherrypicked the parts of the upstream changes that seemed to have something to do with xvideo and general memory handling.

Revision history for this message
Adriaan Peeters (apeeters) wrote :

Shouldn't we try to get this fix in for Dapper?I consider this a major show stopper.

Please reset the status if you do not agree.

Changed in xserver-xorg-driver-i810:
status: Needs Info → Confirmed
Daniel Stone (daniels)
Changed in xserver-xorg-driver-i810:
assignee: daniels → nobody
Revision history for this message
DanH (holmsand-gmail) wrote :

Is there something else I should/could do to get a fix into Dapper? This bug isn't even assigned to anyone anymore :-(

Anyway, I'm still running 100% problem free with my patched i810 driver.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.