Skip to content

Optimise 64-bit IOVA allocations

Robin Murphy linux-iommu lkml 5 versions – Applied

Status from this message: Applied, thanks Robin.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 5 repliesApplied
  2. v46 patches 3 repliesSuperseded
  3. v34 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches12 repliesSuperseded
v14 patches4 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/6iommu/iova: Optimise rbtree searchingdrivers/iommu/iova.c+3 -60 replies
2/6iommu/iova: Optimise the padding calculationdrivers/iommu/iova.c+15 -270 replies
3/6iommu/iova: Extend rbtree node cachingdrivers/iommu/iova.c include/linux/iova.h+30 -334 replies
4/6iommu/iova: Make dma_32bit_pfn implicitdrivers/gpu/drm/tegra/drm.c drivers/gpu/host1x/dev.c drivers/iommu/amd_iommu.c +5 more+13 -410 replies
5/6iommu/iova: Add rbtree anchor nodedrivers/iommu/iova.c include/linux/iova.h+14 -20 replies
6/6iommu/iova: Simplify cached node logicdrivers/iommu/iova.c+17 -340 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchArd BiesheuvelZhen LeiNate Watterson
1/6T-b T-b T-b
2/6T-b T-b T-b
3/6T-b T-b T-b
4/6T-b T-b T-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/6] Optimise 64-bit IOVA allocations

v4: https://www.mail-archive.com/[email protected]/msg1493704.html

Right, this is hopefully the last version - I've put things back in a sensible order with the new additions at the end, so if they prove contentious the first 4 previously-tested patches can still get their time in -next. Patch #3 is updated to fix the bug brought to light by Tomasz, patch #6 includes the cleanup afterthought from v4, and I've nobbled one or two rogue whitespace changes I'd missed before.

And the diffstat is still even more negative than before, hooray! For the whole series, the total code size reduction of alloc_iova() comes to just over 26% (AArch64 GCC 6.3.1).

Robin.

Robin Murphy (3):
iommu/iova: Extend rbtree node caching
iommu/iova: Add rbtree anchor node
iommu/iova: Simplify cached node logic

Zhen Lei (3):
iommu/iova: Optimise rbtree searching
iommu/iova: Optimise the padding calculation
iommu/iova: Make dma_32bit_pfn implicit

 drivers/gpu/drm/tegra/drm.c      |   3 +-
 drivers/gpu/host1x/dev.c         |   3 +-
 drivers/iommu/amd_iommu.c        |   7 +-
 drivers/iommu/dma-iommu.c        |  18 +-----
 drivers/iommu/intel-iommu.c      |  11 +---
 drivers/iommu/iova.c             | 135 ++++++++++++++++-----------------------
 drivers/misc/mic/scif/scif_rma.c |   3 +-
 include/linux/iova.h             |   9 +--
 8 files changed, 69 insertions(+), 120 deletions(-)
Signature · 1 line
2.13.4.dirty