drm/i915: Add unit tests for the breadcrumb rbtree, insert/remove
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:14 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:24 +0000 (20:45 +0000)
commitf97fbf9606a1a96d61d171e1ed1606b2b812fb01
treed45403154b7dd305d6bbc1e46567670c7a1bb167
parent935a2f776aa523cd6ad20c9b7c7d019ba9418759
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
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_engine.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_engine.h [new file with mode: 0644]