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

Commit d4c72c41 authored by Patrick Daly's avatar Patrick Daly
Browse files

arm64: dma-mapping: Implement DMA_ATTR_IOMMU_USE_UPSTREAM_HINT



Translate this attribute into the appropriate iommu attribute, and
pass it to the iommu apis.

Change-Id: I58e0f85778ad3bab1f62d1dbd5f68090ce3c2a85
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent a0c45d4a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@ static int __get_iommu_pgprot(unsigned long attrs, int prot,
{
	if (!(attrs & DMA_ATTR_EXEC_MAPPING))
		prot |= IOMMU_NOEXEC;
	if (attrs & DMA_ATTR_IOMMU_USE_UPSTREAM_HINT)
		prot |= IOMMU_USE_UPSTREAM_HINT;
	if (coherent)
		prot |= IOMMU_CACHE;