Skip to content

Commit 4516069

Browse files
Ben Skeggsgregkh
authored andcommitted
drm/nouveau/mmu: flush tlbs before deleting page tables
commit 77913bbcb43ac9a07a6fe849c2fd3bf85fc8bdd8 upstream. Even though we've zeroed the PDE, the GPU may have cached the PD, so we need to flush when deleting them. Noticed while working on replacement MMU code, but a backport might be a good idea, so let's fix it in the current code too. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 195674a commit 4516069

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/gpu/drm/nouveau/nvkm/subdev/mmu

drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ nvkm_vm_unmap_pgt(struct nvkm_vm *vm, int big, u32 fpde, u32 lpde)
240240
mmu->func->map_pgt(vpgd->obj, pde, vpgt->mem);
241241
}
242242

243+
mmu->func->flush(vm);
244+
243245
nvkm_memory_del(&pgt);
244246
}
245247
}

0 commit comments

Comments
 (0)