]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
common: DMA-mapping: add NON-CONSISTENT attribute
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 28 Mar 2012 05:55:56 +0000 (07:55 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 28 Mar 2012 14:36:44 +0000 (16:36 +0200)
DMA_ATTR_NON_CONSISTENT lets the platform to choose to return either
consistent or non-consistent memory as it sees fit.  By using this API,
you are guaranteeing to the platform that you have all the correct and
necessary sync points for this memory in the driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Documentation/DMA-attributes.txt
include/linux/dma-attrs.h

index 811a5d458dae79c9d557330793be45f53009ab68..5c72eed89563083250217336c79ab1d7f350a7c5 100644 (file)
@@ -41,3 +41,11 @@ buffered to improve performance.
 Since it is optional for platforms to implement DMA_ATTR_WRITE_COMBINE,
 those that do not will simply ignore the attribute and exhibit default
 behavior.
+
+DMA_ATTR_NON_CONSISTENT
+-----------------------
+
+DMA_ATTR_NON_CONSISTENT lets the platform to choose to return either
+consistent or non-consistent memory as it sees fit.  By using this API,
+you are guaranteeing to the platform that you have all the correct and
+necessary sync points for this memory in the driver.
index ada61e1abf2937d8705ffd0b2e2ffe0b42624a93..547ab568d3ae83f940e503c6999719f37a73547e 100644 (file)
@@ -14,6 +14,7 @@ enum dma_attr {
        DMA_ATTR_WRITE_BARRIER,
        DMA_ATTR_WEAK_ORDERING,
        DMA_ATTR_WRITE_COMBINE,
+       DMA_ATTR_NON_CONSISTENT,
        DMA_ATTR_MAX,
 };