diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 07:44:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 14:49:35 +0000 |
commit | 9eb143bbec7dfdfce8aa7f6a3b0f40af4e95e7b7 (patch) | |
tree | 4dd67dcdcd52427186670c16aa012bd957cacd13 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | cced5e2f098d9db26cf4119e309068b79cca1274 (diff) | |
download | op-kernel-dev-9eb143bbec7dfdfce8aa7f6a3b0f40af4e95e7b7.zip op-kernel-dev-9eb143bbec7dfdfce8aa7f6a3b0f40af4e95e7b7.tar.gz |
drm/i915: Allow a request to be cancelled
If we preempt a request and remove it from the execution queue, we need
to undo its global seqno and restart any waiters.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-11-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index fbf34af..0f29e07 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -635,6 +635,7 @@ bool intel_engine_add_wait(struct intel_engine_cs *engine, void intel_engine_remove_wait(struct intel_engine_cs *engine, struct intel_wait *wait); void intel_engine_enable_signaling(struct drm_i915_gem_request *request); +void intel_engine_cancel_signaling(struct drm_i915_gem_request *request); static inline bool intel_engine_has_waiter(const struct intel_engine_cs *engine) { |