Skip to content

Introduce IOMMU-API TLB Flushing Interface

Joerg Roedel linux-iommu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 7 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu/amd: Rename a few flush functionsdrivers/iommu/amd_iommu.c+8 -80 replies
2/2iommu: Introduce Interface for IOMMU TLB Flushingdrivers/iommu/iommu.c include/linux/iommu.h+99 -57 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchWill Deacon
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/2 v2] Introduce IOMMU-API TLB Flushing Interface

Hi,

here is the second version of the patch-set to introduce an explicit TLB-flushing interface to the IOMMU-API. This version changed the interface quite a lot compared to the first version.

This version does not change the semantics of the iommu_map() and iommu_unmap() functions anymore. The reason is that the semantic-change doesn't make sense for iommu_map(), as this path does not require a TLB-flush in almost all cases. And only changing the semantics of the iommu_unmap() path would introduce an asymmetry to the IOMMU-API, which makes it harder to use.

This series introduces the new function iommu_unmap_fast() instead, which is allowed to return with dirty TLBs. The three functions for TLB-flushing have not changed compared to the first version of this patch-set.

Since the iommu_map()/unmap() functions don't change their semantics anymore, I've also dropped all patches which convert the existing users.

Please review.

Thanks,

Joerg

Joerg Roedel (2):
iommu/amd: Rename a few flush functions
iommu: Introduce Interface for IOMMU TLB Flushing

 drivers/iommu/amd_iommu.c | 16 +++++------
 drivers/iommu/iommu.c     | 32 ++++++++++++++++++---
 include/linux/iommu.h     | 72 ++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 107 insertions(+), 13 deletions(-)
Signature · 1 line
2.7.4