]> git.baikalelectronics.ru Git - kernel.git/commit
nouveau: reset dma_nr in nouveau_dmem_migrate_alloc_and_copy
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2019 07:59:20 +0000 (09:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:03 +0000 (09:35 -0300)
commit1fbe48d8e2f73ca1e2c900a7f5c42ba7043b613d
tree7a25b4f333ec6dc8972d65338c57abbd3f6084f5
parentb602166b67ec0af2e4cfc718f141d4c20955f0ac
nouveau: reset dma_nr in nouveau_dmem_migrate_alloc_and_copy

When we start a new batch of dma_map operations we need to reset dma_nr,
as we start filling a newly allocated array.

Link: https://lore.kernel.org/r/20190814075928.23766-3-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