From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH] drm/i915: fix fastboot pfit disable hack to update pipe w/h Date: Mon, 6 Jan 2014 15:31:23 -0800 Message-ID: <20140106153123.18d8fdfe@jbarnes-desktop> References: <1387478881-2357-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from qproxy1.mail.unifiedlayer.com (qproxy1-pub.mail.unifiedlayer.com [173.254.64.10]) by gabe.freedesktop.org (Postfix) with SMTP id 5BD87107ADB for ; Mon, 6 Jan 2014 15:28:56 -0800 (PST) Received: from [67.161.37.189] (port=38409 helo=jbarnes-desktop) by box514.bluehost.com with esmtpsa (UNKNOWN:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1W0JbK-0000s4-OI for intel-gfx@lists.freedesktop.org; Mon, 06 Jan 2014 16:28:54 -0700 In-Reply-To: <1387478881-2357-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 19 Dec 2013 10:48:01 -0800 Jesse Barnes wrote: > When fastbooting, we read out the pipe timings early on, and then in a > panel fitted config, disable the fitter later. But we weren't updating > the pipe src h/w, which meant the mouse cursor was clipped to the > pfitted size rather than the native size set later. Fix that up so the > cursor is visible in the new mode. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/intel_display.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index 4d1357a..7e46d75 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -2382,6 +2382,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, > I915_WRITE(PF_WIN_POS(intel_crtc->pipe), 0); > I915_WRITE(PF_WIN_SZ(intel_crtc->pipe), 0); > } > + intel_crtc->config.pipe_src_w = adjusted_mode->crtc_hdisplay; > + intel_crtc->config.pipe_src_h = adjusted_mode->crtc_vdisplay; > } > > ret = dev_priv->display.update_plane(crtc, fb, x, y); References: https://bugzilla.kernel.org/show_bug.cgi?id=67591 -- Jesse Barnes, Intel Open Source Technology Center