diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 07:44:18 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-23 14:50:42 +0000 |
commit | 591c0fb85d1c351d28334fb249bf1faaafcf326b (patch) | |
tree | 9a6efa9e1d1726bfe173051706d5daa9c49e5496 /drivers/gpu/drm/i915/selftests/mock_request.h | |
parent | d6a2289d9d6b3ea47514cf29fed56340fb8fec7e (diff) | |
download | linux-591c0fb85d1c351d28334fb249bf1faaafcf326b.tar.gz linux-591c0fb85d1c351d28334fb249bf1faaafcf326b.tar.bz2 linux-591c0fb85d1c351d28334fb249bf1faaafcf326b.zip |
drm/i915: Exercise request cancellation using a mock selftest
Add a mock selftest to preempt a request and check that we cancel it,
requeue the request and then complete its execution.
v2: Error leaks no more.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-13-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_request.h')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/mock_request.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/mock_request.h b/drivers/gpu/drm/i915/selftests/mock_request.h index cc76d4f4eb4e..4dea74c8e96d 100644 --- a/drivers/gpu/drm/i915/selftests/mock_request.h +++ b/drivers/gpu/drm/i915/selftests/mock_request.h @@ -41,4 +41,6 @@ mock_request(struct intel_engine_cs *engine, struct i915_gem_context *context, unsigned long delay); +bool mock_cancel_request(struct drm_i915_gem_request *request); + #endif /* !__MOCK_REQUEST__ */ |