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)
commitf351d087d8329a08eca9e69872c3906c139e1f11
treec1dcdfdc8da5b55653026e8df6c992a77986daeb
parentb8444cf85b629413ad23f5b6ed9bf5267f38acab
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