nouveau: factor out dmem fence completion
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2019 07:59:22 +0000 (09:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:03 +0000 (09:35 -0300)
commit2ab2bda53c986a93e46228bff4362b6267202f81
tree745b4f1609abf76eb119fca059ac46456f2d20c0
parent64de8b8d65f9bfd0fced9029bcec37257614ccaf
nouveau: factor out dmem fence completion

Factor out the end of fencing logic from the two migration routines.

Link: https://lore.kernel.org/r/20190814075928.23766-5-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c