Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73591341 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/execlists: Detect cross-contamination with GuC



The process_csb routine from execlists_submission is incompatible with
the GuC backend. Add a warning to detect if we accidentally end up in
the wrong spot.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618110736.31155-1-chris@chris-wilson.co.uk
parent 44d89409
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1169,6 +1169,7 @@ static void process_csb(struct intel_engine_cs *engine)
	u8 head, tail;

	lockdep_assert_held(&engine->active.lock);
	GEM_BUG_ON(USES_GUC_SUBMISSION(engine->i915));

	/*
	 * Note that csb_write, csb_status may be either in HWSP or mmio.