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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Apr 2012 08:37:37 +0000 (10:37 +0200)
commit927a2f119e8235238a2fc64871051b16c9bdae75
tree982fd48fc0a39dd5ce0e073b3475283219bd11a7
parente02f14cd48a5da0ebaecf88c93dbd54a81e0dead
drm/i915: Add lock on drm_helper_resume_force_mode

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>
Cc: stable@kernel.org
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c