drm/i915: Assert that we do not try to unsubmit a completed request
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jan 2018 09:49:12 +0000 (09:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jan 2018 15:38:56 +0000 (15:38 +0000)
commitc7cc144d8f625cfb8f338e66d875d0ec42fc399a
treeacc8ebaafb17bee7da8e5122a42bfd2fadf2e288
parent7fb9ee5db24a5892d3af8487de39d7b4a7fc2ea8
drm/i915: Assert that we do not try to unsubmit a completed request

Assert that we do not try to unsubmit a completed request, as should we
try to resubmit it later, the ring is already past the request's
breadcrumb and the breadcrumb will not be updated.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180129094912.14428-1-chris@chris-wilson.co.uk
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/i915_gem_request.c