All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Misc iommu_attach_handle enhancements in iommu core
@ 2025-02-21 14:33 Yi Liu
  2025-02-21 14:33 ` [PATCH v2 1/4] iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle() Yi Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: Yi Liu @ 2025-02-21 14:33 UTC (permalink / raw)
  To: joro, jgg
  Cc: kevin.tian, baolu.lu, yi.l.liu, iommu, robin.murphy, nicolinc,
	will

This patch series aims to enhance the iommu_attach_handle-related APIs
in the IOMMU core. The changes build upon Nic's previous series[1], which
ensured that users of the attach/replace handle APIs always provide a
valid handle. With this foundation, the series refactors the IOMMU core
to share code between the normal attach/replace APIs and the
handle-supporting APIs. Additionally, it seeks to avoid processing Page
Request Interrupts (PRIs) before the attach operation succeeds.

This series also covers the prior series[2] which only takes care of the
iommu_attach_device_pasid().

[1] https://lore.kernel.org/linux-iommu/cover.1738645017.git.nicolinc@nvidia.com/
[2] https://lore.kernel.org/linux-iommu/20250120030840.4171-1-yi.l.liu@intel.com/

Change log:

v2:
 - Move handl->domain under group->mutex protect (Nic)
 - Refine the patch 04 per the model of reserve xa first and then xa_store in
   the end which does not suppose to fail (Jason)
 - Drop the patch 05 of v1 as retire group->domain requires further effort
 - Add r-b tags

v1: https://lore.kernel.org/linux-iommu/20250212060540.261436-1-yi.l.liu@intel.com/

Regards,
	Yi Liu

Yi Liu (4):
  iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle()
  iommu: Drop iommu_group_replace_domain()
  iommu: Store either domain or handle in group->pasid_array
  iommu: Swap the order of setting group->pasid_array and calling attach
    op of iommu drivers

 drivers/iommu/iommu-priv.h |   3 -
 drivers/iommu/iommu.c      | 131 +++++++++++++++++++++----------------
 2 files changed, 73 insertions(+), 61 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2025-02-28  9:23 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 14:33 [PATCH v2 0/4] Misc iommu_attach_handle enhancements in iommu core Yi Liu
2025-02-21 14:33 ` [PATCH v2 1/4] iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle() Yi Liu
2025-02-23 13:08   ` Baolu Lu
2025-02-21 14:33 ` [PATCH v2 2/4] iommu: Drop iommu_group_replace_domain() Yi Liu
2025-02-23 13:18   ` Baolu Lu
2025-02-24  4:40     ` Yi Liu
2025-02-24 14:43       ` Jason Gunthorpe
2025-02-21 14:33 ` [PATCH v2 3/4] iommu: Store either domain or handle in group->pasid_array Yi Liu
2025-02-23 13:22   ` Baolu Lu
2025-02-24  2:38     ` Tian, Kevin
2025-02-24  2:57       ` Baolu Lu
2025-02-24  3:04         ` Tian, Kevin
2025-02-24  4:22           ` Yi Liu
2025-02-21 14:33 ` [PATCH v2 4/4] iommu: Swap the order of setting group->pasid_array and calling attach op of iommu drivers Yi Liu
2025-02-21 17:27   ` Nicolin Chen
2025-02-22  1:59     ` Yi Liu
2025-02-22 15:35       ` Nicolin Chen
2025-02-23 13:32       ` Baolu Lu
2025-02-24  4:38         ` Yi Liu
2025-02-24  5:07           ` Baolu Lu
2025-02-24  5:28             ` Yi Liu
2025-02-23 13:28   ` Baolu Lu
2025-02-25  0:12   ` Jason Gunthorpe
2025-02-25  0:13 ` [PATCH v2 0/4] Misc iommu_attach_handle enhancements in iommu core Jason Gunthorpe
2025-02-25  3:35   ` Yi Liu
2025-02-28  9:23   ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.