From: Akinobu Mita Subject: [PATCH 0/2] extend support for CMA CMA on x86 Date: Fri, 29 Nov 2013 23:51:44 +0900 Message-ID: <1385736706-3147-1-git-send-email-akinobu.mita@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org Cc: Andi Kleen , x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Akinobu Mita , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , David Woodhouse List-Id: iommu@lists.linux-foundation.org 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 Cc: Konrad Rzeszutek Wilk Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: Andi Kleen Cc: David Woodhouse Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org -- 1.8.3.2