drm/i915: Drain freed objects for mmap space exhaustion
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jan 2017 15:22:40 +0000 (15:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jan 2017 16:54:47 +0000 (16:54 +0000)
commitb42a13d9181e1dee58dcbf2f7c8d5625a49cb6f5
tree1e67f8905476cbffa62758d2b97a6edcef52bd7b
parent1a292fa53d06e53000296ba76c6984a43e1e828c
drm/i915: Drain freed objects for mmap space exhaustion

As we now use a deferred free queue for objects, simply retiring the
active objects is not enough to immediately free them and recover their
mmap space - we must now also drain the freed object list.

Fixes: fbbd37b36fa5 ("drm/i915: Move object release to a freelist + worker"
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: <drm-intel-fixes@lists.freedesktop.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170106152240.5793-3-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem.c