From: Damien Lespiau Subject: Re: [PATCH 07/14] drm/i915: Use adjusted_mode when checking conditions for PSR Date: Tue, 10 Sep 2013 17:42:22 +0100 Message-ID: <20130910164222.GH16273@strange.amr.corp.intel.com> References: <1378308331-21388-1-git-send-email-ville.syrjala@linux.intel.com> <1378308331-21388-8-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 16462E5C94 for ; Tue, 10 Sep 2013 09:42:24 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1378308331-21388-8-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Sep 04, 2013 at 06:25:24PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > intel_edp_psr_match_conditions() currently looks at crtc->mode > when it really needs to look at adjusted_mode. Fix it. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau -- = Damien > --- > drivers/gpu/drm/i915/intel_dp.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel= _dp.c > index c192dbb..3f0dd65 100644 > --- a/drivers/gpu/drm/i915/intel_dp.c > +++ b/drivers/gpu/drm/i915/intel_dp.c > @@ -1570,7 +1570,8 @@ static bool intel_edp_psr_match_conditions(struct i= ntel_dp *intel_dp) > } > = > intel_crtc =3D to_intel_crtc(crtc); > - if (!intel_crtc->active || !crtc->fb || !crtc->mode.clock) { > + if (!intel_crtc->active || !crtc->fb || > + !intel_crtc->config.adjusted_mode.clock) { > DRM_DEBUG_KMS("crtc not active for PSR\n"); > dev_priv->no_psr_reason =3D PSR_CRTC_NOT_ACTIVE; > return false; > @@ -1597,7 +1598,7 @@ static bool intel_edp_psr_match_conditions(struct i= ntel_dp *intel_dp) > return false; > } > = > - if (crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { > + if (intel_crtc->config.adjusted_mode.flags & DRM_MODE_FLAG_INTERLACE) { > DRM_DEBUG_KMS("PSR condition failed: Interlaced is Enabled\n"); > dev_priv->no_psr_reason =3D PSR_INTERLACED_ENABLED; > return false; > -- = > 1.8.1.5 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx