drm/nouveau/mmu: flush tlbs before deleting page tables
authorBen Skeggs <bskeggs@redhat.com>
Mon, 25 Sep 2017 05:05:38 +0000 (15:05 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Oct 2017 06:34:10 +0000 (16:34 +1000)
commit77913bbcb43ac9a07a6fe849c2fd3bf85fc8bdd8
tree3312e198a90b4b2a3f8548bd3b9e74b5f58c5a85
parent1b0e19bb0c6f6b209c6b711f47dfc81812706827
drm/nouveau/mmu: flush tlbs before deleting page tables

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c