[PATCH 12/43] drm/i915: don't trash the gtt when running out of fences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux