nouveau/svm: use the new migration invalidation
authorRalph Campbell <rcampbell@nvidia.com>
Thu, 23 Jul 2020 22:30:02 +0000 (15:30 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 28 Jul 2020 19:20:33 +0000 (16:20 -0300)
commitf8477ce6b5923ef9829e32f2165ea9c2b4b754d2
treef5f62e123b88987cec782eaf9f55cb9a0b52bda6
parent998427b3ad2c769082853880cf353557ec0ec77d
nouveau/svm: use the new migration invalidation

Use the new MMU_NOTIFY_MIGRATE event to skip GPU MMU invalidations of
device private memory and handle the invalidation in the driver as part of
migrating device private memory.

Link: https://lore.kernel.org/r/20200723223004.9586-5-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c
drivers/gpu/drm/nouveau/nouveau_svm.c
drivers/gpu/drm/nouveau/nouveau_svm.h