summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gpu_error.c
diff options
context:
space:
mode:
authorChris Wilson2016-10-28 14:58:52 +0200
committerChris Wilson2016-10-28 21:53:54 +0200
commitcaddfe7192f5e74d65ebcfdae614f99e8fd87222 (patch)
tree948ab78439fcb584190078df8f3af0ed68eecbe6 /drivers/gpu/drm/i915/i915_gpu_error.c
parentdrm/i915: Record space required for breadcrumb emission (diff)
downloadkernel-qcow2-linux-caddfe7192f5e74d65ebcfdae614f99e8fd87222.tar.gz
kernel-qcow2-linux-caddfe7192f5e74d65ebcfdae614f99e8fd87222.tar.xz
kernel-qcow2-linux-caddfe7192f5e74d65ebcfdae614f99e8fd87222.zip
drm/i915: Defer breadcrumb emission
Move the actual emission of the breadcrumb for closing the request from i915_add_request() to the submit callback. (It can be moved later when required.) This allows us to defer the allocation of the global_seqno from request construction to actual submission, allowing us to emit the requests out of order (wrt to the order of their construction, they still will only be executed one all of their dependencies are resolved including that all earlier requests on their timeline have been submitted.) We have to specialise how we then emit the request in order to write into the preallocated space, rather than at the tail of the ringbuffer (which will have been advanced by the addition of new requests). 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-29-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gpu_error.c')
0 files changed, 0 insertions, 0 deletions