diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 17:15:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 20:45:24 +0000 |
commit | f97fbf9606a1a96d61d171e1ed1606b2b812fb01 (patch) | |
tree | d45403154b7dd305d6bbc1e46567670c7a1bb167 /drivers/gpu/drm/i915/intel_engine_cs.c | |
parent | 935a2f776aa523cd6ad20c9b7c7d019ba9418759 (diff) | |
download | blackbird-op-linux-f97fbf9606a1a96d61d171e1ed1606b2b812fb01.tar.gz blackbird-op-linux-f97fbf9606a1a96d61d171e1ed1606b2b812fb01.zip |
drm/i915: Add unit tests for the breadcrumb rbtree, insert/remove
First retroactive test, make sure that the waiters are in global seqno
order after random inserts and removals.
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/20170213171558.20942-3-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_engine_cs.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_engine_cs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c index 69a6416d1223..538d845d7251 100644 --- a/drivers/gpu/drm/i915/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/intel_engine_cs.c @@ -524,3 +524,7 @@ void intel_engine_get_instdone(struct intel_engine_cs *engine, break; } } + +#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST) +#include "selftests/mock_engine.c" +#endif |