drm/i915: Add a few asserts around handling of i915_request_is_active()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 May 2020 08:58:08 +0000 (09:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 May 2020 15:24:58 +0000 (16:24 +0100)
commit98b7067a17ba745fb6dac9669e26bae1960d283c
treecfbb96a2028bf016b60540135d8307d0740cf289
parenta227569d1f04da3ff4a07fd75c5a86c0ce92a7b9
drm/i915: Add a few asserts around handling of i915_request_is_active()

Let's assert that we only call the execute callbacks on making the
request active, and that we do not execute the request without calling
the callbacks.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200529085809.23691-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c