]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
ARM: dma-mapping: add support for DMA_ATTR_SKIP_CPU_SYNC attribute
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 6 Jun 2012 12:50:56 +0000 (14:50 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Jul 2012 10:25:47 +0000 (12:25 +0200)
commit97ef952a20853fad72087a53fa556fbec45edd8f
tree5aa3a3422ead9dc4933a5cf57169dbe659ba0ce7
parentbdf5e4871f1b41150236e2337837399109469e65
ARM: dma-mapping: add support for DMA_ATTR_SKIP_CPU_SYNC attribute

This patch adds support for DMA_ATTR_SKIP_CPU_SYNC attribute for
dma_(un)map_(single,page,sg) functions family. It lets dma mapping clients
to create a mapping for the buffer for the given device without performing
a CPU cache synchronization. CPU cache synchronization can be skipped for
the buffers which it is known that they are already in 'device' domain (CPU
caches have been already synchronized or there are only coherent mappings
for the buffer). For advanced users only, please use it with care.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
arch/arm/mm/dma-mapping.c