drm/i915: Mark semaphores as complete on unsubmit out if payload was started
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 May 2019 13:00:48 +0000 (14:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 May 2019 12:42:17 +0000 (13:42 +0100)
commitdba5a7f301d2eec0ed1b2fbe3156960615b996d5
tree4da0fcbda8f42a5c67d80c681d6143142f9a33a0
parent4e309bafeb778d74e5eb9e1df4ec60cc9e76d4f4
drm/i915: Mark semaphores as complete on unsubmit out if payload was started

Avoid charging us for the presumed busywait if the request was preempted
after successfully using semaphores to reduce inter-engine latency.

v2: Bump the priority to reflect the lack of semaphores now required.

References: ca6e56f654e7 ("drm/i915: Disable semaphore busywaits on saturated systems")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190515130052.4475-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c