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)
commitc22b355ff7fd60378c55d1401530287fea4e3a96
tree1ea5e1b2c55d80456be7fb605741e2c82a54403e
parent8ac71d1db1f8ebc68540cda131492927f46f334c
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