diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/dma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c index fe4e9bc8..c13dae8b 100644 --- a/drivers/gpu/nvgpu/common/linux/dma.c +++ b/drivers/gpu/nvgpu/common/linux/dma.c | |||
@@ -50,7 +50,7 @@ | |||
50 | * added it must be added here as well!! | 50 | * added it must be added here as well!! |
51 | */ | 51 | */ |
52 | #define NVGPU_DMA_STR_SIZE \ | 52 | #define NVGPU_DMA_STR_SIZE \ |
53 | sizeof("NO_KERNEL_MAPPING FORCE_CONTIGUOUS READ_ONLY") | 53 | sizeof("NO_KERNEL_MAPPING FORCE_CONTIGUOUS") |
54 | 54 | ||
55 | /* | 55 | /* |
56 | * The returned string is kmalloc()ed here but must be freed by the caller. | 56 | * The returned string is kmalloc()ed here but must be freed by the caller. |
@@ -77,7 +77,6 @@ static char *nvgpu_dma_flags_to_str(struct gk20a *g, unsigned long flags) | |||
77 | 77 | ||
78 | APPEND_FLAG(NVGPU_DMA_NO_KERNEL_MAPPING, "NO_KERNEL_MAPPING "); | 78 | APPEND_FLAG(NVGPU_DMA_NO_KERNEL_MAPPING, "NO_KERNEL_MAPPING "); |
79 | APPEND_FLAG(NVGPU_DMA_FORCE_CONTIGUOUS, "FORCE_CONTIGUOUS "); | 79 | APPEND_FLAG(NVGPU_DMA_FORCE_CONTIGUOUS, "FORCE_CONTIGUOUS "); |
80 | APPEND_FLAG(NVGPU_DMA_READ_ONLY, "READ_ONLY"); | ||
81 | #undef APPEND_FLAG | 80 | #undef APPEND_FLAG |
82 | 81 | ||
83 | return buf; | 82 | return buf; |
@@ -171,8 +170,6 @@ static void nvgpu_dma_flags_to_attrs(struct dma_attrs *attrs, | |||
171 | dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, ATTR_ARG(attrs)); | 170 | dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, ATTR_ARG(attrs)); |
172 | if (flags & NVGPU_DMA_FORCE_CONTIGUOUS) | 171 | if (flags & NVGPU_DMA_FORCE_CONTIGUOUS) |
173 | dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, ATTR_ARG(attrs)); | 172 | dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, ATTR_ARG(attrs)); |
174 | if (flags & NVGPU_DMA_READ_ONLY) | ||
175 | dma_set_attr(DMA_ATTR_READ_ONLY, ATTR_ARG(attrs)); | ||
176 | #undef ATTR_ARG | 173 | #undef ATTR_ARG |
177 | } | 174 | } |
178 | 175 | ||