Skip to content

extend support for CMA CMA on x86

Akinobu Mita linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: enable DMA CMA with swiotlbarch/x86/Kconfig arch/x86/include/asm/swiotlb.h arch/x86/kernel/amd_gart_64.c +4 more+20 -102 replies
2/2intel-iommu: integrate DMA CMAdrivers/iommu/intel-iommu.c+24 -80 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarek Szyprowski
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] extend support for CMA CMA on x86

This patch set extends support for the DMA Contiguous Memory Allocator on x86. Currently it is only supported on pci-nommu. So this aims at enabling it on swiotlb and intel-iommu, too.

Regardless of which dma mapping implementation is actually used in the system, I would like to allocate big contiguous memory with dma_alloc_coherent() and tell the base address to the device that requires it. This is why I need this change.

Akinobu Mita (2):
x86: enable DMA CMA with swiotlb
intel-iommu: integrate DMA CMA

 arch/x86/Kconfig               |  2 +-
 arch/x86/include/asm/swiotlb.h |  7 +++++++
 arch/x86/kernel/amd_gart_64.c  |  2 +-
 arch/x86/kernel/pci-swiotlb.c  |  9 ++++++---
 arch/x86/pci/sta2x11-fixup.c   |  6 ++----
 drivers/iommu/intel-iommu.c    | 32 ++++++++++++++++++++++++--------
 include/linux/swiotlb.h        |  2 ++
 lib/swiotlb.c                  |  2 +-
 8 files changed, 44 insertions(+), 18 deletions(-)
Cc Marek Szyprowski <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Andi Kleen <andi-Vw/[email protected]>
Cc David Woodhouse <[email protected]>
Cc iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Signature · 1 line
1.8.3.2