From: Daniel Vetter Subject: Re: [PATCH 12/43] drm/i915: don't trash the gtt when running out of fences Date: Sun, 29 Jan 2012 17:57:24 +0100 Message-ID: <20120129165723.GI4312@phenom.ffwll.local> References: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> <1323867460-5486-12-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id D80929E75D for ; Sun, 29 Jan 2012 08:57:22 -0800 (PST) Received: by wico1 with SMTP id o1so3272149wic.36 for ; Sun, 29 Jan 2012 08:57:22 -0800 (PST) Content-Disposition: inline In-Reply-To: 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: Chris Wilson Cc: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Wed, Dec 14, 2011 at 03:09:24PM +0000, Chris Wilson wrote: > On Wed, 14 Dec 2011 13:57:09 +0100, Daniel Vetter wrote: > > With the fence accounting fixed up in the previous commit not finding > > enough fences is a fatal error and userspace bug. Trashing the entire > > gtt is not gonna turn up that missing fence, so don't to this by > > returning another error thatn ENOSPC. > > > > This has the added benefit that it's easier to distinguish fence > > accounting errors from gtt space accounting issues. > > > > TTM serves as precendence for the EDEADLK error code - it returns it > > when the reservation code needs resources already blocked by the > > current reservation. > > > > Signed-Off-by: Daniel Vetter > Reviewed-by: Chris Wilson Queued for -next, thanks for the review. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48