]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Add the mock engine to the gt->engine[]
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Oct 2019 13:07:03 +0000 (14:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Oct 2019 13:53:48 +0000 (14:53 +0100)
commite12f3f75ee032c9cee745090787fedbe1a152082
tree8338c71c422ea16dc045e9c9bf1c70ce6eeca9ac
parentfb7fb01eb9c0eca62ff1c917dc05fc13daadc4ca
drm/i915/selftests: Add the mock engine to the gt->engine[]

Remember to include the newly created mock engine in the list of
available engines inside the gt.

Fixes: b038dfeb139a ("drm/i915: Make for_each_engine_masked work on intel_gt")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018130703.31125-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c