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)
commitbdf95923086fb359ccb44c815724c3ace1611c90
treecc463fbb7747b233592ab2ec51aa8606a8f41b99
parent6323f474902e372623d73486c1ad30eb40d6604f
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