[i945GM] (Needs UXA) X.org freezes with intel driver, no apparent trigger

Bug #363900 reported by Steve Langasek
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

Just experienced a hard lockup with my T60, no discernable cause.

The time frozen on the screen is 14:49, but the last log entries of interest anywhere are some time before that.

/var/log/kern.log:
[...]
Apr 18 23:31:16 dario kernel: [78180.877318] synaptics was reset on resume, see synaptics_resume_reset if you have trouble on resume
Apr 19 04:23:14 dario kernel: [95698.158221] [drm:i915_getparam] *ERROR* Unknown parameter 6
Apr 19 14:20:07 dario kernel: [131511.081853] [drm:i915_getparam] *ERROR* Unknown parameter 6

/var/log/Xorg.0.log, timestampped 2009-04-19 14:07:
[...]
(II) PM Event received: Capability Changed
I830PMEvent: Capability change

/var/log/gdm/:0.log, same timestamp:
[...]
Errors from xkbcomp are not fatal to the X server
I830PMEvent: Capability change
I830PMEvent: Capability change
I830PMEvent: Capability change
I830PMEvent: Capability change

chvt hangs; xrandr hangs; glxinfo hangs (so I'm submitting this bug report by hand, since ubuntu-bug can't collect any informaton without me rebooting first)

This is the only time I've encountered a freeze of this nature so far. I have the previous version of mesa loaded by the X server, not having restarted it since the upgrade to 7.4-0ubuntu3; but since this is a 945 rather than a 965, I can't see why that would matter.

I don't run compiz, I haven't played any videos today, and TTBOMK I haven't even been loading any different web pages than usual. My recent activity was all in gnome-terminals. So I can't offer much as far as hints for reproducing this.

I do have one setting of interest in my xorg.conf, which Bryce had asked me to test:

Section "Device"
        Identifier "Configured Video Device"
        Option "ExaOptimizeMigration" "off"
EndSection

the xorg.conf is otherwise vanilla, aside from a Virtual setting. will attach the full xorg.conf and intel_reg_dump output shortly.

Tags: freeze
Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

reg_bad, reg_good attached.

Sorry, the diff between the two apparently has a lot of noise because I plugged my external monitor in before taking the reg_good.txt.

Revision history for this message
Steve Langasek (vorlon) wrote :
Changed in xserver-xorg-video-intel (Ubuntu):
importance: Undecided → High
Bryce Harrington (bryce)
summary: - [i945GM] hard lock with intel driver, no apparent trigger
+ [i945GM] X.org freezes with intel driver, no apparent trigger
Revision history for this message
Steve Langasek (vorlon) wrote : Re: [i945GM] X.org freezes with intel driver, no apparent trigger

had another freeze today; could not switch VTs; this time the mouse didn't lock up, and no errors in the kern.log until after hard-killing X:

