drm/i915: More cargo-culted locking for intel_update_fbc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Apr 2014 21:55:02 +0000 (23:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 May 2014 13:31:04 +0000 (15:31 +0200)
Just for consistency, this patch won't fix anything really.

v2: Rebase over all the recent plane enabling shuffling.

Reviewed-by: Akash Goel <akash.goel@intel.com> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index f2b9cab465e37c645269b95958faa75e493f29b1..aa6daef427f32c3e3a70ffee913935e73074b448 100644 (file)
@@ -4618,7 +4618,9 @@ static void i9xx_crtc_disable(struct drm_crtc *crtc)
        intel_crtc->active = false;
        intel_update_watermarks(crtc);
 
+       mutex_lock(&dev->struct_mutex);
        intel_update_fbc(dev);
+       mutex_unlock(&dev->struct_mutex);
 }
 
 static void i9xx_crtc_off(struct drm_crtc *crtc)