Skip to content

Remove iommu_group_remove_device() from fsl

Jason Gunthorpe linux-iommu linuxppc-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Change the approach to use driver_managed_dma
- Really simplify fsl_pamu_device_group() and just put everything in one function
- New patch to make missing OF properties a probe failure
v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iommu/fsl: Always allocate a group for non-pci devicesdrivers/iommu/fsl_pamu_domain.c+1 -10 replies
2/3iommu/fsl: Move ENODEV to fsl_pamu_probe_device()drivers/iommu/fsl_pamu_domain.c+12 -70 replies
3/3iommu/fsl: Use driver_managed_dma to allow VFIO to workarch/powerpc/sysdev/fsl_pci.c drivers/iommu/fsl_pamu_domain.c+26 -830 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchMichael Ellerman
SeriesT-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Remove iommu_group_remove_device() from fsl

With POWER SPAPR now having a real iommu driver and using the normal group lifecycle stuff fixing FSL will leave only VFIO's no-iommu support as a user for the iommu_group_add/remove_device() calls. This will help simplify the understanding of what the core code should be doing for these functions.

Fix FSL to not need to call iommu_group_remove_device() at all.

v2:
- Change the approach to use driver_managed_dma
- Really simplify fsl_pamu_device_group() and just put everything in one function
- New patch to make missing OF properties a probe failure
v1: https://lore.kernel.org/r/[email protected]

Jason Gunthorpe (3):
iommu/fsl: Always allocate a group for non-pci devices iommu/fsl: Move ENODEV to fsl_pamu_probe_device() iommu/fsl: Use driver_managed_dma to allow VFIO to work

 arch/powerpc/sysdev/fsl_pci.c   |   1 +
 drivers/iommu/fsl_pamu_domain.c | 123 +++++++++-----------------------
 2 files changed, 36 insertions(+), 88 deletions(-)

base-commit: 1421774b874bfd5fd1b2b05b59b67c0c5e0d513e

Signature · 1 line
2.40.1