[Intel-gfx] [PATCH 12/43] drm/i915: don't trash the gtt when running out of fences
Chris Wilson
chris at chris-wilson.co.uk
Wed Dec 14 16:09:24 CET 2011
On Wed, 14 Dec 2011 13:57:09 +0100, Daniel Vetter <daniel.vetter at ffwll.ch> 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 <daniel.vetter at ffwll.ch>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list