From: Chris Wilson Subject: Re: [PATCH 11/13] drm/i915: add batch object and context to i915_add_request() Date: Tue, 26 Feb 2013 14:22:34 +0000 Message-ID: <20130226142234.GC32307@cantiga.alporthouse.com> References: <1361876716-8625-1-git-send-email-mika.kuoppala@intel.com> <1361876716-8625-12-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 mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 83933E5EBA for ; Tue, 26 Feb 2013 06:22:45 -0800 (PST) Content-Disposition: inline In-Reply-To: <1361876716-8625-12-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 Tue, Feb 26, 2013 at 01:05:14PM +0200, Mika Kuoppala wrote: > In order to track down a batch buffer and context which > caused the ring to hang, store reference to bo and context > into the request struct. Request can also cause gpu to hang > after the batch in the flush section in the ring. To detect this > add start of the flush portion offset into the request. The call to i915_add_request() is becoming grotesque. We have two classes of callers, execbuffer which sets everything and everyone else who set nothing. So please provide a macro to curry all the extra unused parameters and minimise the number of places we need to update everytime the interface changes. -Chris -- Chris Wilson, Intel Open Source Technology Centre