From: Rodrigo Vivi Date: Thu, 12 Jun 2014 17:16:43 +0000 (-0700) Subject: drm/i915: BDW PSR: Remove limitations that aren't valid for BDW. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c8c7000cc54ef45d05d3519ddb9118d4c65fbd0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/i915: BDW PSR: Remove limitations that aren't valid for BDW. Reviewed-by: Vijay Purushothaman Signed-off-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 73e4a5cb7195..f8ff2573ff9c 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1776,6 +1776,10 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp) return false; } + /* Below limitations aren't valid for Broadwell */ + if (IS_BROADWELL(dev)) + goto out; + if (I915_READ(SPRCTL(intel_crtc->pipe)) & SPRITE_ENABLE) { DRM_DEBUG_KMS("PSR condition failed: Sprite is Enabled\n"); return false; @@ -1792,6 +1796,7 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp) return false; } + out: dev_priv->psr.source_ok = true; return true; }