From: Ben Widawsky Subject: Re: [PATCH v3 05/16] drm/i915: track ring progression using seqnos Date: Sat, 20 Apr 2013 11:43:51 -0700 Message-ID: <20130420184351.GB1546@bwidawsk.net> References: <1365089568-20457-1-git-send-email-mika.kuoppala@intel.com> <1365089568-20457-6-git-send-email-mika.kuoppala@intel.com> 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 146B6E5DDC for ; Sat, 20 Apr 2013 11:41:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1365089568-20457-6-git-send-email-mika.kuoppala@intel.com> 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 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 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