drm/nouveau: fix vram page mapping when crossing page table boundaries
authorBen Skeggs <bskeggs@redhat.com>
Fri, 27 May 2011 16:12:04 +0000 (02:12 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 6 Jun 2011 23:22:48 +0000 (09:22 +1000)
Hopefully the cause of nvc0 "page jumping" issue.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_vm.c

index 0059e6f58a8b642c9d88f00b7991a97dc68b1772..519a6b4bba466fce9a46577908b411e5cfdbbdfa 100644 (file)
@@ -58,6 +58,7 @@ nouveau_vm_map_at(struct nouveau_vma *vma, u64 delta, struct nouveau_mem *node)
                        num -= len;
                        pte += len;
                        if (unlikely(end >= max)) {
+                               phys += len << (bits + 12);
                                pde++;
                                pte = 0;
                        }