]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Trim the retired request queue after submitting
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 08:43:49 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 13:12:32 +0000 (13:12 +0000)
commit5cc5af58b12039f6a8c5593f1d43d5b9257a6b1b
tree1ea5e1b2c55d80456be7fb605741e2c82a54403e
parent4054df7ca1d87df584183b570166a2ac9cb399cd
drm/i915: Trim the retired request queue after submitting

If we submit a request and see that the previous request on this
timeline was already signaled, we first do not need to add the
dependency tracker for that completed request and secondly we know that
we there is then a large backlog in retiring requests affecting this
timeline. Given that we just submitted more work to the HW, now would be
a good time to catch up on those retirements.

v2: Try to sum up the compromises involved in flushing the retirement
queue after submission.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207084350.3929-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c