drm/i915: Add lock on drm_helper_resume_force_mode
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +2 -0
@@ -535,7 +535,9 @@ static int i915_drm_thaw(struct drm_device *dev)drm_irq_install (dev);/* Resume the modeset for every activated CRTC */ +mutex_lock (&dev->mode_config.mutex);drm_helper_resume_force_mode (dev); +mutex_unlock (&dev->mode_config.mutex);if (IS_IRONLAKE_M (dev))ironlake_enable_rc6 (dev);
Signature · 1 line
1.7.7.3
Quoted 6 lines · Sean Paul
i915_drm_thawwas not locking themode_configlock when callingdrm_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 <[email protected]>
Reviewed-by Chris Wilson <[email protected]>
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre