[PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for v6.13 (2nd

Lu Baolu posted 13 patches 2 weeks, 1 day ago
drivers/iommu/amd/amd_iommu.h                 |   3 +-
drivers/iommu/amd/pasid.c                     |   6 +-
.../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c   |   5 +-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  12 +-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |   2 +-
drivers/iommu/intel/iommu.c                   | 176 ++++--
drivers/iommu/intel/iommu.h                   |  34 ++
drivers/iommu/intel/nested.c                  |  50 ++
drivers/iommu/intel/pasid.c                   | 553 +++++++++++++-----
drivers/iommu/intel/pasid.h                   |  22 +-
drivers/iommu/intel/svm.c                     |  36 +-
drivers/iommu/iommu.c                         |   3 +-
include/linux/iommu.h                         |   5 +-
13 files changed, 657 insertions(+), 250 deletions(-)
[PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for v6.13 (2nd
Posted by Lu Baolu 2 weeks, 1 day ago
Hi Joerg,

I apologize, I should have put all patches in a single pull request.
However, the feature introduced in this pull request needed extra rounds
of review and is now ready for merge.  I'm trying to merge this series
in this merge window because it's self-contained and other series, for
vfio and iommufd, depend on it. Merging this series in time will
simplify the upstream process for those series.

With above explained, the following changes have been queued for
v6.13-rc1, including:

 - Add domain replacement support for pasid

These patches are based on the vtd branch of the iommu tree. The complete
patches are also available at:

https://github.com/LuBaolu/intel-iommu/commits/vtd-update-for-v6.13

Please consider them for iommu next.

Best regards,
baolu

Jason Gunthorpe (1):
  iommu/arm-smmu-v3: Make set_dev_pasid() op support replace

Yi Liu (12):
  iommu: Pass old domain to set_dev_pasid op
  iommu/vt-d: Add a helper to flush cache for updating present pasid
    entry
  iommu/vt-d: Refactor the pasid setup helpers
  iommu/vt-d: Add pasid replace helpers
  iommu/vt-d: Consolidate the struct dev_pasid_info add/remove
  iommu/vt-d: Add iommu_domain_did() to get did
  iommu/vt-d: Make intel_iommu_set_dev_pasid() to handle domain
    replacement
  iommu/vt-d: Limit intel_iommu_set_dev_pasid() for paging domain
  iommu/vt-d: Make intel_svm_set_dev_pasid() support domain replacement
  iommu/vt-d: Make identity_domain_set_dev_pasid() to handle domain
    replacement
  iommu/vt-d: Add set_dev_pasid callback for nested domain
  iommu: Make set_dev_pasid op support domain replacement

 drivers/iommu/amd/amd_iommu.h                 |   3 +-
 drivers/iommu/amd/pasid.c                     |   6 +-
 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c   |   5 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  12 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |   2 +-
 drivers/iommu/intel/iommu.c                   | 176 ++++--
 drivers/iommu/intel/iommu.h                   |  34 ++
 drivers/iommu/intel/nested.c                  |  50 ++
 drivers/iommu/intel/pasid.c                   | 553 +++++++++++++-----
 drivers/iommu/intel/pasid.h                   |  22 +-
 drivers/iommu/intel/svm.c                     |  36 +-
 drivers/iommu/iommu.c                         |   3 +-
 include/linux/iommu.h                         |   5 +-
 13 files changed, 657 insertions(+), 250 deletions(-)

-- 
2.43.0
Re: [PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for v6.13 (2nd
Posted by Joerg Roedel 2 weeks, 1 day ago
On Fri, Nov 08, 2024 at 10:13:51AM +0800, Lu Baolu wrote:
> Jason Gunthorpe (1):
>   iommu/arm-smmu-v3: Make set_dev_pasid() op support replace
> 
> Yi Liu (12):
>   iommu: Pass old domain to set_dev_pasid op
>   iommu/vt-d: Add a helper to flush cache for updating present pasid
>     entry
>   iommu/vt-d: Refactor the pasid setup helpers
>   iommu/vt-d: Add pasid replace helpers
>   iommu/vt-d: Consolidate the struct dev_pasid_info add/remove
>   iommu/vt-d: Add iommu_domain_did() to get did
>   iommu/vt-d: Make intel_iommu_set_dev_pasid() to handle domain
>     replacement
>   iommu/vt-d: Limit intel_iommu_set_dev_pasid() for paging domain
>   iommu/vt-d: Make intel_svm_set_dev_pasid() support domain replacement
>   iommu/vt-d: Make identity_domain_set_dev_pasid() to handle domain
>     replacement
>   iommu/vt-d: Add set_dev_pasid callback for nested domain
>   iommu: Make set_dev_pasid op support domain replacement

Applied, thanks.