drm/i915: Mock infrastructure for request emission
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:19 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:31 +0000 (20:45 +0000)
commit0daf0113cff6884ed947ffe0870a926e73d52f79
treea0c55bcbb2b76fdbc4d1cd3707c622386b4d7eda
parent3b5bb0a37665ce1efaf3b9a551c945c09a726504
drm/i915: Mock infrastructure for request emission

Create a fake engine that runs requests using a timer to simulate hw.

v2: Prevent leaks of ctx->name along error paths

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-8-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c
drivers/gpu/drm/i915/selftests/mock_context.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_context.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_engine.c
drivers/gpu/drm/i915/selftests/mock_engine.h
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_gem_device.h
drivers/gpu/drm/i915/selftests/mock_request.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_request.h [new file with mode: 0644]