From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: Use adjusted_mode in the fastboot hack to disable pfit Date: Fri, 4 Oct 2013 10:35:59 +0200 Message-ID: <20131004083559.GM31334@phenom.ffwll.local> References: <1380547310-27091-1-git-send-email-damien.lespiau@intel.com> <1380547310-27091-2-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id AE73EE7480 for ; Fri, 4 Oct 2013 01:35:41 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id c41so1647606eek.11 for ; Fri, 04 Oct 2013 01:35:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1380547310-27091-2-git-send-email-damien.lespiau@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: Damien Lespiau Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 30, 2013 at 02:21:50PM +0100, Damien Lespiau wrote: > When booting with i915.fastboot=1, we always take tha code path and end > up undoing what we're trying to do with adjusted_mode. > > Hopefully, as the fastboot hardware readout code is using adjusted_mode > as well, it should be equivalent. > > Signed-off-by: Damien Lespiau Both patches merged to dinq. I'd prefer if patch authors take a more proactive role in signing people up for review. And that the domain experts (Jesse here for fastboot) have a look-out on the m-l for relevant small patches and slap their review onto them without me needing to poke people all the time ... Cheers, Daniel > --- > drivers/gpu/drm/i915/intel_display.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index b8a0a62..3d069de 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -2300,9 +2300,12 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, > * then update the pipesrc and pfit state, even on the flip path. > */ > if (i915_fastboot) { > + const struct drm_display_mode *adjusted_mode = > + &intel_crtc->config.adjusted_mode; > + > I915_WRITE(PIPESRC(intel_crtc->pipe), > - ((crtc->mode.hdisplay - 1) << 16) | > - (crtc->mode.vdisplay - 1)); > + ((adjusted_mode->crtc_hdisplay - 1) << 16) | > + (adjusted_mode->crtc_vdisplay - 1)); > if (!intel_crtc->config.pch_pfit.enabled && > (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) || > intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP))) { > -- > 1.8.3.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch