]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: drop the struct_mutex when wedged or trying to reset
authorMatthew Auld <matthew.auld@intel.com>
Mon, 28 Nov 2016 10:36:48 +0000 (10:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Nov 2016 09:25:04 +0000 (09:25 +0000)
commitf299296ab4cea6436a197090988b368b6e7e7ab5
tree790032e8c6ed1712fa121d90f5f0c6e62d8091c7
parente804d2c5fb1cf658cca500b561211d8f7747bfd3
drm/i915: drop the struct_mutex when wedged or trying to reset

We grab the struct_mutex in intel_crtc_page_flip, but if we are wedged
or a reset is in progress we bail early but never seem to actually
release the lock.

Fixes: 7f95add130e6 ("drm/i915: Simplify checking of GPU reset_counter in display pageflips")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161128103648.9235-1-matthew.auld@intel.com
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: <stable@vger.kernel.org> # v4.7+
drivers/gpu/drm/i915/intel_display.c