summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_guc.h
diff options
context:
space:
mode:
authorChris Wilson2016-09-09 15:11:57 +0200
committerChris Wilson2016-09-09 15:23:06 +0200
commitdadd481bfe559f09bc3c42e9d552149c1cb84e6a (patch)
tree36d1344afe9210c1b7bdf24ab0fb35576c800de2 /drivers/gpu/drm/i915/intel_guc.h
parentdrm/i915: Prepare object synchronisation for asynchronicity (diff)
downloadkernel-qcow2-linux-dadd481bfe559f09bc3c42e9d552149c1cb84e6a.tar.gz
kernel-qcow2-linux-dadd481bfe559f09bc3c42e9d552149c1cb84e6a.tar.xz
kernel-qcow2-linux-dadd481bfe559f09bc3c42e9d552149c1cb84e6a.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc.h')
-rw-r--r--drivers/gpu/drm/i915/intel_guc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc.h b/drivers/gpu/drm/i915/intel_guc.h
index c97326269588..467845967e0b 100644
--- a/drivers/gpu/drm/i915/intel_guc.h
+++ b/drivers/gpu/drm/i915/intel_guc.h
@@ -78,9 +78,11 @@ struct i915_guc_client {
uint16_t doorbell_id;
uint16_t padding[3]; /* Maintain alignment */
+ spinlock_t wq_lock;
uint32_t wq_offset;
uint32_t wq_size;
uint32_t wq_tail;
+ uint32_t wq_rsvd;
uint32_t no_wq_space;
uint32_t b_fail;
int retcode;