summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-13 17:15:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-13 20:45:24 +0000
commitf97fbf9606a1a96d61d171e1ed1606b2b812fb01 (patch)
treed45403154b7dd305d6bbc1e46567670c7a1bb167 /drivers/gpu/drm/i915/intel_ringbuffer.h
parent935a2f776aa523cd6ad20c9b7c7d019ba9418759 (diff)
downloadtalos-obmc-linux-f97fbf9606a1a96d61d171e1ed1606b2b812fb01.tar.gz
talos-obmc-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_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index b122c3cc6dbb..cc62e89010d3 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -5,6 +5,7 @@
#include "i915_gem_batch_pool.h"
#include "i915_gem_request.h"
#include "i915_gem_timeline.h"
+#include "i915_selftest.h"
#define I915_CMD_HASH_ORDER 9
@@ -249,6 +250,7 @@ struct intel_engine_cs {
bool irq_enabled : 1;
bool rpm_wakelock : 1;
+ I915_SELFTEST_DECLARE(bool mock : 1);
} breadcrumbs;
/*
OpenPOWER on IntegriCloud