[i965] xorg intel crashes on console switch with UXA enabled (UXA bug)

Bug #329860 reported by epv
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xf86-video-intel
Fix Released
Critical
xserver-xorg-video-intel (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

jaunty x86_64, xserver-xorg-video-intel xserver-xorg-video-intel 2:2.6.1-1ubuntu2
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
(pci id 8086:2a02) - lenovo x61 tablet.

The X server crashes with:
Feb 14 18:26:26 hostname kernel: [ 252.148399] [drm:i915_gem_execbuffer] *ERROR* Execbuf while VT-switched.
whenever a console switch happens (either by ctrl-alt-Fn or by chvt command.)

It does not crash on console switch if UXA is not enabled via Option "AccelMethod" "UXA" in Device section of xorg.conf. (however without UXA, graphics performance is very bad)

Update: it also only crashes if dri(?) is in use: if I shut off compiz (which is used by default) with "metacity --replace", the X server then survives console switches.

 In particular this causes suspend/resume to fail because the power manager tries to chvt to a text console on suspend.

syslog excerpt:
Feb 15 13:34:15 hostname kernel: [20931.947721] [drm:i915_gem_execbuffer] *ERROR* Execbuf while VT-switched.
Feb 15 13:34:15 hostname kernel: [20931.949764] [drm:i915_gem_execbuffer] *ERROR* Execbuf while VT-switched.
Feb 15 13:34:15 hostname gdm[22637]: WARNING: gdm_slave_xioerror_handler: Fatal X error - Restarting :0

nothing shows up in Xorg.0.log

Tags: crash
Revision history for this message
epv (epvubuntu) wrote :
Revision history for this message
epv (epvubuntu) wrote :
epv (epvubuntu)
description: updated
Revision history for this message
Jeffrey Baker (jwbaker) wrote :

Confirmed. Most people will experience this as being presented with the GDM login screen upon resume.

Changed in xserver-xorg-video-intel:
status: New → Confirmed
Revision history for this message
In , Jeffrey Baker (jwbaker) wrote :

If UXA is enabled with Intel driver 2.6.1 and kernel 2.6.28 with GM965, chvt crashes the X server. The chvt succeeds, but the server crashes. This also causes a crash on suspend on Debian and Ubuntu, because the power management subsystem executes a chvt before suspending.

To reproduce is simple: chvt 1, and observe that X crashes. Kernel output is:

[drm:i915_gem_execbuffer] *ERROR* Execbuf while VT-switched.

Revision history for this message
In , Jeffrey Baker (jwbaker) wrote :

I should also have noted that you should be running compiz to reproduce this, or have another GL client running. If running metacity or other WM without GL clients, the server doesn't crash.

Revision history for this message
Bryce Harrington (bryce) wrote : Re: xorg intel crashes on console switch with UXA enabled

Marking as wishlist since we've decided not to ship UXA for Jaunty due to stability concerns such as this bug.
I would also encourage you to forward this bug upstream to bugzilla.freedesktop.org so it gets investigated.

Changed in xserver-xorg-video-intel:
importance: Undecided → Wishlist
status: Confirmed → Incomplete
Revision history for this message
Jeffrey Baker (jwbaker) wrote : Re: [i965] [UXA] xorg intel crashes on console switch with UXA enabled

OK, forwarded upstream. However I would note that if UXA is wishlist, then performance regression on 965-class hardware should be a blocker for Jaunty. The graphics on Jaunty are completely useless without UXA.

Changed in xserver-xorg-video-intel:
status: Incomplete → Confirmed
Changed in xserver-xorg-video-intel:
status: Unknown → Confirmed
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel:
status: Confirmed → Triaged
Revision history for this message
epv (epvubuntu) wrote :

Behavior has now changed somewhat - with UXA on, it no longer crashes on VT switch, but still does not survive suspend/resume, presumably for another reason.

On chvt it logs the following but doesn't crash:
[ 675.321065] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0

On suspend/resume, the X server crashes without logging anything.

Bryce Harrington (bryce)
summary: - [i965] [UXA] xorg intel crashes on console switch with UXA enabled
+ [i965] xorg intel crashes on console switch with UXA enabled (UXA bug)
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi epv, thanks for forwarding this issue upstream.

I notice you originally tested this against 2.6.1, however we've released with 2.6.3 which has numerous UXA bug fixes. Would you mind re-testing against the Jaunty release and see if the issue still exists there?

Changed in xserver-xorg-video-intel (Ubuntu):
status: Triaged → Incomplete
importance: Wishlist → High
Revision history for this message
epv (epvubuntu) wrote : Re: [Bug 329860] Re: [i965] xorg intel crashes on console switch with UXA enabled (UXA bug)

On Fri, May 01, 2009 at 01:46:15AM -0000, Bryce Harrington wrote:
> Hi epv, thanks for forwarding this issue upstream.
>
> I notice you originally tested this against 2.6.1, however we've
> released with 2.6.3 which has numerous UXA bug fixes. Would you mind
> re-testing against the Jaunty release and see if the issue still exists
> there?

Sure - I'll give it a try when I get to work in the morning.

eric

Revision history for this message
In , Jeffrey Baker (jwbaker) wrote :

Just tested this on my ThinkPad X61 Tablet (GM965) running Ubuntu Jaunty and it no longer crashes reliably on chvt ... tried it about 10 times, no crashes.

WFM?

Revision history for this message
Bryce Harrington (bryce) wrote :

Okay thanks, let us know how it goes.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
epv (epvubuntu) wrote : Re: [Bug 329860] Re: [i965] xorg intel crashes on console switch with UXA enabled (UXA bug)

On Fri, May 01, 2009 at 01:46:15AM -0000, Bryce Harrington wrote:
> Hi epv, thanks for forwarding this issue upstream.
>
> I notice you originally tested this against 2.6.1, however we've
> released with 2.6.3 which has numerous UXA bug fixes. Would you mind
> re-testing against the Jaunty release and see if the issue still exists
> there?

Hello, sorry for the delay.

Trying to test this actually had me kind of confused for a bit, because I
discovered that X with UXA enabled will not work if the server has been started
without UXA since the last reboot.

Switching consoles does not crash the server now with 2.6.3, though. In
addition, it's no longer unusably slow when rotated, though it's still a
little stairsteppy and slower than without UXA.

Unfortunately, I can't test chvt switching with UXA enabled now - when I start
the X server with UXA turned on:

Section "Device"
        Identifier "ATI Technologies Inc M24GL [Mobility FireGL V3200]"
        Driver "intel"
        Option "DRI" "true"
        Option "AccelMethod" "UXA"
EndSection

If I try to start with UXA enable without rebooting first, I get lots of this:

[ 625.864076] [drm:i915_gem_idle] *ERROR* hardware wedged
[ 625.864238] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
[ 629.772764] [drm:i915_setparam] *ERROR* unknown parameter 4
[ 629.795155] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
[ 633.628113] [drm:i915_wait_irq] *ERROR* EBUSY -- rec: 1147 emitted: 1156
[ 636.628116] [drm:i915_wait_irq] *ERROR* EBUSY -- rec: 1147 emitted: 1157
[ 638.288062] [drm:i915_gem_idle] *ERROR* hardware wedged
[ 638.288210] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
[ 642.187486] [drm:i915_setparam] *ERROR* unknown parameter 4
[ 642.219444] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
[ 646.116113] [drm:i915_wait_irq] *ERROR* EBUSY -- rec: 1147 emitted: 1158
[ 649.116081] [drm:i915_wait_irq] *ERROR* EBUSY -- rec: 1147 emitted: 1159
[ 650.772105] [drm:i915_gem_idle] *ERROR* hardware wedged
[ 650.772271] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
[ 662.725419] mtrr: no MTRR for e0000000,770000 found
[ 688.460665] [drm:i915_setparam] *ERROR* unknown parameter 4
[ 688.507581] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck

but it never manages to draw the display again until I reboot.

Thanks,
eric

Revision history for this message
In , Gordon Jin (gordon-jin) wrote :

(In reply to comment #2)
> Just tested this on my ThinkPad X61 Tablet (GM965) running Ubuntu Jaunty and it
> no longer crashes reliably on chvt ... tried it about 10 times, no crashes.
>
> WFM?

So I'm marking this as fixed. Please reopen if you can still reproduce this
with the new code. Thanks.

Changed in xserver-xorg-video-intel:
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Am I understanding your response correctly, that the original issue (crash on console switch) is resolved now, if UXA is set in xorg.conf from boot?

Revision history for this message
epv (epvubuntu) wrote : Re: [Bug 329860] Re: [i965] xorg intel crashes on console switch with UXA enabled (UXA bug)

On Tue, May 05, 2009 at 05:15:20AM -0000, Bryce Harrington wrote:
> Am I understanding your response correctly, that the original issue
> (crash on console switch) is resolved now, if UXA is set in xorg.conf
> from boot?
>
> --
> [i965] xorg intel crashes on console switch with UXA enabled (UXA bug)
> https://bugs.launchpad.net/bugs/329860
> You received this bug notification because you are a direct subscriber
> of the bug.

Correct. Console switching with UXA enabled causes
"[drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0"
to be logged, but succeeds regardless.

eric

Bryce Harrington (bryce)
tags: added: crash
Revision history for this message
Bryce Harrington (bryce) wrote :

Okay, the use case for UXA going forward (esp. starting 2.8) will be to have UXA set by default, so while this may continue to be a problem in the short term, by the Karmic release it should no longer be a concern.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
Changed in xserver-xorg-video-intel:
importance: Critical → Unknown
Changed in xserver-xorg-video-intel:
importance: Unknown → Critical
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.