drm/i915: Wait for old resets before applying debugfs/i915_wedged
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:06 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:38 +0000 (16:47 +0000)
commit15cbf007e4da18b23eac41168263b178efd9cf36
tree2c68a2a702e496082a92acc486aa96829c5babc8
parent13e87536de1afb5208982166e1c0afa90eda78d9
drm/i915: Wait for old resets before applying debugfs/i915_wedged

Since we use the debugfs to recover the device after modifying the
i915.reset parameter, we need to be sure that we apply the reset and not
piggy-back onto a concurrent one in order for the parameter to take
effect.

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