summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/nvgpu_mem.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvgpu_mem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
index fb7ee7fe..b46dbb6b 100644
--- a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
+++ b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
@@ -20,6 +20,8 @@
20#include <nvgpu/log.h> 20#include <nvgpu/log.h>
21#include <nvgpu/bug.h> 21#include <nvgpu/bug.h>
22 22
23#include <nvgpu/linux/dma.h>
24
23#include "gk20a/gk20a.h" 25#include "gk20a/gk20a.h"
24#include "gk20a/mm_gk20a.h" 26#include "gk20a/mm_gk20a.h"
25 27
@@ -286,11 +288,11 @@ int nvgpu_mem_create_from_mem(struct gk20a *g,
286 * is passed to us. This table gets freed by the dma free routines. 288 * is passed to us. This table gets freed by the dma free routines.
287 */ 289 */
288 if (src->priv.flags & NVGPU_DMA_NO_KERNEL_MAPPING) 290 if (src->priv.flags & NVGPU_DMA_NO_KERNEL_MAPPING)
289 ret = gk20a_get_sgtable_from_pages(g->dev, &dest->priv.sgt, 291 ret = nvgpu_get_sgtable_from_pages(g, &dest->priv.sgt,
290 src->priv.pages + start_page, 292 src->priv.pages + start_page,
291 new_iova, size); 293 new_iova, size);
292 else 294 else
293 ret = gk20a_get_sgtable(g->dev, &dest->priv.sgt, dest->cpu_va, 295 ret = nvgpu_get_sgtable(g, &dest->priv.sgt, dest->cpu_va,
294 new_iova, size); 296 new_iova, size);
295 297
296 return ret; 298 return ret;