Skip to content

Remove split on unmap behavior

Jason Gunthorpe dri-devel linux-arm-kernel linux-iommu linux-patches llvm oe-kbuild-all 3 versions – Applied

Status from this message: Applied to iommu (arm/smmu), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesApplied
  2. v23 patches 7 repliesSuperseded
  3. v11 patch 14 repliesSuperseded

Changes in v3 from the cover letter

- Remove selftest code too
- Fix copy/paste error in iommu_unmap kdoc
v2: https://patch.msgid.link/r/[email protected]
- Use WARN_ON instead of duplicating AMD behavior
- Add arm-v7s patch
- Write a kdoc for iommu_unmap()
v1: https://patch.msgid.link/r/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3iommu/io-pgtable-arm: Remove split on unmap behaviordrivers/iommu/io-pgtable-arm.c+2 -790 replies
2/3iommu/io-pgtable-arm-v7s: Remove split on unmap behaviordrivers/iommu/io-pgtable-arm-v7s.c+5 -1410 replies
3/3iommu: Add a kdoc to iommu_unmap()drivers/iommu/iommu.c+14 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchLiviu Dudau
1/3R-b
2/3
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Remove split on unmap behavior

This is the result of the discussion on removing split. We agreed that split is not required, and no application should ask for anything that would not unmap a full large IOPTE.

Instead of split the two ARM drivers will now WARN_ON and return 0. This is in contrast to what several other drivers do of removing the whole IOPTE and returning 0.

The kdoc is updated to describe this.

v3:
- Remove selftest code too
- Fix copy/paste error in iommu_unmap kdoc
v2: https://patch.msgid.link/r/[email protected]
- Use WARN_ON instead of duplicating AMD behavior
- Add arm-v7s patch
- Write a kdoc for iommu_unmap()
v1: https://patch.msgid.link/r/[email protected]

Jason Gunthorpe (3):
iommu/io-pgtable-arm: Remove split on unmap behavior iommu/io-pgtable-arm-v7s: Remove split on unmap behavior
iommu: Add a kdoc to iommu_unmap()

 drivers/iommu/io-pgtable-arm-v7s.c | 146 +----------------------------
 drivers/iommu/io-pgtable-arm.c     |  81 +---------------
 drivers/iommu/iommu.c              |  14 +++
 3 files changed, 21 insertions(+), 220 deletions(-)

base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354

Signature · 1 line
2.43.0