mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/nvc0: remove vm hack forcing large/small pages to not share a PDE
Appears to be fixed with commit: "drm/nv50-nvc0: make sure vma is definitely unmapped when destroying bo" Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
e73f88af66
commit
b84f30e65c
1 changed files with 1 additions and 12 deletions
|
@ -314,18 +314,7 @@ nouveau_vm_new(struct drm_device *dev, u64 offset, u64 length, u64 mm_offset,
|
||||||
vm->spg_shift = 12;
|
vm->spg_shift = 12;
|
||||||
vm->lpg_shift = 17;
|
vm->lpg_shift = 17;
|
||||||
pgt_bits = 27;
|
pgt_bits = 27;
|
||||||
|
block = 4096;
|
||||||
/* Should be 4096 everywhere, this is a hack that's
|
|
||||||
* currently necessary to avoid an elusive bug that
|
|
||||||
* causes corruption when mixing small/large pages
|
|
||||||
*/
|
|
||||||
if (length < (1ULL << 40))
|
|
||||||
block = 4096;
|
|
||||||
else {
|
|
||||||
block = (1 << pgt_bits);
|
|
||||||
if (length < block)
|
|
||||||
block = length;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
kfree(vm);
|
kfree(vm);
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
|
|
Loading…
Add table
Reference in a new issue