From: Ben Skeggs Date: Fri, 27 May 2011 16:12:04 +0000 (+1000) Subject: drm/nouveau: fix vram page mapping when crossing page table boundaries X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73c337e70e75bb94dcb21459dd06afad0746634c;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git drm/nouveau: fix vram page mapping when crossing page table boundaries Hopefully the cause of nvc0 "page jumping" issue. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_vm.c b/drivers/gpu/drm/nouveau/nouveau_vm.c index 0059e6f58a8b..519a6b4bba46 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vm.c +++ b/drivers/gpu/drm/nouveau/nouveau_vm.c @@ -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; }