[Intel-gfx] [PATCH] drm/i915: Implement fair lru eviction across both rings. (v2)

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 6 21:06:16 CEST 2010


On Fri, 6 Aug 2010 20:58:30 +0200, Daniel Vetter <daniel at ffwll.ch> wrote:
> On Fri, Aug 06, 2010 at 12:25:45PM +0100, Chris Wilson wrote:
> > +	return i915_gem_evict_everything(dev);
> 
> I think this should be equivalent to
> 
> 	return -ENOMEM;

Yes, we could return -ENOSPC and then do_execbuffer() would unpin and call
i915_gem_evict_everything() before retrying.

I'm happy for anybody to paint it a completely different colour just as
soon as it is heading upstream. :)

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list