drm/i915: Nonblocking request submission
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:12:00 +0000 (14:12 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:23:08 +0000 (14:23 +0100)
commit0a046a0e93d2971d42f975b7ac409af0d4d9e7b4
tree74af67b35ad8bc00c8484fce8154e43d4229fee0
parent32c2b4bda62839c527b47bc843aebcdd535c9519
drm/i915: Nonblocking request submission

Now that we have fences in place to drive request submission, we can
employ those to queue requests after their dependencies as opposed to
stalling in the middle of an execbuf ioctl. (However, we still choose to
spin before enabling the IRQ as that is faster - though contentious.)

v2: Do the fence ordering first, where we can still fail.

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/20160909131201.16673-20-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/i915_gem_request.h