[PATCH 0/7] Introduce generic_single_device_group()

Jason Gunthorpe jgg at nvidia.com
Tue Aug 22 09:15:55 PDT 2023


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
-- 
2.41.0




More information about the Linux-rockchip mailing list