Skip to content

Optimize dma_*_from_contiguous calls

Nicolin Chen linux-arm-kernel linux-iommu linux-media lkml 3 versions – Applied

Status from this message: applied to dma-mapping for-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 11 repliesApplied
  2. v22 patches 19 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2dma-contiguous: Abstract dma_{alloc,free}_contiguous()include/linux/dma-contiguous.h kernel/dma/contiguous.c kernel/dma/direct.c+63 -206 replies
2/2dma-contiguous: Use fallback alloc_pages for single pageskernel/dma/contiguous.c+10 -12 replies

Reviews trailers per patch

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

Patchdann frazier
SeriesT-b
1/2
2/2

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/2] Optimize dma_*_from_contiguous calls

[ Per discussion at v1, we decide to add two new functions and start
replacing callers one by one. For this series, it only touches the dma-direct part. And instead of merging two PATCHes, I still keep them separate so that we may easily revert PATCH-2 if anything bad happens as last time -- PATCH-1 is supposed to be a safe cleanup. ]

This series of patches try to optimize dma_*_from_contiguous calls:
PATCH-1 abstracts two new functions and applies to dma-direct.c file. PATCH-2 saves single pages and reduce fragmentations from CMA area.

Please check their commit messages for detail changelog.

Nicolin Chen (2):
dma-contiguous: Abstract dma_{alloc,free}_contiguous()
dma-contiguous: Use fallback alloc_pages for single pages

 include/linux/dma-contiguous.h | 11 +++++++
 kernel/dma/contiguous.c        | 57 ++++++++++++++++++++++++++++++++++
 kernel/dma/direct.c            | 24 +++-----------
 3 files changed, 72 insertions(+), 20 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu