]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop request retirement before reaping stale contexts
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Jul 2017 14:26:33 +0000 (15:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Jul 2017 10:51:18 +0000 (11:51 +0100)
commit4e6267a826badca8c732e394c0c21f1d8e6c0b1f
tree9a673a5b859304f9365febac71aa541600fd108d
parent1c049b2a212ad442f8344f2a40ba1c5338f73e90
drm/i915: Drop request retirement before reaping stale contexts

Before we create a new context, we try and reap all the stale contexts
(i.e. those that are freed but waiting for a worker to come and return
their allocations to the system). Before we do this, we retire all
requests so that we clear any inflight no longer used contexts (who are
only being kept alived by those inflght requests). However, any context
that is finally unreferenced by this retirement is put onto an RCU list
and not available for immediately reaping, we stall for no immediate
benefit.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170705142634.18554-3-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem_context.c