From: Ben Widawsky Subject: Re: [PATCH v3 05/16] drm/i915: track ring progression using seqnos Date: Sun, 21 Apr 2013 14:07:49 -0700 Message-ID: <20130421210749.GB5587@bwidawsk.net> References: <1365089568-20457-1-git-send-email-mika.kuoppala@intel.com> <1365089568-20457-6-git-send-email-mika.kuoppala@intel.com> <20130420184351.GB1546@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (unknown [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id E8591E5DBA for ; Sun, 21 Apr 2013 14:05:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130420184351.GB1546@bwidawsk.net> 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: Mika Kuoppala Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, Apr 20, 2013 at 11:43:51AM -0700, Ben Widawsky wrote: > On Thu, Apr 04, 2013 at 06:32:37PM +0300, Mika Kuoppala wrote: > > Instead of relying in acthd, track ring seqno progression > > to detect if ring has hung. > > > > v2: put hangcheck stuff inside struct (Chris Wilson) > > > > Signed-off-by: Mika Kuoppala > > This patch really scares me. I think we don't want to ever stop using > ACTHD. AFAICT, ACTHD is aways something we want to track in regards to > the GPU not making progress. (unless we're worried about cycles in the > CS, but there, seqno would equally not help us track progress). > > The two danger cases are: > an infinite loop in a shader > never called MI_BATCH_BUFFER_END > > And for both, *I think* ACTHD won't change. I'm wrong. I was confusing HEAD with ACTHD. ACTHD is supposed to show the address of either the batch, or the ring. HEAD is something we could use instead though. Just a thought. > > I believe what the patch really wants is to stop using instdone, but > continue to use ACTHD as a fallback. > > I think if you can keep ACTHD around, I'd be willing to r-b this. > > Discussion moved to IRC. > > > [snip] > -- > Ben Widawsky, Intel Open Source Technology Center > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center