]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas
authorBen Skeggs <bskeggs@redhat.com>
Mon, 12 Dec 2016 07:52:45 +0000 (17:52 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Dec 2016 01:39:55 +0000 (11:39 +1000)
commit10dcab3e7f477bffee88d518aad57d06777cfdf4
tree36aa6645d0bde81298b80302d4065d8f7676bb13
parent732be80743e72a2e9f04e8a9f369f0c6432b85d1
drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas

TTM was changed a while back to allow for pipelining of buffer moves, and
part of this was the removal of waiting for a BO to idle before calling
move(), placing the responsibility on the driver to do this if required.

That's all well and good, except, we make use of move_notify() to handle
mapping/unmapping from the GPU VMM as move() isn't called on all paths.

This commit adds a wait before unmapping from a VMM in move_notify(), to
prevent GPU page faults where a buffer is still being accessed.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org [v4.8+]
drivers/gpu/drm/nouveau/nouveau_bo.c