Signed-off-by: Pekka Paalanen <[email protected]>
---
 drivers/gpu/drm/nouveau/nv50_display.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nv50_display.c 
b/drivers/gpu/drm/nouveau/nv50_display.c
index ee3905d..b81dc16 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -639,14 +639,12 @@ nv50_display_vblank_crtc_handler(struct drm_device *dev, 
int crtc)
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct nouveau_channel *chan;
        struct list_head *entry, *tmp;
-       uint32_t *sem;
 
        list_for_each_safe(entry, tmp, &dev_priv->vbl_waiting) {
                chan = list_entry(entry, struct nouveau_channel, nvsw.vbl_wait);
 
-               sem = chan->notifier_bo->kmap.virtual;
-               sem[chan->nvsw.vblsem_offset] = chan->nvsw.vblsem_rval;
-
+               nouveau_bo_wr32(chan->notifier_bo, chan->nvsw.vblsem_offset,
+                                               chan->nvsw.vblsem_rval);
                list_del(&chan->nvsw.vbl_wait);
        }
 }
-- 
1.6.3.3

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to