From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: xrandr crashes X with a "GPU hung" in the i915 driver Date: Fri, 05 Nov 2010 19:01:50 +0000 Message-ID: <5b55a1$ij1vd3@fmsmga002.fm.intel.com> References: <849307$a90avh@azsmga001.ch.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id A73A79E9E1 for ; Fri, 5 Nov 2010 12:01:53 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Bryan Freed Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 5 Nov 2010 11:51:36 -0700, Bryan Freed wrote: > 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 That's an old kernel, not a lot of information in the i915_error_state. 0x01800002 is MI_WAIT_FOR_EVENT. The issue is that we are doing a mode switch whilst there is a pending WAIT, so by the time the GPU executes the wait the pipe is disabled and the GPU hangs. I just this morning committed a patch to -intel that might help here. -Chris -- Chris Wilson, Intel Open Source Technology Centre