diff --git a/Documentation/DMA-attributes.txt b/Documentation/DMA-attributes.txt index 23f7530f367b..64a4f9bb62c4 100644 --- a/Documentation/DMA-attributes.txt +++ b/Documentation/DMA-attributes.txt @@ -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. diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index ee61109a0b5f..9799594ce09d 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h @@ -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, };