Skip to content

Reuse generic PCI DMA alias parsing code for the ARM SMMU

Will Deacon linux-iommu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu: return dma alias from iommu_group_get_for_pci_dev()drivers/iommu/iommu.c include/linux/iommu.h+14 -24 replies
2/2iommu/arm-smmu: remove homebrew PCI dma alias parsingdrivers/iommu/arm-smmu.c+31 -272 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Reuse generic PCI DMA alias parsing code for the ARM SMMU

Hi all,

This series of two patches removes the (incomplete) PCI DMA alias parsing code from the ARM SMMU driver and instead modifies the generic iommu_group_get_for_pci_dev implementation to return the alias as well as the group.

One snag is that iommu_group_get_for_pci_dev is no longer static after the change, but returning the alias from iommu_group_get_for_dev doesn't feel right either, as we don't currently have any generic IOMMU grouping for the platform bus.

Feedback welcome,

Will

--->8

Will Deacon (2):
iommu: return dma alias from iommu_group_get_for_pci_dev() iommu/arm-smmu: remove homebrew PCI dma alias parsing

 drivers/iommu/arm-smmu.c | 58 ++++++++++++++++++++++++++----------------------
 drivers/iommu/iommu.c    | 14 ++++++++++--
 include/linux/iommu.h    |  2 ++
 3 files changed, 45 insertions(+), 29 deletions(-)
Signature · 1 line
2.1.4