Displaying 1 result from an estimated 1 matches for "ttm_unmap_and_unpopulate_pages".
2017 Aug 18
0
[PATCH] drm/nouveau: use new TTM populate/DMA map function
...1539,14 +1513,7 @@ nouveau_ttm_tt_unpopulate(struct ttm_tt *ttm)
}
#endif
- for (i = 0; i < ttm->num_pages; i++) {
- if (ttm_dma->dma_address[i]) {
- dma_unmap_page(pdev, ttm_dma->dma_address[i], PAGE_SIZE,
- DMA_BIDIRECTIONAL);
- }
- }
-
- ttm_pool_unpopulate(ttm);
+ ttm_unmap_and_unpopulate_pages(pdev, ttm_dma);
}
void
--
2.12.0