Skip to content

Save single pages from CMA area

Nicolin Chen linux-arm-kernel linux-iommu lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 11 repliesIn review
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

* PATCH-2: Initialized page pointer to NULL

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: dma-mapping: Add fallback normal page allocationsarch/arm/mm/dma-mapping.c+10 -39 replies
2/5dma-remap: Run alloc_pages() on failurekernel/dma/remap.c+2 -20 replies
3/5iommu: amd_iommu: Add fallback normal page allocationsdrivers/iommu/amd_iommu.c+3 -00 replies
4/5arm64: dma-mapping: Add fallback normal page allocationsarch/arm64/mm/dma-mapping.c+12 -70 replies
5/5dma-contiguous: Do not allocate a single page from CMA areakernel/dma/contiguous.c+19 -30 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 RFC/RFT 0/5] Save single pages from CMA area

This series of patches try to save single pages from CMA area bypassing all CMA single page alloctions and allocating normal pages instead, as all addresses within one single page are contiguous.

We had once applied the PATCH-5 but reverted it as actually not all the callers handled the fallback allocations. Per Robin's suggestion, let's stuff alloc_pages()/free_page() fallbacks to those callers before having PATCH-5.

Changlog
v1->v2:
* PATCH-2: Initialized page pointer to NULL

Nicolin Chen (5):
ARM: dma-mapping: Add fallback normal page allocations
dma-remap: Run alloc_pages() on failure
iommu: amd_iommu: Add fallback normal page allocations
arm64: dma-mapping: Add fallback normal page allocations
dma-contiguous: Do not allocate a single page from CMA area

 arch/arm/mm/dma-mapping.c   | 13 ++++++++++---
 arch/arm64/mm/dma-mapping.c | 19 ++++++++++++-------
 drivers/iommu/amd_iommu.c   |  3 +++
 kernel/dma/contiguous.c     | 22 +++++++++++++++++++---
 kernel/dma/remap.c          |  4 ++--
 5 files changed, 46 insertions(+), 15 deletions(-)
Signature · 1 line
2.17.1