From: Chris Wilson Date: Tue, 18 Jun 2019 11:07:36 +0000 (+0100) Subject: drm/i915/execlists: Detect cross-contamination with GuC X-Git-Tag: microblaze-v5.4-rc1~229^2~19^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=73591341014d394a03e54607ffdcccd0b8e2e000;p=linux-2.6-microblaze.git 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: Chris Wilson Cc: Tvrtko Ursulin Cc: Michal Wajdeczko Cc: MichaƂ Winiarski Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20190618110736.31155-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index df58d1d838f7..b42b5f158295 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -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.