Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64d70fe5 authored by Marek Szyprowski's avatar Marek Szyprowski
Browse files

common: DMA-mapping: add NON-CONSISTENT attribute



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: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 8a413432
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -41,3 +41,11 @@ buffered to improve performance.
Since it is optional for platforms to implement DMA_ATTR_WRITE_COMBINE,
Since it is optional for platforms to implement DMA_ATTR_WRITE_COMBINE,
those that do not will simply ignore the attribute and exhibit default
those that do not will simply ignore the attribute and exhibit default
behavior.
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.
+1 −0
Original line number Original line Diff line number Diff line
@@ -14,6 +14,7 @@ enum dma_attr {
	DMA_ATTR_WRITE_BARRIER,
	DMA_ATTR_WRITE_BARRIER,
	DMA_ATTR_WEAK_ORDERING,
	DMA_ATTR_WEAK_ORDERING,
	DMA_ATTR_WRITE_COMBINE,
	DMA_ATTR_WRITE_COMBINE,
	DMA_ATTR_NON_CONSISTENT,
	DMA_ATTR_MAX,
	DMA_ATTR_MAX,
};
};