From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] drm/i915: kicking rings considered harmful Date: Tue, 27 Sep 2011 09:46:14 -0700 Message-ID: <20110927094614.158112a2@bwidawsk.net> References: <1317059990-1922-1-git-send-email-daniel.vetter@ffwll.ch> <20110926222201.1ca2afcd@bwidawsk.net> <20110927100322.GA2785@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C8199ED01 for ; Tue, 27 Sep 2011 09:46:11 -0700 (PDT) In-Reply-To: <20110927100322.GA2785@phenom.ffwll.local> 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: Daniel Vetter Cc: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Tue, 27 Sep 2011 12:03:22 +0200 Daniel Vetter wrote: > On Mon, Sep 26, 2011 at 10:22:01PM -0700, Ben Widawsky wrote: > > On Mon, 26 Sep 2011 19:59:50 +0200 > > Daniel Vetter wrote: > > > diff --git a/drivers/gpu/drm/i915/i915_irq.c > > > b/drivers/gpu/drm/i915/i915_irq.c index da5d607..09c11e4 100644 > > > --- a/drivers/gpu/drm/i915/i915_irq.c > > > +++ b/drivers/gpu/drm/i915/i915_irq.c > > > @@ -1694,7 +1694,7 @@ void i915_hangcheck_elapsed(unsigned long data) > > > if (dev_priv->hangcheck_count++ > 1) { > > > DRM_ERROR("Hangcheck timer elapsed... GPU > > > hung\n"); > > > - if (!IS_GEN2(dev)) { > > > + if (!IS_GEN2(dev) && i915_try_reset) { > > > /* Is the chip hanging on a > > > WAIT_FOR_EVENT? > > > * If so we can simply poke the > > > RB_WAIT bit > > > * and break the hang. This should > > > work on > > > > I think you should also be able to accomplish the same thing > > with enable_hangcheck param. I had the same problem with the > > debugger :) > > I agree. Iirc you have some patches floating in that area to make the > hangcheck a bit more robust. Can you maybe add this to that series and > (re-)submit? > > Cheers, Daniel While 9/10 times daniel > ben, I'm playing my 10% card here and suggesting that mixing the reset variable and ring kick is not the right way to go about this. However I will resubmit my series based on other feedback, and if Chris or Keith chime in and say I'm this isn't my 1/10, I'll add this too :) Ben