aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-05 19:39:38 -0700
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-11-17 09:22:25 +0000
commite550b057a7a6b435902216baf94c4af908716b22 (patch)
treece1c5311877d44b86f383c04e5be4406c4fb289a /include
parent73b3b3f5c3c04d6ebd005d1cfd3195a868b9cd4f (diff)
arm: Add option to skip buffer zeroing
The DMA framework currently zeros all buffers because it (righfully so) assumes that drivers will soon need to pass the memory to a device. Some devices/use case may not require zeroed memory and there can be an increase in performance if we skip the zeroing. Add a DMA_ATTR to allow skipping of DMA zeroing. Note: only the header file was modified to add the enum to allow the code to compile, however the arm32 implementation was not pulled, and the arm64 implementation is missing as well Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dma-attrs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h
index 29bd0a909bc8..eb1b9d727f39 100644
--- a/include/linux/dma-attrs.h
+++ b/include/linux/dma-attrs.h
@@ -19,6 +19,7 @@ enum dma_attr {
DMA_ATTR_SKIP_CPU_SYNC,
DMA_ATTR_FORCE_CONTIGUOUS,
DMA_ATTR_STRONGLY_ORDERED,
+ DMA_ATTR_SKIP_ZEROING,
DMA_ATTR_MAX,
};