[Intel-gfx] [PATCH] drm/i915: Recover batch pool caches from shrinker
Chris Wilson
chris at chris-wilson.co.uk
Thu Sep 20 10:02:28 UTC 2018
Quoting Matthew Auld (2018-09-20 10:57:34)
> On Wed, 19 Sep 2018 at 20:49, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> >
> > Discard all of our batch pools under mempressure to make their pages
> > available to the shrinker. We will quickly reacquire them when necessary
> > for more GPU relocations or for the command parser.
> >
> > v2: Init the lists for mock_engine
> > v3: Return a strong ref from i915_gem_batch_pool_get() and convert it
> > into an active reference to protect ourselves against all allocations
> > while the object is in play.
> >
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107936
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Matthew Auld <matthew.william.auld at gmail.com>
> Reviewed-by: Matthew Auld <matthew.william.auld at gmail.com>
Sorry, still not quite right yet. Closer, but the conversion into an
active reference is not guaranteed (as the execbuf may be interrupted).
-Chris
More information about the Intel-gfx
mailing list