On Fri, Nov 29, 2013 at 11:51:44PM +0900, Akinobu Mita wrote: > 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.
I think it's generally the right direction. CMA is much better than the DMA zone (e.g. it can actually (mostly) share memory, while lower zone protection keeps the DMA zone free) Also it works for more than 16MB / 64MB. So i hope longer term we can just kill GFP_DMA and replace it with some CMA variant everywhere. There are also other potential users that could make use of it, but they need to interoperate with swiotlb, so something liike this is needed. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/