From: Damien Lespiau Subject: Re: [PATCH 06/14] drm/i915: Check the clock from adjusted mode in intel_crtc_active() Date: Tue, 10 Sep 2013 16:00:56 +0100 Message-ID: <20130910150056.GF16273@strange.amr.corp.intel.com> References: <1378308331-21388-1-git-send-email-ville.syrjala@linux.intel.com> <1378308331-21388-7-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 mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id E5B0EE618F for ; Tue, 10 Sep 2013 08:00:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1378308331-21388-7-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:23PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > The clock in crtc->mode doesn't necessarily mean anything. Let's look > at the clock in adjusted_mode instead. > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau -- = Damien > --- > drivers/gpu/drm/i915/intel_pm.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel= _pm.c > index 48d93d3..397628b 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -45,10 +45,13 @@ > = > static bool intel_crtc_active(struct drm_crtc *crtc) > { > + struct intel_crtc *intel_crtc =3D to_intel_crtc(crtc); > + > /* Be paranoid as we can arrive here with only partial > * state retrieved from the hardware during setup. > */ > - return to_intel_crtc(crtc)->active && crtc->fb && crtc->mode.clock; > + return intel_crtc->active && crtc->fb && > + intel_crtc->config.adjusted_mode.clock; > } > = > static void i8xx_disable_fbc(struct drm_device *dev) > -- = > 1.8.1.5 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx