aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-05 19:39:38 -0700
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-02-29 14:54:05 +0000
commitd6bc5da361a6553f8d4adaa0a4a07f2f7fc52ef8 (patch)
treec02b61f1689087d66c2d012b64771cf18ab6ac93
parent3eae13f7b98d6f536acaac66384a328b818ccd22 (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>
-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 58623f1a2e5e3..3a46acfe9f7bd 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,
};