]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Keep virtual context alive until after we kick
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 08:07:29 +0000 (09:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 09:11:05 +0000 (10:11 +0100)
commit54039b9a3ca94e58edba2df3a28784c9c26834d2
tree103eae977cdb7fef929ff3cfc9631fe173a9b1a9
parent9065245b12d77da4846aca5e2a20e76caea6eaaa
drm/i915/execlists: Keep virtual context alive until after we kick

The call to kick_siblings() dereferences the rq->context, so we should
not drop our local reference until afterwards!

v2: Stick to setting ce.inflight=NULL before kicking as this is what the
other threads will check to see if the context is ready for takeover.

Fixes: c7e4d40378c6 ("drm/i915/execlists: Preempt-to-busy")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621080729.2652-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c