From: Daniel Vetter Date: Mon, 4 Aug 2014 08:45:00 +0000 (+0200) Subject: drm/i915: Don't require dev->struct_mutex in psr_match_conditions X-Git-Tag: v3.17-rc1~81^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba38bfc448b5ea569077e652938cc4385ab38fe;p=platform%2Fkernel%2Flinux-exynos.git drm/i915: Don't require dev->struct_mutex in psr_match_conditions Since I've reworked psr support to no longer require x-tiling we don't check any state protected by the Giant GEM Lock. So drop that check. Also boo for lockdep_assert_held for not yelling when lockdep is disabled. Cc: Paulo Zanoni Reported-by: Paulo Zanoni Acked-by: Paulo Zanoni Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 8741439..805b6f6 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1806,7 +1806,6 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp) struct intel_crtc *intel_crtc = to_intel_crtc(crtc); lockdep_assert_held(&dev_priv->psr.lock); - lockdep_assert_held(&dev->struct_mutex); WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); WARN_ON(!drm_modeset_is_locked(&crtc->mutex));