<div dir="ltr">patch merged to dinq. thanks for the patch</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 10, 2017 at 12:48 PM Vivi, Rodrigo <<a href="mailto:rodrigo.vivi@intel.com">rodrigo.vivi@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reviewed-by: Rodrigo Vivi <<a href="mailto:rodrigo.vivi@intel.com" class="gmail_msg" target="_blank">rodrigo.vivi@intel.com</a>><br class="gmail_msg">
<br class="gmail_msg">
On Tue, 2017-01-10 at 12:32 +0530, vathsala nagaraju wrote:<br class="gmail_msg">
> PSR2 is restricted to work with panel resolutions upto 3200x2000,<br class="gmail_msg">
> move the check to intel_psr_match_conditions and fully block psr.<br class="gmail_msg">
><br class="gmail_msg">
> Cc: Rodrigo Vivi <<a href="mailto:rodrigo.vivi@intel.com" class="gmail_msg" target="_blank">rodrigo.vivi@intel.com</a>><br class="gmail_msg">
> Cc: Jim Bride <<a href="mailto:jim.bride@linux.intel.com" class="gmail_msg" target="_blank">jim.bride@linux.intel.com</a>><br class="gmail_msg">
> Suggested-by: Rodrigo Vivi <<a href="mailto:rodrigo.vivi@intel.com" class="gmail_msg" target="_blank">rodrigo.vivi@intel.com</a>><br class="gmail_msg">
> Signed-off-by: Vathsala Nagaraju <<a href="mailto:vathsala.nagaraju@intel.com" class="gmail_msg" target="_blank">vathsala.nagaraju@intel.com</a>><br class="gmail_msg">
> ---<br class="gmail_msg">
>  drivers/gpu/drm/i915/intel_psr.c | 15 ++++++++-------<br class="gmail_msg">
>  1 file changed, 8 insertions(+), 7 deletions(-)<br class="gmail_msg">
><br class="gmail_msg">
> diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c<br class="gmail_msg">
> index 6aca8ff..f2ca2a9 100644<br class="gmail_msg">
> --- a/drivers/gpu/drm/i915/intel_psr.c<br class="gmail_msg">
> +++ b/drivers/gpu/drm/i915/intel_psr.c<br class="gmail_msg">
> @@ -387,6 +387,13 @@ static bool intel_psr_match_conditions(struct intel_dp *intel_dp)<br class="gmail_msg">
>               return false;<br class="gmail_msg">
>       }<br class="gmail_msg">
><br class="gmail_msg">
> +     /* PSR2 is restricted to work with panel resolutions upto 3200x2000 */<br class="gmail_msg">
> +     if (intel_crtc->config->pipe_src_w > 3200 ||<br class="gmail_msg">
> +                             intel_crtc->config->pipe_src_h > 2000) {<br class="gmail_msg">
> +             dev_priv->psr.psr2_support = false;<br class="gmail_msg">
> +             return false;<br class="gmail_msg">
> +     }<br class="gmail_msg">
> +<br class="gmail_msg">
>       dev_priv->psr.source_ok = true;<br class="gmail_msg">
>       return true;<br class="gmail_msg">
>  }<br class="gmail_msg">
> @@ -425,7 +432,6 @@ void intel_psr_enable(struct intel_dp *intel_dp)<br class="gmail_msg">
>       struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);<br class="gmail_msg">
>       struct drm_device *dev = intel_dig_port->base.base.dev;<br class="gmail_msg">
>       struct drm_i915_private *dev_priv = to_i915(dev);<br class="gmail_msg">
> -     struct intel_crtc *crtc = to_intel_crtc(intel_dig_port->base.base.crtc);<br class="gmail_msg">
><br class="gmail_msg">
>       if (!HAS_PSR(dev_priv)) {<br class="gmail_msg">
>               DRM_DEBUG_KMS("PSR not supported on this platform\n");<br class="gmail_msg">
> @@ -452,12 +458,7 @@ void intel_psr_enable(struct intel_dp *intel_dp)<br class="gmail_msg">
>               hsw_psr_setup_vsc(intel_dp);<br class="gmail_msg">
><br class="gmail_msg">
>               if (dev_priv->psr.psr2_support) {<br class="gmail_msg">
> -                     /* PSR2 is restricted to work with panel resolutions upto 3200x2000 */<br class="gmail_msg">
> -                     if (crtc->config->pipe_src_w > 3200 ||<br class="gmail_msg">
> -                             crtc->config->pipe_src_h > 2000)<br class="gmail_msg">
> -                             dev_priv->psr.psr2_support = false;<br class="gmail_msg">
> -                     else<br class="gmail_msg">
> -                             skl_psr_setup_su_vsc(intel_dp);<br class="gmail_msg">
> +                     skl_psr_setup_su_vsc(intel_dp);<br class="gmail_msg">
>               }<br class="gmail_msg">
><br class="gmail_msg">
>               /*<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Intel-gfx mailing list<br class="gmail_msg">
<a href="mailto:Intel-gfx@lists.freedesktop.org" class="gmail_msg" target="_blank">Intel-gfx@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/intel-gfx" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/intel-gfx</a><br class="gmail_msg">
</blockquote></div>