[RFC/RFT PATCH 0/2] Optimize dma_*_from_contiguous calls

From: Nicolin Chen
Date: Mon Apr 29 2019 - 22:03:57 EST


This series of patches try to optimize dma_*_from_contiguous calls:
PATCH-1 does some abstraction and cleanup.
PATCH-2 saves single pages and reduce fragmentations from CMA area.

Both two patches may impact the source of pages (CMA or normal)
depending on the use cases, so are being tagged with "RFC/RFT".

Please check their commit messages for detail.

Nicolin Chen (2):
dma-contiguous: Simplify dma_*_from_contiguous() function calls
dma-contiguous: Use fallback alloc_pages for single pages

arch/arm/mm/dma-mapping.c | 14 +++-----
arch/arm64/mm/dma-mapping.c | 11 +++---
arch/xtensa/kernel/pci-dma.c | 19 +++-------
drivers/iommu/amd_iommu.c | 20 +++--------
drivers/iommu/intel-iommu.c | 20 ++---------
include/linux/dma-contiguous.h | 15 +++-----
kernel/dma/contiguous.c | 64 ++++++++++++++++++++++------------
kernel/dma/direct.c | 24 +++----------
kernel/dma/remap.c | 11 ++----
9 files changed, 73 insertions(+), 125 deletions(-)

--
2.17.1