drm/i915/guc: Prepare for nonblocking execbuf submission
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:11:57 +0000 (14:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Sep 2016 13:23:06 +0000 (14:23 +0100)
commitdadd481bfe559f09bc3c42e9d552149c1cb84e6a
tree36d1344afe9210c1b7bdf24ab0fb35576c800de2
parenta2bc4695bbf24877d75b34da5d11fcb38393eee9
drm/i915/guc: Prepare for nonblocking execbuf submission

Currently the presumption is that the request construction and its
submission to the GuC are all under the same holding of struct_mutex. We
wish to relax this to separate the request construction and the later
submission to the GuC. This requires us to reserve some space in the
GuC command queue for the future submission. For flexibility to handle
out-of-order request submission we do not preallocate the next slot in
the GuC command queue during request construction, just ensuring that
there is enough space later.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20160909131201.16673-17-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc.h