diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-05-27 16:12:04 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-06 23:22:48 (GMT) |
commit | 73c337e70e75bb94dcb21459dd06afad0746634c (patch) | |
tree | 704d89b8e2ff3abd3bb66860ecc62011a512feb7 /drivers/gpu/drm/nouveau | |
parent | c1003d9c90f410777ab57f675b2a575c9c7ab5d7 (diff) | |
download | linux-fsl-qoriq-73c337e70e75bb94dcb21459dd06afad0746634c.tar.xz |
drm/nouveau: fix vram page mapping when crossing page table boundaries
Hopefully the cause of nvc0 "page jumping" issue.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vm.c b/drivers/gpu/drm/nouveau/nouveau_vm.c index 0059e6f..519a6b4 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; } |