diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/dma.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c index ca657da2..b62c4593 100644 --- a/drivers/gpu/nvgpu/common/linux/dma.c +++ b/drivers/gpu/nvgpu/common/linux/dma.c | |||
@@ -28,9 +28,11 @@ | |||
28 | #include <nvgpu/vidmem.h> | 28 | #include <nvgpu/vidmem.h> |
29 | 29 | ||
30 | #include <nvgpu/linux/dma.h> | 30 | #include <nvgpu/linux/dma.h> |
31 | #include <nvgpu/linux/vidmem.h> | ||
31 | 32 | ||
32 | #include "gk20a/gk20a.h" | 33 | #include "gk20a/gk20a.h" |
33 | #include "gk20a/platform_gk20a.h" | 34 | #include "gk20a/platform_gk20a.h" |
35 | |||
34 | #include "os_linux.h" | 36 | #include "os_linux.h" |
35 | 37 | ||
36 | /* | 38 | /* |
@@ -348,6 +350,7 @@ int nvgpu_dma_alloc_flags_vid_at(struct gk20a *g, unsigned long flags, | |||
348 | 350 | ||
349 | mem->aligned_size = size; | 351 | mem->aligned_size = size; |
350 | mem->aperture = APERTURE_VIDMEM; | 352 | mem->aperture = APERTURE_VIDMEM; |
353 | mem->vidmem_alloc = (struct nvgpu_page_alloc *)(uintptr_t)addr; | ||
351 | mem->allocator = vidmem_alloc; | 354 | mem->allocator = vidmem_alloc; |
352 | mem->priv.flags = flags; | 355 | mem->priv.flags = flags; |
353 | 356 | ||