drm/i915: drop the struct_mutex when wedged or trying to reset
authorMatthew Auld <[email protected]>
Mon, 28 Nov 2016 10:36:48 +0000 (10:36 +0000)
committerJani Nikula <[email protected]>
Wed, 30 Nov 2016 10:09:26 +0000 (12:09 +0200)
commite411072d5740a49cdc9d0713798c30440757e451
tree91a9f6e495af27fd4e2f9579e605d598b41aaa3f
parent2420489bcb8910188578acc0c11c75445c2e4b92
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: 7f1847ebf48b ("drm/i915: Simplify checking of GPU reset_counter in display pageflips")
Cc: Chris Wilson <[email protected]>
Signed-off-by: Matthew Auld <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: <[email protected]> # v4.7+
(cherry picked from commit ddbb271aea87fc6004d3c8bcdb0710e980c7ec85)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/intel_display.c