drm/i915/selftests: Drop stale timeline constructor assert
diff mbox series

Message ID 20200731102206.6793-1-chris@chris-wilson.co.uk
State New
Headers show
  • drm/i915/selftests: Drop stale timeline constructor assert
Related show

Commit Message

Chris Wilson July 31, 2020, 10:22 a.m. UTC
Since we pass around encoded parameters to the kernel context
constructor using the ce->timeline pointer, we can no longer assert that
it should be zero for mock timeline construction.

Fixes: cffef56a43bb ("drm/i915/gt: Support multiple pinned timelines")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
 drivers/gpu/drm/i915/gt/mock_engine.c | 1 -
 1 file changed, 1 deletion(-)

diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/mock_engine.c b/drivers/gpu/drm/i915/gt/mock_engine.c
index d5beb116261f..027de53cd05b 100644
--- a/drivers/gpu/drm/i915/gt/mock_engine.c
+++ b/drivers/gpu/drm/i915/gt/mock_engine.c
@@ -152,7 +152,6 @@  static int mock_context_alloc(struct intel_context *ce)
 	if (!ce->ring)
 		return -ENOMEM;
-	GEM_BUG_ON(ce->timeline);
 	ce->timeline = intel_timeline_create(ce->engine->gt);
 	if (IS_ERR(ce->timeline)) {