[Intel-gfx] xrandr crashes X with a "GPU hung" in the i915 driver

Bryan Freed bfreed at chromium.org
Fri Nov 5 19:51:36 CET 2010


Ah.  I see 9f54107f866a25cf670f81f7c52b8c108728c6a5 in git://
anongit.freedesktop.org/xorg/driver/xf86-video-intel, but that change looks
i830-specific.  We are running i915.

My i915_error_state looks like this in a few test runs this morning:

localhost ~ # cd /sys/kernel/debug/dri/0/
localhost 0 # cat i915_error_state
Time: 1288979468 s 955942 us
EIR: 0x00000000
  PGTBL_ER: 0x00000000
  INSTPM: 0x00000000
  IPEIR: 0x00000000
  IPEHR: 0x01800002
  INSTDONE: 0x7dffffc1
  ACTHD: 0x07357014

and

Time: 1288979853 s 607750 us
EIR: 0x00000000
  PGTBL_ER: 0x00000000
  INSTPM: 0x00000000
  IPEIR: 0x00000000
  IPEHR: 0x01800002
  INSTDONE: 0x7dffffc1
  ACTHD: 0x00dbb014

and

Time: 1288979982 s 718955 us
EIR: 0x00000000
  PGTBL_ER: 0x00000000
  INSTPM: 0x00000000
  IPEIR: 0x00000000
  IPEHR: 0x01800002
  INSTDONE: 0x7dffffc1
  ACTHD: 0x058c5014


I see these values come pretty much straight from the registers.
 Unfortunately, my documentation (from
http://intellinuxgraphics.org/documentation.html) is incomplete.  I see G45
and G35 documentation there, but not G33 which is what i915 appears to be
(based on what I see in the kernel driver code).  The register addresses are
different, and who knows what else.

bryan.


On Fri, Nov 5, 2010 at 2:16 AM, Chris Wilson <chris at chris-wilson.co.uk>wrote:

> On Thu, 4 Nov 2010 17:12:31 -0700, Bryan Freed <bfreed at chromium.org>
> wrote:
> > I have a situation where unplugging an external monitor and running an
> > xrandr sequence to return the screen to the internal display sometimes
> > causes the i915 driver to wig out.
> >
> > In perusing the intel-gfx archives, I see
> > http://lists.freedesktop.org/archives/intel-gfx/2010-May/006957.htmlmakes a
> > reference to "commit 9f54107f866a25cf670f81f7c52b8c108728c6a5", but I do
> not
> > see that commit in the drm-intel kernel.  I am looking at git://
> > git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git.  Is this
> not
> > the right repo?
>
> That's in the DDX to fix up an X crash in swapbuffers. To debug GPU hangs
> you'll want to decode /sys/kernel/debug/dri/0/i915_error_state.
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20101105/4835dbf2/attachment.html>


More information about the Intel-gfx mailing list