]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Return IOVA in iova_to_phys when SMMU is bypassed
authorSunil Goutham <sgoutham@cavium.com>
Tue, 25 Apr 2017 09:57:52 +0000 (15:27 +0530)
committerJoerg Roedel <jroedel@suse.de>
Wed, 26 Apr 2017 10:30:10 +0000 (12:30 +0200)
commit3fc029c585ebcaaa3e4949c1b0473429375d3c3c
treecc463fbb7747b233592ab2ec51aa8606a8f41b99
parent7589c8f71f69b9dd4bca69f3ce4c07573bbc2821
iommu/arm-smmu: Return IOVA in iova_to_phys when SMMU is bypassed

For software initiated address translation, when domain type is
IOMMU_DOMAIN_IDENTITY i.e SMMU is bypassed, mimic HW behavior
i.e return the same IOVA as translated address.

This patch is an extension to Will Deacon's patchset
"Implement SMMU passthrough using the default domain".

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c