drm/i915: Wait first for submission, before waiting for request completion
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 12:58:48 +0000 (13:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 19:53:52 +0000 (20:53 +0100)
commit4680816be3362bdf6ac712cbdc6098c76febe78f
tree14e0bc98862f162bc235bd9dbb32af02f9f35775
parent3033acab07f95c089fb871896406657ad4000ed6
drm/i915: Wait first for submission, before waiting for request completion

In future patches, we will no longer be able to wait on a static global
seqno and instead have to break our wait up into phases. First we wait
for the global seqno assignment (upon submission to hardware), and once
submitted we wait for the hardware to complete.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-25-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c