]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
arm: Add option to skip buffer zeroing
authorLaura Abbott <lauraa@codeaurora.org>
Wed, 6 Aug 2014 02:39:38 +0000 (19:39 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Apr 2018 06:06:53 +0000 (06:06 +0000)
commit4732dbb0738d4afadadf575a063ae63044a831db
tree93ab181ec0f4962d95b566471ced0f72f8a55b77
parentdc623ba12958db6a65c3198fdd4da550c57e601b
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>
include/linux/dma-attrs.h