[PATCH] iommu: Unify iova_to_phys for identity domains

Joerg Roedel joro at 8bytes.org
Mon Jul 26 04:34:23 PDT 2021


On Wed, Jul 14, 2021 at 06:28:34PM +0100, Robin Murphy wrote:
> If people are going to insist on calling iommu_iova_to_phys()
> pointlessly and expecting it to work, we can at least do ourselves a
> favour by handling those cases in the core code, rather than repeatedly
> across an inconsistent handful of drivers.
> 
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
> ---
>  drivers/iommu/amd/io_pgtable.c              | 3 ---
>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 ---
>  drivers/iommu/arm/arm-smmu/arm-smmu.c       | 3 ---
>  drivers/iommu/iommu.c                       | 6 +++++-
>  4 files changed, 5 insertions(+), 10 deletions(-)

Applied to iommu/core, thanks.




More information about the linux-arm-kernel mailing list