summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r--drivers/gpu/nvgpu/common/linux/dma.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c
index 6473aed9..ea5b2837 100644
--- a/drivers/gpu/nvgpu/common/linux/dma.c
+++ b/drivers/gpu/nvgpu/common/linux/dma.c
@@ -77,9 +77,13 @@ int nvgpu_dma_alloc_flags(struct gk20a *g, unsigned long flags, size_t size,
77 * the lack of it for vidmem - the user should not care when 77 * the lack of it for vidmem - the user should not care when
78 * using nvgpu_gmmu_alloc_map and it's vidmem, or if there's a 78 * using nvgpu_gmmu_alloc_map and it's vidmem, or if there's a
79 * difference, the user should use the flag explicitly anyway. 79 * difference, the user should use the flag explicitly anyway.
80 *
81 * Incoming flags are ignored here, since bits other than the
82 * no-kernel-mapping flag are ignored by the vidmem mapping
83 * functions anyway.
80 */ 84 */
81 int err = nvgpu_dma_alloc_flags_vid(g, 85 int err = nvgpu_dma_alloc_flags_vid(g,
82 flags | NVGPU_DMA_NO_KERNEL_MAPPING, 86 NVGPU_DMA_NO_KERNEL_MAPPING,
83 size, mem); 87 size, mem);
84 88
85 if (!err) 89 if (!err)