Christoph Bumiller
2012-Jul-26 18:53 UTC
[Nouveau] [PATCH] drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
--- 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; } -- 1.7.3.4
Maarten Lankhorst
2012-Jul-26 20:04 UTC
[Nouveau] [PATCH] drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
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 <maarten.lankhorst at canonical.com> Cc: stable at vger.kernel.org [3.4]+ 3.2 didn't have d9 support yet.
Apparently Analagous Threads
- [PATCH] Fix nouveau hang after switcheroo
- [PATCH 3/3] nouveau: add vblank methods on newer cards
- [PATCH 1/4] nouveau: Allow allocating BOs at specific offsets
- [PATCH] disp/nvd0-: allow 540MHz data rate for nvd0+ devices
- [PATCH v2] disp/nvd0-: allow 540MHz data rate for nvd0+ devices