The series adds support for recently introduced property "iommu-ranges". It adds the required checks to error out for cases which are not following the schema definition.
Iommu-ranges was defined in schema with this PR https://github.com/devicetree-org/dt-schema/pull/207 The patch series is being posted as revision v6, since the patches were initially part of the media series [1]. The patches are moved out to get review comments from iommu reviewers, which was otherwise looking as a media series. Happy to move this back to media series if anyone have any concerns. [1] https://lore.kernel.org/linux-media/20260926-vpu_iommu_iova_handling-v5-0-0322ca5dc...@oss.qualcomm.com/ Signed-off-by: Vikash Garodia <[email protected]> --- Changes in v7: - Move the "iommu-addresses" behaviour change ("reg" required, non-direct mappings rejected) into its own patch before the iommu-ranges patch (Bryan) - Make OF_IOMMU depend on OF_ADDRESS and drop the #if guards (Rob) - Use resource_size_t for the size in vfio_find_dma() (Sashiko) - End the derived trailing reserved region at PHYS_ADDR_MAX - 1 to avoid overflow (Sashiko) - Add a dma-iommu fix to protect the IOVA rbtree anchor on 32-bit with 64-bit dma_addr_t (Sashiko) - Use the "iommu/of:" prefix and fix the subject case - Link to v6: https://lore.kernel.org/r/[email protected] Changes in v6: - Addressed sashiko comments. - Addressed comment from Bryan. - Link to v5: https://lore.kernel.org/all/20260926-vpu_iommu_iova_handling-v5-4-0322ca5dc...@oss.qualcomm.com/ --- Vikash Garodia (5): iommu/dma: Keep reserved regions below the IOVA rbtree anchor iommu: Use resource_size_t for reserved region length iommu/of: Make OF_IOMMU depend on OF_ADDRESS iommu/of: Require reg for iommu-addresses iommu/of: Add support for "iommu-ranges" on a device node drivers/iommu/Kconfig | 2 +- drivers/iommu/amd/iommu.c | 2 +- drivers/iommu/dma-iommu.c | 32 +++++---- drivers/iommu/intel/iommu.c | 2 +- drivers/iommu/iommu.c | 2 +- drivers/iommu/of_iommu.c | 147 ++++++++++++++++++++++++++++++++++------ drivers/iommu/virtio-iommu.c | 2 +- drivers/of/address.c | 2 +- drivers/vfio/vfio_iommu_type1.c | 2 +- include/linux/iommu.h | 4 +- include/linux/of_address.h | 2 +- 11 files changed, 155 insertions(+), 44 deletions(-) --- base-commit: 2637bdec0535a2044cd830eba9a79363651d9043 change-id: 20261103-add_iommu_ranges-549cf3fb0867 Best regards, -- Vikash Garodia <[email protected]>
