Loading Documentation/DMA-attributes.txt +7 −0 Original line number Diff line number Diff line Loading @@ -169,3 +169,10 @@ 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. DMA_ATTR_IOMMU_USE_UPSTREAM_HINT -------------------------------- DMA_ATTR_IOMMU_USE_UPSTREAM_HINT: Normally an smmu will override any bus attributes (i.e cacheablilty) provided by the client device. Some hardware may be designed to use the original attributes instead. include/linux/dma-mapping.h +6 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,12 @@ * DMA_ATTR_EXEC_MAPPING: The mapping has executable permissions. */ #define DMA_ATTR_EXEC_MAPPING (1UL << 12) /* * DMA_ATTR_IOMMU_USE_UPSTREAM_HINT: Normally an smmu will override any bus * attributes (i.e cacheablilty) provided by the client device. Some hardware * may be designed to use the original attributes instead. */ #define DMA_ATTR_IOMMU_USE_UPSTREAM_HINT (1UL << 13) /* * A dma_addr_t can hold any valid DMA or bus address for the platform. Loading Loading
Documentation/DMA-attributes.txt +7 −0 Original line number Diff line number Diff line Loading @@ -169,3 +169,10 @@ 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. DMA_ATTR_IOMMU_USE_UPSTREAM_HINT -------------------------------- DMA_ATTR_IOMMU_USE_UPSTREAM_HINT: Normally an smmu will override any bus attributes (i.e cacheablilty) provided by the client device. Some hardware may be designed to use the original attributes instead.
include/linux/dma-mapping.h +6 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,12 @@ * DMA_ATTR_EXEC_MAPPING: The mapping has executable permissions. */ #define DMA_ATTR_EXEC_MAPPING (1UL << 12) /* * DMA_ATTR_IOMMU_USE_UPSTREAM_HINT: Normally an smmu will override any bus * attributes (i.e cacheablilty) provided by the client device. Some hardware * may be designed to use the original attributes instead. */ #define DMA_ATTR_IOMMU_USE_UPSTREAM_HINT (1UL << 13) /* * A dma_addr_t can hold any valid DMA or bus address for the platform. Loading