]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only sync tasklets once for recursive reset preparation
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 18:33:49 +0000 (19:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 19:20:33 +0000 (20:20 +0100)
commit9d84be3da80ebd588199b1c5f36ad1b189e0914c
treec1dcdfdc8da5b55653026e8df6c992a77986daeb
parent58bb56bb6590dd582b4a090673ba422b9a22ab2b
drm/i915: Only sync tasklets once for recursive reset preparation

When setting up reset, we may need to recursively prepare an engine. In
which case we should only synchronously flush the tasklets on the outer
most call, the inner calls will then be inside an atomic section where
the tasklet will never be run (and so the sync will never complete).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180516183355.10553-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.h