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-Tag: firefly_0821_release~176^2~3450^2~63^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4c8c7000cc54ef45d05d3519ddb9118d4c65fbd0;p=firefly-linux-kernel-4.4.55.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; }