drm/i915/gt: Move the late flush_submission in retire to the end
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Apr 2020 12:53:56 +0000 (13:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Apr 2020 15:56:23 +0000 (16:56 +0100)
commitf153f6395a6392e894a1039eada81f8083d00517
tree1fcdfcad8bc2ed96fdbc816e32180cb5f1b0b873
parenta95f3ac21d64d62c746f836598d1467d5837fa28
drm/i915/gt: Move the late flush_submission in retire to the end

Avoid flushing the submission queue (of others) under the client's
timeline lock, but instead move it to the end so that we may catch more.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/1066
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200420125356.26614-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_requests.c