linux/drivers/iommu/amd
Robin Murphy 13b6eb6e1c iommu: Streamline iommu_iova_to_phys()
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.

Since all the existing drivers implement the internal callback, and any
future ones are likely to want to work with iommu-dma which relies on
iova_to_phys a fair bit, we may as well remove that currently-redundant
check as well and consider it mandatory.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/f564f3f6ff731b898ff7a898919bf871c2c7745a.1626354264.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-07-26 13:37:51 +02:00
..
amd_iommu_types.h iommu/amd: Add support for IOMMU default DMA mode build options 2021-07-26 13:27:38 +02:00
amd_iommu.h iommu/amd: Tidy up DMA ops init 2021-06-07 14:51:33 +02:00
debugfs.c
init.c iommu: Remove mode argument from iommu_set_dma_strict() 2021-07-26 13:27:38 +02:00
io_pgtable.c iommu: Streamline iommu_iova_to_phys() 2021-07-26 13:37:51 +02:00
iommu_v2.c iommu/amd: Use DEFINE_SPINLOCK() for spinlock 2021-01-27 12:41:11 +01:00
iommu.c iommu/amd: Add support for IOMMU default DMA mode build options 2021-07-26 13:27:38 +02:00
Kconfig iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
Makefile iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
quirks.c