mbox series

[0/7] Introduce generic_single_device_group()

Message ID 0-v1-c869a95191f2+5e8-iommu_single_grp_jgg@nvidia.com (mailing list archive)
Headers show
Series Introduce generic_single_device_group() | expand

Message

Jason Gunthorpe Aug. 22, 2023, 4:15 p.m. UTC
This was previously part of the reverted locking rework, but it stands
alone just fine. It has already been in linux-next for a few weeks, this
folds the bug fix from:

https://lore.kernel.org/all/e5e75222-13a9-ee01-0c25-8311b622fe0d@samsung.com/

The patch "iommu: Add a lockdep assertion for remaining dev->iommu_group
reads" is pushed out of this series, even though the logic and explanation
behind that is still correct.

Jason Gunthorpe (7):
  iommu: Remove useless group refcounting
  iommu: Add generic_single_device_group()
  iommu/sun50i: Convert to generic_single_device_group()
  iommu/sprd: Convert to generic_single_device_group()
  iommu/rockchip: Convert to generic_single_device_group()
  iommu/ipmmu-vmsa: Convert to generic_single_device_group()
  iommu/omap: Convert to generic_single_device_group()

 drivers/iommu/iommu.c          | 85 +++++++++++++++++++---------------
 drivers/iommu/ipmmu-vmsa.c     | 22 ++-------
 drivers/iommu/omap-iommu.c     | 30 ++----------
 drivers/iommu/omap-iommu.h     |  2 +-
 drivers/iommu/rockchip-iommu.c | 22 +--------
 drivers/iommu/sprd-iommu.c     | 24 +---------
 drivers/iommu/sun50i-iommu.c   | 29 +++---------
 include/linux/iommu.h          |  3 ++
 8 files changed, 71 insertions(+), 146 deletions(-)


base-commit: d8fe59f11096d6470b5f53739e49cdce67f3e127

Comments

Joerg Roedel Sept. 25, 2023, 9:53 a.m. UTC | #1
On Tue, Aug 22, 2023 at 01:15:55PM -0300, Jason Gunthorpe wrote:
> Jason Gunthorpe (7):
>   iommu: Remove useless group refcounting
>   iommu: Add generic_single_device_group()
>   iommu/sun50i: Convert to generic_single_device_group()
>   iommu/sprd: Convert to generic_single_device_group()
>   iommu/rockchip: Convert to generic_single_device_group()
>   iommu/ipmmu-vmsa: Convert to generic_single_device_group()
>   iommu/omap: Convert to generic_single_device_group()

Applied on-top of the default-domain patch-set, thanks.

It caused some conflicts, but those were easy to resolve.
Jason Gunthorpe Sept. 25, 2023, 11:42 a.m. UTC | #2
On Mon, Sep 25, 2023 at 11:53:21AM +0200, Joerg Roedel wrote:
> On Tue, Aug 22, 2023 at 01:15:55PM -0300, Jason Gunthorpe wrote:
> > Jason Gunthorpe (7):
> >   iommu: Remove useless group refcounting
> >   iommu: Add generic_single_device_group()
> >   iommu/sun50i: Convert to generic_single_device_group()
> >   iommu/sprd: Convert to generic_single_device_group()
> >   iommu/rockchip: Convert to generic_single_device_group()
> >   iommu/ipmmu-vmsa: Convert to generic_single_device_group()
> >   iommu/omap: Convert to generic_single_device_group()
> 
> Applied on-top of the default-domain patch-set, thanks.
> 
> It caused some conflicts, but those were easy to resolve.

Thanks! I'll double check it

Jason