<div>Ah. I see 9f54107f866a25cf670f81f7c52b8c108728c6a5 in git://<a href="http://anongit.freedesktop.org/xorg/driver/xf86-video-intel">anongit.freedesktop.org/xorg/driver/xf86-video-intel</a>, but that change looks i830-specific. We are running i915.</div>
<div><br></div><div>My i915_error_state looks like this in a few test runs this morning:</div><div><br></div><div>localhost ~ # cd /sys/kernel/debug/dri/0/</div><div>localhost 0 # cat i915_error_state </div><div>Time: 1288979468 s 955942 us</div>
<div>EIR: 0x00000000</div><div> PGTBL_ER: 0x00000000</div><div> INSTPM: 0x00000000</div><div> IPEIR: 0x00000000</div><div> IPEHR: 0x01800002</div><div> INSTDONE: 0x7dffffc1</div><div> ACTHD: 0x07357014</div><div><br>
</div><div>and</div><div><br></div><div><div>Time: 1288979853 s 607750 us</div><div>EIR: 0x00000000</div><div> PGTBL_ER: 0x00000000</div><div> INSTPM: 0x00000000</div><div> IPEIR: 0x00000000</div><div> IPEHR: 0x01800002</div>
<div> INSTDONE: 0x7dffffc1</div><div> ACTHD: 0x00dbb014</div></div><div><br></div><div>and</div><div><br></div><div><div>Time: 1288979982 s 718955 us</div><div>EIR: 0x00000000</div><div> PGTBL_ER: 0x00000000</div><div>
INSTPM: 0x00000000</div><div> IPEIR: 0x00000000</div><div> IPEHR: 0x01800002</div><div> INSTDONE: 0x7dffffc1</div><div> ACTHD: 0x058c5014</div></div><div><br></div><div><br></div><div>I see these values come pretty much straight from the registers. Unfortunately, my documentation (from <a href="http://intellinuxgraphics.org/documentation.html">http://intellinuxgraphics.org/documentation.html</a>) 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.</div>
<div><br></div><div>bryan.</div><div><br></div><br><div class="gmail_quote">On Fri, Nov 5, 2010 at 2:16 AM, Chris Wilson <span dir="ltr"><<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, 4 Nov 2010 17:12:31 -0700, Bryan Freed <<a href="mailto:bfreed@chromium.org">bfreed@chromium.org</a>> wrote:<br>
> I have a situation where unplugging an external monitor and running an<br>
> xrandr sequence to return the screen to the internal display sometimes<br>
> causes the i915 driver to wig out.<br>
><br>
> In perusing the intel-gfx archives, I see<br>
> <a href="http://lists.freedesktop.org/archives/intel-gfx/2010-May/006957.html" target="_blank">http://lists.freedesktop.org/archives/intel-gfx/2010-May/006957.html</a> makes a<br>
> reference to "commit 9f54107f866a25cf670f81f7c52b8c108728c6a5", but I do not<br>
> see that commit in the drm-intel kernel. I am looking at git://<br>
> <a href="http://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git" target="_blank">git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git</a>. Is this not<br>
> the right repo?<br>
<br>
</div>That's in the DDX to fix up an X crash in swapbuffers. To debug GPU hangs<br>
you'll want to decode /sys/kernel/debug/dri/0/i915_error_state.<br>
-Chris<br>
<font color="#888888"><br>
--<br>
Chris Wilson, Intel Open Source Technology Centre<br>
</font></blockquote></div><br>