Skip to content

iommu/amd: Optimize iova queue flushing

Joerg Roedel linux-iommu lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iommu/amd: Rip out old queue flushing codedrivers/iommu/amd_iommu.c+6 -1370 replies
2/7iommu/amd: Add per-domain flush-queue data structuresdrivers/iommu/amd_iommu.c+69 -00 replies
3/7iommu/amd: Make use of the per-domain flush queuedrivers/iommu/amd_iommu.c+56 -40 replies
4/7iommu/amd: Add locking to per-domain flush-queuedrivers/iommu/amd_iommu.c+11 -00 replies
5/7iommu/amd: Add flush counters to struct dma_ops_domaindrivers/iommu/amd_iommu.c+52 -00 replies
6/7iommu/amd: Add per-domain timer to flush per-cpu queuesdrivers/iommu/amd_iommu.c+67 -170 replies
7/7iommu/amd: Remove queue_release() functiondrivers/iommu/amd_iommu.c+8 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] iommu/amd: Optimize iova queue flushing

Hi,

here is a patch-set to optimize the queue flushing in the AMD IOMMU driver. It removes the global per-cpu flush queues and implements queue-rings which are per-domain and per-cpu.

This allows some good optimizations to lower the flush-rate of a domain and also lowers the contention on the queue locks.

Regards,

Joerg

Joerg Roedel (7):
iommu/amd: Rip out old queue flushing code iommu/amd: Add per-domain flush-queue data structures iommu/amd: Make use of the per-domain flush queue iommu/amd: Add locking to per-domain flush-queue iommu/amd: Add flush counters to struct dma_ops_domain iommu/amd: Add per-domain timer to flush per-cpu queues iommu/amd: Remove queue_release() function

 drivers/iommu/amd_iommu.c | 363 +++++++++++++++++++++++++++++-----------------
 1 file changed, 227 insertions(+), 136 deletions(-)
Signature · 1 line
2.7.4