summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vm.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vm.c b/drivers/gpu/nvgpu/common/linux/vm.c
index f4ac3d41..d0f87148 100644
--- a/drivers/gpu/nvgpu/common/linux/vm.c
+++ b/drivers/gpu/nvgpu/common/linux/vm.c
@@ -42,7 +42,7 @@
42enum nvgpu_aperture gk20a_dmabuf_aperture(struct gk20a *g, 42enum nvgpu_aperture gk20a_dmabuf_aperture(struct gk20a *g,
43 struct dma_buf *dmabuf) 43 struct dma_buf *dmabuf)
44{ 44{
45 struct gk20a *buf_owner = gk20a_vidmem_buf_owner(dmabuf); 45 struct gk20a *buf_owner = nvgpu_vidmem_buf_owner(dmabuf);
46 bool unified_memory = nvgpu_is_enabled(g, NVGPU_MM_UNIFIED_MEMORY); 46 bool unified_memory = nvgpu_is_enabled(g, NVGPU_MM_UNIFIED_MEMORY);
47 47
48 if (buf_owner == NULL) { 48 if (buf_owner == NULL) {
@@ -97,7 +97,8 @@ static u64 nvgpu_get_buffer_alignment(struct gk20a *g, struct scatterlist *sgl,
97 u64 buf_addr; 97 u64 buf_addr;
98 98
99 if (aperture == APERTURE_VIDMEM) { 99 if (aperture == APERTURE_VIDMEM) {
100 struct nvgpu_page_alloc *alloc = get_vidmem_page_alloc(sgl); 100 struct nvgpu_page_alloc *alloc =
101 nvgpu_vidmem_get_page_alloc(sgl);
101 struct nvgpu_sgt *sgt = &alloc->sgt; 102 struct nvgpu_sgt *sgt = &alloc->sgt;
102 void *sgl_vid = sgt->sgl; 103 void *sgl_vid = sgt->sgl;
103 104