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

Commit 20df31ae authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Sathish Ambley
Browse files

common: DMA-mapping: Add EXEC_MAPPING attribute



DMA_ATTR_EXEC_MAPPING specifies that an executable mapping
should be created for the requested buffer. By default, the
DMA mappings are non-executable.

Change-Id: I135077e14996e92fa9d199bdee043c443db48924
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent d837ea84
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -119,3 +119,10 @@ reference so that when the buffer is freed, the mapping is not destroyed
and can be re-used. By specifying this attribute, an additional reference
will NOT be held by the lazy mapping code and it will be released as soon
as the buffer is freed.

DMA_ATTR_EXEC_MAPPING
---------------------

By default, the DMA mappings are non-executable. Some use cases might require
an executable mapping. This attribute can be used to indicate to the DMA
subsystem to create an executable mappings for the buffer.
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ enum dma_attr {
	DMA_ATTR_STRONGLY_ORDERED,
	DMA_ATTR_SKIP_ZEROING,
	DMA_ATTR_NO_DELAYED_UNMAP,
	DMA_ATTR_EXEC_MAPPING,
	DMA_ATTR_MAX,
};