Skip to contentSkip to conversation

drm/nv50: fix page faulting for 128MB page table sizes

PATCH New Marcin Slusarz 1 participant 1 message Nov 6, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nv50: fix page faulting for 128MB page table sizes

This seems to be a typo...

---
BTW, shouldn't limiting only be applied to small pages? (nv50-vm.txt says it's small-pages-only feature)

---
 drivers/gpu/drm/nouveau/nv50_vm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nv50_vm.c +1 -1
index 40b84f2..6f38cea 100644
@@ -48,7 +48,7 @@ nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde,
 			phys |= 0x60;
 		else if (coverage <= 64 * 1024 * 1024)
 			phys |= 0x40;
-		else if (coverage < 128 * 1024 * 1024)
+		else if (coverage <= 128 * 1024 * 1024)
 			phys |= 0x20;
 	}
 
Signature · 1 line
1.7.7