Bug 23897

Summary: [G45] buffer dumps for karmic gpu freeze
Product: xorg Reporter: martin <mnemo>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium Keywords: NEEDINFO
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg.txt (captured using ssh while frozen)
none
gdm.log (captured using ssh while frozen)
none
i915_batchbuffers (captured using ssh while frozen)
none
i915_error_state.txt
none
gem_active
none
fence_regs
none
flushing
none
hws
none
inactive
none
interrupt
none
request
none
seqno
none
ringbuf_data
none
ringbuf_info
none
intel_gpu_dump.txt.gz
none
xorg.log
none
dri_debug.tgz (the freeze just happened again, here is another set of logs)
none
dri_debug.tgz (after the second freeze the machine froze a third time right after I restored my firefox session) none

Description martin 2009-09-13 02:04:28 UTC
Created attachment 29462 [details]
dmesg.txt (captured using ssh while frozen)

Machine just froze, interesting stuff in dmesg etc.


Linux kingfish 2.6.31-9-generic #29-Ubuntu SMP Sun Aug 30 17:39:26 UTC 2009 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description:    Ubuntu karmic (development branch)
Release:        9.10
Codename:       karmic
xserver-xorg-core                            2:1.6.3-1ubuntu5
xserver-xorg-core-dbg                        2:1.6.3-1ubuntu5
intel-gpu-tools                              1.0.1+git20090626-0ubuntu1
libdrm-intel1                                2.4.12+git20090801.45078630-0ubuntu1
xserver-xorg-video-intel                     2:2.8.1-1ubuntu1
xserver-xorg-video-intel-dbg                 2:2.8.1-1ubuntu1
libgl1-mesa-dri                              7.6.0~git20090817.7c422387-0ubuntu3
libgl1-mesa-dri-dbg                          7.6.0~git20090817.7c422387-0ubuntu3
libgl1-mesa-glx                              7.6.0~git20090817.7c422387-0ubuntu3
libgl1-mesa-glx-dbg                          7.6.0~git20090817.7c422387-0ubuntu3
libglu1-mesa                                 7.6.0~git20090817.7c422387-0ubuntu3
mesa-utils                                   7.6.0~git20090817.7c422387-0ubuntu3
libdrm-intel1                                2.4.12+git20090801.45078630-0ubuntu1
libdrm-radeon1                               2.4.12+git20090801.45078630-0ubuntu1
libdrm2                                      2.4.12+git20090801.45078630-0ubuntu1
compiz                                       1:0.8.2-0ubuntu16
compiz-core                                  1:0.8.2-0ubuntu16
compiz-fusion-plugins-extra                  0.8.2-0ubuntu4
compiz-fusion-plugins-main                   0.8.2-0ubuntu5
compiz-gnome                                 1:0.8.2-0ubuntu16
compiz-plugins                               1:0.8.2-0ubuntu16
compiz-wrapper                               1:0.8.2-0ubuntu16
compizconfig-backend-gconf                   0.8.2-0ubuntu2
compizconfig-settings-manager                0.8.2-0ubuntu1
libcompizconfig0                             0.8.2-0ubuntu2
python-compizconfig                          0.8.2-0ubuntu1
Comment 1 martin 2009-09-13 02:04:52 UTC
Created attachment 29463 [details]
gdm.log (captured using ssh while frozen)
Comment 2 martin 2009-09-13 02:05:32 UTC
Created attachment 29464 [details]
i915_batchbuffers (captured using ssh while frozen)
Comment 3 martin 2009-09-13 02:07:54 UTC
Created attachment 29465 [details]
i915_error_state.txt
Comment 4 martin 2009-09-13 02:08:09 UTC
Created attachment 29466 [details]
gem_active
Comment 5 martin 2009-09-13 02:08:22 UTC
Created attachment 29467 [details]
fence_regs
Comment 6 martin 2009-09-13 02:08:34 UTC
Created attachment 29468 [details]
flushing
Comment 7 martin 2009-09-13 02:08:50 UTC
Created attachment 29469 [details]
hws
Comment 8 martin 2009-09-13 02:09:05 UTC
Created attachment 29470 [details]
inactive
Comment 9 martin 2009-09-13 02:09:24 UTC
Created attachment 29471 [details]
interrupt
Comment 10 martin 2009-09-13 02:09:37 UTC
Created attachment 29472 [details]
request
Comment 11 martin 2009-09-13 02:09:52 UTC
Created attachment 29473 [details]
seqno
Comment 12 martin 2009-09-13 02:10:16 UTC
Created attachment 29474 [details]
ringbuf_data
Comment 13 martin 2009-09-13 02:10:32 UTC
Created attachment 29475 [details]
ringbuf_info
Comment 14 martin 2009-09-13 02:11:41 UTC
Created attachment 29476 [details]
intel_gpu_dump.txt.gz
Comment 15 martin 2009-09-13 02:11:56 UTC
Created attachment 29477 [details]
xorg.log
Comment 16 martin 2009-09-13 06:32:50 UTC
Created attachment 29482 [details]
dri_debug.tgz (the freeze just happened again, here is another set of logs)
Comment 17 martin 2009-09-13 06:33:34 UTC
Created attachment 29483 [details]
dri_debug.tgz (after the second freeze the machine froze a third time right after I restored my firefox session)
Comment 18 martin 2009-09-13 06:36:13 UTC
To my untrained eye the freeze dumps I've posted in this bug looks somewhat similar to the GPU freeze I in the end of August (also using karmic):
https://bugs.freedesktop.org/show_bug.cgi?id=23589
Comment 19 martin 2009-09-13 06:40:17 UTC
One additional thing; when the machine froze the third time (just 1-2 minutes after rebooting from the second freeze) I had just restored my GNOME session which started gedit and a gnome-terminal and it also re-launched my Firefox session with around 10 TABs in one window. One of the TABs in Firefox had a 6507x1787 pixel PNG in it (I guess that's not huge but it's bigger than the average texture maybe?).
Comment 20 Gordon Jin 2009-09-14 20:45:05 UTC
Does the patch in http://bugs.freedesktop.org/show_bug.cgi?id=22336#c18 help?
Comment 21 Eric Anholt 2009-09-21 14:10:12 UTC
commit 5604b27b9326ac542069a49ed9650c4b0d3e939a
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Sep 9 12:35:30 2009 -0700

    i965: Fix relocation delta for WM surfaces.

Please retest with this patch in Mesa, as it fixed issues when the aperture was near full (big images being a cause)
Comment 22 martin 2009-09-22 10:38:04 UTC
Ubuntu karmic cherry picked that "Fix relocation delta for WM surfaces" patch a few days ago so it's getting some nice testing right now before the upcoming Ubuntu beta.

I've been running with compiz off for the last few days (because I was previously getting _very_ frequent crashes while frequently generating and viewing huge PNG file for a project I'm working on).

Right now I've been running with compiz on, plus the patch applied and so far things looks great. No crashes or hangs and I've generated several big graphs, opened them in Firefox and Chrome, tried to stress it a bit with the compiz ring switcher and a few different games. So far, it feels pretty solid to me.

I'll report it here if the GPU hangs again with the patch applied.
Comment 23 Eric Anholt 2009-09-25 11:17:18 UTC
OK, I'll go ahead and close it as fixed for now.  Feel free to reopen if you see the same problem again.  Thanks for testing!

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.