iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Optimise 64-bit IOVA allocations
@ 2017-07-21 11:41 Robin Murphy
       [not found] ` <cover.1500636791.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
  2017-07-21 11:42 ` [PATCH v2 4/4] iommu/iova: Make dma_32bit_pfn implicit Robin Murphy
  0 siblings, 2 replies; 17+ messages in thread
From: Robin Murphy @ 2017-07-21 11:41 UTC (permalink / raw)
  To: joro
  Cc: iommu, linux-arm-kernel, linux-kernel, dwmw2, thunder.leizhen,
	lorenzo.pieralisi, ard.biesheuvel, Jonathan.Cameron, nwatters,
	ray.jui

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.

Changes from v1:
 - Fix overflow with 32-bit dma_addr_t
 - Add tested-bys

[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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-09-19 10:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 11:41 [PATCH v2 0/4] Optimise 64-bit IOVA allocations Robin Murphy
     [not found] ` <cover.1500636791.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2017-07-21 11:41   ` [PATCH v2 1/4] iommu/iova: Optimise rbtree searching Robin Murphy
2017-07-21 11:41   ` [PATCH v2 2/4] iommu/iova: Optimise the padding calculation Robin Murphy
2017-07-21 11:42   ` [PATCH v2 3/4] iommu/iova: Extend rbtree node caching Robin Murphy
2017-07-29  3:57     ` Nate Watterson
     [not found]       ` <23972edc-e59e-3a43-59a9-d776e64af4d7-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-07-31 11:42         ` Robin Murphy
2017-08-03 19:41           ` Nate Watterson
     [not found]             ` <a7eb678f-ff78-5c85-6fb0-cba1f82dc502-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-08-31  9:46               ` Leizhen (ThunderTown)
     [not found]           ` <e5d4524e-bfe9-acf1-66c1-ea1d9d319855-5wv7dgnIgG8@public.gmane.org>
2017-09-19  9:42             ` Leizhen (ThunderTown)
     [not found]               ` <59C0E694.6080508-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-09-19 10:07                 ` Robin Murphy
2017-07-26 11:08   ` [PATCH v2 0/4] Optimise 64-bit IOVA allocations Joerg Roedel
     [not found]     ` <20170726110807.GN15833-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2017-07-26 11:17       ` Leizhen (ThunderTown)
2017-08-08 12:03         ` Ganapatrao Kulkarni
2017-08-09  1:42           ` Leizhen (ThunderTown)
     [not found]             ` <598A6877.4050307-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-08-09  3:24               ` Ganapatrao Kulkarni
2017-08-09  4:09                 ` Leizhen (ThunderTown)
2017-07-21 11:42 ` [PATCH v2 4/4] iommu/iova: Make dma_32bit_pfn implicit Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).