From: Daniel Vetter Date: Thu, 24 Apr 2014 21:55:02 +0000 (+0200) Subject: drm/i915: More cargo-culted locking for intel_update_fbc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efa9624e2a5c42c9eab4fa9e64e5e5f61f3f1866;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: More cargo-culted locking for intel_update_fbc Just for consistency, this patch won't fix anything really. v2: Rebase over all the recent plane enabling shuffling. Reviewed-by: Akash Goel (v1) Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f2b9cab465e3..aa6daef427f3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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)