]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assert the local engine->wakeref is active
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 May 2019 11:52:15 +0000 (12:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 May 2019 11:00:10 +0000 (12:00 +0100)
commitdbbdf805219ae490a1296b24287184883e6d6f13
tree2e6021dc39ff4d8affe008d738337e2b5ed363f1
parent1d058ed74e961992482e1af8afcd859b25574eea
drm/i915: Assert the local engine->wakeref is active

Due to the asynchronous tasklet and recursive GT wakeref, it may happen
that we submit to the engine (underneath it's own wakeref) prior to the
central wakeref being marked as taken. Switch to checking the local wakeref
for greater consistency.

Fixes: f827242ed4f1 ("drm/i915: Invert the GEM wakeref hierarchy")
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/20190503115225.30831-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_lrc.c