[Intel-gfx] [PATCH] drm/i915: Protect mmaped buffers from casual eviction.
eric at anholt.net
Tue May 11 09:38:36 PDT 2010
On Tue, 11 May 2010 16:55:27 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> By keeping buffers that are in use by the CPU, having been mmapped and
> moved to the CPU or GTT domain since their last rendering on a separate
> inactive list, prevents the first-pass eviction process from unbinding
> one of these buffers. Those buffers are evicted as normal during
> evict-everything so that the memory can be recovered under high pressure
> or a forced idle.
> Bug 20152 - [G45/GM965 UXA] cannot view JPG in firefox when running UXA
> Bug 24369 - Hang when scrolling firefox page with window in front
> Bug 15911 - Intermittent X crash (freeze)
Couldn't this be more easily handled by the times where you would move
to the tail of mmap, just move to the tail of inactive? Since inactive
is "obj_priv->gtt_space && !obj_priv->active" already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the Intel-gfx