]> asedeno.scripts.mit.edu Git - linux.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)
commitdc58958d08bb60004d20af7842f5894f83c928c1
tree2e6021dc39ff4d8affe008d738337e2b5ed363f1
parent7ee280a75fd922ac32aa7ed67cd72bdf64952b3a
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: 79ffac8599c4 ("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