From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maarten Lankhorst Subject: Re: [PATCH] drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate Date: Thu, 26 Jul 2012 22:04:05 +0200 Message-ID: <5011A2B5.7060402@gmail.com> References: <1343328799-9372-1-git-send-email-e0425955@student.tuwien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343328799-9372-1-git-send-email-e0425955-oe7qfRrRQffzPE21tAIdciO7C/xPubJB@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Christoph Bumiller Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org Op 26-07-12 20:53, Christoph Bumiller schreef: > --- > drivers/gpu/drm/nouveau/nvd0_display.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c > index c486d3c..c50b075 100644 > --- a/drivers/gpu/drm/nouveau/nvd0_display.c > +++ b/drivers/gpu/drm/nouveau/nvd0_display.c > @@ -790,7 +790,7 @@ nvd0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) > struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); > int ch = EVO_CURS(nv_crtc->index); > > - evo_piow(crtc->dev, ch, 0x0084, (y << 16) | x); > + evo_piow(crtc->dev, ch, 0x0084, (y << 16) | (x & 0xffff)); > evo_piow(crtc->dev, ch, 0x0080, 0x00000000); > return 0; > } Signed-off-by: Maarten Lankhorst Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [3.4]+ 3.2 didn't have d9 support yet.