drm/i915: Serialise resets with wedging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:07 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:39 +0000 (16:47 +0000)
commit72eb16df010a436644c6515892ab8e2c428afe7f
treefd13b655211ff4cf866c035a966bf9cddc50b19a
parent15cbf007e4da18b23eac41168263b178efd9cf36
drm/i915: Serialise resets with wedging

Prevent concurrent set-wedge with ongoing resets (and vice versa) by
taking the same wedge_mutex around both operations.

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-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c