From: Chris Wilson Subject: Re: [PATCH 14/16] drm/i915: refuse to submit more batchbuffers from guilty context Date: Tue, 16 Apr 2013 14:59:41 +0100 Message-ID: <20130416135941.GD13387@cantiga.alporthouse.com> References: <1365089568-20457-15-git-send-email-mika.kuoppala@intel.com> <1366111933-24960-1-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 mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 50314E648B for ; Tue, 16 Apr 2013 06:59:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1366111933-24960-1-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, Apr 16, 2013 at 02:32:13PM +0300, Mika Kuoppala wrote: > If context has recently submitted a faulty batchbuffers guilty of > gpu hang and decides to keep submitting more crap, ban it permanently. > > v2: Store guilty ban status bool in gpu_error instead of pointers > that might become danling before hang is declared. Meh. Stashing away a return parameter inside gpu_error, not pretty. -Chris -- Chris Wilson, Intel Open Source Technology Centre