Commit 73c337e7 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: fix vram page mapping when crossing page table boundaries

Hopefully the cause of nvc0 "page jumping" issue.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c1003d9c
...@@ -58,6 +58,7 @@ nouveau_vm_map_at(struct nouveau_vma *vma, u64 delta, struct nouveau_mem *node) ...@@ -58,6 +58,7 @@ nouveau_vm_map_at(struct nouveau_vma *vma, u64 delta, struct nouveau_mem *node)
num -= len; num -= len;
pte += len; pte += len;
if (unlikely(end >= max)) { if (unlikely(end >= max)) {
phys += len << (bits + 12);
pde++; pde++;
pte = 0; pte = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment