[PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for Linux v6.6

Lu Baolu posted 13 patches 2 years, 1 month ago
include/linux/dmar.h                          |   2 -
include/linux/iommu.h                         |  13 +
drivers/dma/idxd/idxd.h                       |   9 +
drivers/iommu/intel/iommu.h                   |   9 +
drivers/iommu/intel/pasid.h                   |   2 -
drivers/dma/idxd/device.c                     |  39 ++-
drivers/dma/idxd/dma.c                        |   5 +-
drivers/dma/idxd/init.c                       |  54 +++-
drivers/dma/idxd/sysfs.c                      |   7 -
.../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c   |   2 +-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  16 +-
drivers/iommu/intel/iommu.c                   | 237 +++++++++++-------
drivers/iommu/intel/pasid.c                   |   4 +-
drivers/iommu/intel/svm.c                     |  62 +----
drivers/iommu/iommu-sva.c                     |  29 +--
drivers/iommu/iommu.c                         |  65 ++++-
16 files changed, 330 insertions(+), 225 deletions(-)
[PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for Linux v6.6
Posted by Lu Baolu 2 years, 1 month ago
Hi Joerg,

This includes patches queued for v6.6. They aim to:

 - Enable idxd device DMA with pasid through iommu dma ops.
 - Lift RESV_DIRECT check from VT-d driver to core.
 - Miscellaneous cleanups and fixes.

All patches are based on top of the next branch and vt-d patches can
apply to v6.5-rc5 as well.

The series is also available at:
https://github.com/LuBaolu/intel-iommu/commits/vtd-update-for-v6.6

Please consider them for v6.6-rc1.

Best regards,
Baolu

Jacob Pan (3):
  iommu: Generalize PASID 0 for normal DMA w/o PASID
  iommu: Move global PASID allocation from SVA to core
  dmaengine/idxd: Re-enable kernel workqueue under DMA API

Lu Baolu (7):
  iommu/vt-d: Add domain_flush_pasid_iotlb()
  iommu/vt-d: Remove pasid_mutex
  iommu/vt-d: Make prq draining code generic
  iommu/vt-d: Prepare for set_dev_pasid callback
  iommu/vt-d: Add set_dev_pasid callback for dma domain
  iommu: Prevent RESV_DIRECT devices from blocking domains
  iommu/vt-d: Remove rmrr check in domain attaching device path

Yanfei Xu (2):
  iommu/vt-d: Fix to flush cache of PASID directory table
  iommu/vt-d: Fix to convert mm pfn to dma pfn

YueHaibing (1):
  iommu/vt-d: Remove unused extern declaration dmar_parse_dev_scope()

 include/linux/dmar.h                          |   2 -
 include/linux/iommu.h                         |  13 +
 drivers/dma/idxd/idxd.h                       |   9 +
 drivers/iommu/intel/iommu.h                   |   9 +
 drivers/iommu/intel/pasid.h                   |   2 -
 drivers/dma/idxd/device.c                     |  39 ++-
 drivers/dma/idxd/dma.c                        |   5 +-
 drivers/dma/idxd/init.c                       |  54 +++-
 drivers/dma/idxd/sysfs.c                      |   7 -
 .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c   |   2 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  16 +-
 drivers/iommu/intel/iommu.c                   | 237 +++++++++++-------
 drivers/iommu/intel/pasid.c                   |   4 +-
 drivers/iommu/intel/svm.c                     |  62 +----
 drivers/iommu/iommu-sva.c                     |  29 +--
 drivers/iommu/iommu.c                         |  65 ++++-
 16 files changed, 330 insertions(+), 225 deletions(-)

-- 
2.34.1
Re: [PATCH 00/13] [PULL REQUEST] Intel IOMMU updates for Linux v6.6
Posted by Joerg Roedel 2 years, 1 month ago
On Wed, Aug 09, 2023 at 08:47:53PM +0800, Lu Baolu wrote:
> This includes patches queued for v6.6. They aim to:
> 
>  - Enable idxd device DMA with pasid through iommu dma ops.
>  - Lift RESV_DIRECT check from VT-d driver to core.
>  - Miscellaneous cleanups and fixes.
> 
> All patches are based on top of the next branch and vt-d patches can
> apply to v6.5-rc5 as well.

Pulled, thanks Baolu. There was a minor conflict with the differences
between next and v6.5-rc5, but I resolved that.


Joerg