[Intel-gfx] [PATCH 4/5] drm/i915: Implement fair lru eviction across both rings.

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 4 23:22:44 CEST 2010


On Wed, 4 Aug 2010 22:16:58 +0200, Daniel Vetter <daniel at ffwll.ch> wrote:
> This way active buffers are scanned in retiring order, whereas your code
> scans them in issuing order. IMHO the former is the fairer approach for
> eviction when both rings are busy. I also think the code would look
> slightly less scary ;)

Hmm, I was aiming for retiring order, I may have missed. But yes, the true
goal is for this to be clear from the code, and here my preference was for
unrolling the loop so that the order was apparent. Obviously I have failed
on one or both accounts.

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list