From: Daniel Vetter Subject: Re: [PATCH 11/43] drm/i915: Separate fence pin counting from normal bind pin counting Date: Sun, 29 Jan 2012 17:56:33 +0100 Message-ID: <20120129165633.GH4312@phenom.ffwll.local> References: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> <1323867460-5486-11-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 CC0539E75D for ; Sun, 29 Jan 2012 08:56:32 -0800 (PST) Received: by wico1 with SMTP id o1so3271755wic.36 for ; Sun, 29 Jan 2012 08:56:31 -0800 (PST) Content-Disposition: inline In-Reply-To: <1323867460-5486-11-git-send-email-daniel.vetter@ffwll.ch> 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: Keith Packard Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Wed, Dec 14, 2011 at 01:57:08PM +0100, Daniel Vetter wrote: > From: Chris Wilson > > In order to correctly account for reserving space in the GTT and fences > for a batch buffer, we need to independently track whether the fence is > pinned due to a fenced GPU access in the batch or whether the buffer is > pinned in the aperture. Currently we count the fenced as pinned if the > buffer has already been seen in the execbuffer. This leads to a false > accounting of available fence registers, causing frequent mass evictions. > Worse, if coupled with the change to make i915_gem_object_get_fence() > report EDADLK upon fence starvation, the batchbuffer can fail with only > one fence required... > > Fixes intel-gpu-tools/tests/gem_fenced_exec_thrash > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38735 > Signed-off-by: Chris Wilson > Reviewed-by: Daniel Vetter > Tested-by: Paul Neumann Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48