Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690463

[PATCH 0/4] Optimise 64-bit IOVA allocations

From Robin Murphy <robin.murphy@arm.com>
Newsgroups linux.kernel
Subject [PATCH 0/4] Optimise 64-bit IOVA allocations
Date 2017-07-18 19:10 +0200
Message-ID <u4Eau-5aT-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi all,

In the wake of the ARM SMMU optimisation efforts, it seems that certain
workloads (e.g. storage I/O with large scatterlists) probably remain quite
heavily influenced by IOVA allocation performance. Separately, Ard also
reported massive performance drops for a graphical desktop on AMD Seattle
when enabling SMMUs via IORT, which we traced to dma_32bit_pfn in the DMA
ops domain getting initialised differently for ACPI vs. DT, and exposing
the overhead of the rbtree slow path. Whilst we could go around trying to
close up all the little gaps that lead to hitting the slowest case, it
seems a much better idea to simply make said slowest case a lot less slow.

I had a go at rebasing Leizhen's last IOVA series[1], but ended up finding
the changes rather too hard to follow, so I've taken the liberty here of
picking the whole thing up and reimplementing the main part in a rather
less invasive manner.

Robin.

[1] https://www.mail-archive.com/iommu@lists.linux-foundation.org/msg17753.html

Robin Murphy (1):
  iommu/iova: Extend rbtree node caching

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             | 112 ++++++++++++++++-----------------------
 drivers/misc/mic/scif/scif_rma.c |   3 +-
 include/linux/iova.h             |   8 +--
 8 files changed, 60 insertions(+), 105 deletions(-)

-- 
2.12.2.dirty

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Optimise 64-bit IOVA allocations Robin Murphy <robin.murphy@arm.com> - 2017-07-18 19:10 +0200
  [PATCH 1/4] iommu/iova: Optimise rbtree searching Robin Murphy <robin.murphy@arm.com> - 2017-07-18 19:10 +0200
  [PATCH 3/4] iommu/iova: Extend rbtree node caching Robin Murphy <robin.murphy@arm.com> - 2017-07-18 19:10 +0200
  [PATCH 2/4] iommu/iova: Optimise the padding calculation Robin Murphy <robin.murphy@arm.com> - 2017-07-18 19:10 +0200
  [PATCH 4/4] iommu/iova: Make dma_32bit_pfn implicit Robin Murphy <robin.murphy@arm.com> - 2017-07-18 19:10 +0200
  Re: [PATCH 0/4] Optimise 64-bit IOVA allocations Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-07-19 10:40 +0200
    Re: [PATCH 0/4] Optimise 64-bit IOVA allocations Robin Murphy <robin.murphy@arm.com> - 2017-07-19 12:30 +0200
      Re: [PATCH 0/4] Optimise 64-bit IOVA allocations "Leizhen (ThunderTown)" <thunder.leizhen@huawei.com> - 2017-07-21 11:50 +0200

csiph-web