Apr 20 20:31:16 dario kernel: [96708.755339] SAK: killed process 3132 (Xorg): task_session_nr(p)==tty->session
Apr 20 20:31:16 dario kernel: [96708.755584] SAK: killed process 3132 (Xorg): task_session_nr(p)==tty->session
Apr 20 20:31:18 dario kernel: [96710.456146] [drm:i915_gem_idle] *ERROR* hardware wedged
Apr 20 20:31:18 dario kernel: [96710.456454] [drm:i915_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
Apr 20 20:31:21 dario kernel: [96713.319255] [drm:i915_setparam] *ERROR* unknown parameter 4
Apr 20 20:31:21 dario kernel: [96713.319277] [drm:i915_getparam] *ERROR* Unknown parameter 6
Apr 20 20:31:21 dario kernel: [96713.503001] [drm:i915_gem_entervt_ioctl] *ERROR* Reenabling wedged hardware, good luck
Apr 20 20:31:22 dario kernel: [96714.296330] [drm:i915_getparam] *ERROR* Unknown parameter 6

No remote console available at the time of this crash, so couldn't check intel_reg_dumper output. :/

Will drop the ExaOptimizeMigration settting from xorg.conf, and see if I still get crashes.

Revision history for this message
Steve Langasek (vorlon) wrote :

One more freeze this evening, before having a chance to restart X following the xorg.conf change. This time I could get a remote console, so I have another reg_bad2.txt attached.

This freeze again left the cursor alive, and coincided with some rapid desktop-flipping and window-switching (under metacity).

Revision history for this message
Steve Langasek (vorlon) wrote :

And here is another dump following the reboot and without having connected the VGA output before dumping. Perhaps this is useful for triangulating the problem.

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

We have a PPA with some new tools for debugging X freezes:

  https://launchpad.net/~ubuntu-x-swat/+archive/x-freeze-test

I know how irritating X freezes can be. They're also typically
quite hard to debug, but the information provided by these new
tools should help upstream figure them out.

You can help by doing the following:

 A. Install the PPA packages on Jaunty and boot kernel 2.6.30-rc2
 B. Reproduce your freeze
 C. ssh into the machine and run the steps to collect the info
 D. Attach the tarball of the results to this bug report

With this information, we'll be able to forward your bug upstream.

(For more information on triaging X freeze bugs, see
 https://wiki.ubuntu.com/X/Troubleshooting/Freeze )

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Revision history for this message
Aaron Roydhouse (aaron-roydhouse) wrote :

One of Steve's freezes looks very similar to:
  https://bugs.launchpad.net/bugs/365527

I've been having similar sounding freezes since upgrading from Intrepid 8.10 to Jaunty 9.04 (amd64) on a Lenovo X301 (2776) laptop. In the 24 hours since upgrading it has twice locked up the screen display, mouse pointer, and keyboard. /var/log/kern.log shows a kernel 'Oops' related to 'i915_gem_execbuffer' - might be a separate bug or different error for same problem?

uname -a
Linux shim 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux

lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)

(is this like a 915/945/965? the kern.log mentions 915)

[...]
May 3 17:26:03 shim kernel: [ 3517.858785] BUG: unable to handle kernel NULL pointer dereference at 000000000000002c
May 3 17:26:03 shim kernel: [ 3517.858799] IP: [<ffffffffa03ea3a8>] i915_gem_execbuffer+0x1e8/0x740 [i915]
May 3 17:26:03 shim kernel: [ 3517.858821] PGD 13a128067 PUD 1379ae067 PMD 0
May 3 17:26:03 shim kernel: [ 3517.858830] Oops: 0000 [#1] SMP
[...]

Full dump on https://bugs.launchpad.net/ubuntu/+bug/368642

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

A kernel oops could certainly result in an X freeze as a side effect, and I would suggest focusing on that issue.

2a42 is GM45, which is distinct from 945GM (which is 27A2), so perhaps it would be wisest to treat your issue as a separate bug just in case, filed against linux.

I've wondered if some of these freezes have origins in kernel code, but your bug is the first so far that gives evidence of that.

Steve, are you still having the freezes on Karmic, with UXA and 2.7.0?

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Steve Langasek (vorlon) wrote :

No, I didn't have any kernel oops here; Aaron's is almost certainly an unrelated issue.

I have not seen this freeze again since disabling the ExaOptimizeMigration setting. Nor do I see it when running UXA, which stands to reason if it's tied to an EXA configuration option.

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

Okay thanks, guess we'll treat this as a bug solved by moving to UXA.

summary: - [i945GM] X.org freezes with intel driver, no apparent trigger
+ [i945GM] (Needs UXA) X.org freezes with intel driver, no apparent
+ trigger
Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Tina Russell (tinarussell) wrote :

This looks kind of like bug #367275, which I’ve been struggling with. Steve, when you had this problem, do you remember if Xorg.0.log.old had the mimetype "application/x-trash"? (That would have made it difficult to open in the text editor or the log viewer, as nothing will recognize it as a regular text file, even if it has regular text data and will open fine if you tell the text editor specifically to do so.) That’s been the symptom for me.

I’ll try some alternate settings, now....

Revision history for this message
Steve Langasek (vorlon) wrote :

No, this has nothing to do with bug #367275.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-intel - 2:2.7.99.1+git20090602.ec2fde7c-0ubuntu1

---------------
xserver-xorg-video-intel (2:2.7.99.1+git20090602.ec2fde7c-0ubuntu1) karmic; urgency=low

  * Update to git 20090602 (master branch) up to commit ec2fde7c
    - xvmc is disabled since DRI1 no longer supported
    - LP: #96991 - 3D stuff breaks with Compiz: Redirected Direct Rendering
      is needed in DRI
    - LP: #120834 - X freezes with I830WaitLpRing error when running OpenGL apps
    - LP: #337608 - X crashes in fbBlt() when using Sun Java Plugin 6 + firefox3.0
    - LP: #339555 - compiz slowmotion after Jaunty upgrade
    - LP: #363900 - X.org freezes with intel driver, no apparent trigger
    - LP: #331719 - VT switching doesn't work on Intel 915GM
    - LP: #339091 - X freezes a few minutes after resuming
    - LP: #348436 - Kubuntu: X server crash when screensaver is started (4500MHD)
    - LP: #279727 - Kubuntu: Display Corruption w/ Intel 4700MHD
    - LP: #357851 - Kubuntu: Distorted display after switching virtual desktops w/ exa
    - LP: #158415 - Front buffer dynamic resize not supported
    - LP: #324998 - x server restarts itself w/ compiz on Intel 945GM
    - LP: #355593 - after upgrade to 9.04, rotating desktop cube ran slow
    - LP: #357290 - 1 fps in 3d apps like neverball with EXA
    - LP: #360774 - Graphical Corruption with EXA on X4500
    - LP: #364126 - screensaver prefs dialog in 9.04 RC livecd leaves dirt
    - LP: #375712 - Native resolution for dell "2005fpw" monitor not listed
    - LP: #375264 - Choppy flash video and poor performance with compiz
    - LP: #349568 - Jaunty / Compiz slow and tearing on GMA 4500MHD
    - LP: #356056 - window tearing during movement on 965 (no compiz)
    - LP: #330460 - xorg shows black image/hangs with jpg in firefox
    - LP: #347587 - X asserts on pI830->batch_ptr != 0 on resume from suspend
  * Merge with Debian experimental. Remaining Ubuntu changes:
    - Add lpia architecture
    - Re-enable the patch system, add quilt to build-deps.
    - 110_quirk_hp_mini.patch: quirk (sent upstream)
    - 117_quirk_thinkpad_x30.patch: quirk (sent upstream)
  * Drop 116_8xx_disable_dri.patch. There have been fixes for 3d on 8xx
    chipsets upstream, so drop the DRI disablement so the fixes can be
    re-tested.
  * Drop 103_quirk_intel_mb890.patch. Better quirk available upstream.
    (LP: #305269)

 -- Bryce Harrington <email address hidden> Tue, 02 Jun 2009 10:47:32 -0700

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