]> 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)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 Dec 2016 14:27:20 +0000 (16:27 +0200)
commit0dd9d8bbf34c5f5fe90e0dae10cd60a47127e367
treed2d9e1a557d628aa1dbdb1ec504b3c1d860a36d5
parenta8c95c06f9058ad1870cd3a076d56e368ad260c7
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+
(cherry picked from commit ddbb271aea87fc6004d3c8bcdb0710e980c7ec85)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
(cherry picked from commit 706d5a3eab6d52ded7e709fb0aa432aebaa27278)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c