drm/i915: Add lock on drm_helper_resume_force_mode
authorSean Paul <seanpaul@chromium.org>
Fri, 23 Mar 2012 12:52:58 +0000 (08:52 -0400)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:01 +0000 (19:15 +0100)
commitaff27038778df72b8c6a2b92316f145c748297c6
treead6d2b65363ee9a43522049a65d3d741c60a46e8
parentee8138dd159e407c18f6ed73bc46924a49b65732
drm/i915: Add lock on drm_helper_resume_force_mode

BugLink: http://bugs.launchpad.net/bugs/981162

commit 927a2f119e8235238a2fc64871051b16c9bdae75 upstream.

i915_drm_thaw was not locking the mode_config lock when calling
drm_helper_resume_force_mode. When there were multiple wake sources,
this caused FDI training failure on SNB which in turn corrupted the
display.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/i915/i915_drv.c