From: Damien Lespiau Subject: Re: [PATCH v2 01/14] drm/i915: Grab the pixel clock from adjusted_mode not requested_mode Date: Tue, 10 Sep 2013 15:27:37 +0100 Message-ID: <20130910142737.GA16273@strange.amr.corp.intel.com> References: <1378308331-21388-1-git-send-email-ville.syrjala@linux.intel.com> <1378308331-21388-2-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 mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id E1C42E6442 for ; Tue, 10 Sep 2013 07:27:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1378308331-21388-2-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:18PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > i9xx_set_pipeconf() attempts to get the current pixel clock from > requested_mode. requested_mode.clock may be totally bogus, so the > clock should come from adjusted_mode. > = > v2: Dropped the intel_compute_config() hunk due to killing of the > INTEL_FDI_FREQ check > = > Signed-off-by: Ville Syrj=E4l=E4 Reviewed-by: Damien Lespiau If you feel brave enough you could also have reindent the comment above the modified line to 80 chars. -- = Damien > --- > drivers/gpu/drm/i915/intel_display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/= intel_display.c > index a4fe594..2c450fe 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -4786,7 +4786,7 @@ static void i9xx_set_pipeconf(struct intel_crtc *in= tel_crtc) > * XXX: No double-wide on 915GM pipe B. Is that the only reason for the > * pipe =3D=3D 0 check? > */ > - if (intel_crtc->config.requested_mode.clock > > + if (intel_crtc->config.adjusted_mode.clock > > dev_priv->display.get_display_clock_speed(dev) * 9 / 10) > pipeconf |=3D PIPECONF_DOUBLE_WIDE; > } > -- = > 1.8.1.5 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx