• Akinobu Mita's avatar
    intel-iommu: integrate DMA CMA · 36746436
    Akinobu Mita authored
    This adds support for the DMA Contiguous Memory Allocator for
    intel-iommu.  This change enables dma_alloc_coherent() to allocate big
    contiguous memory.
    
    It is achieved in the same way as nommu_dma_ops currently does, i.e.
    trying to allocate memory by dma_alloc_from_contiguous() and
    alloc_pages() is used as a fallback.
    Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
    Cc: Marek Szyprowski <m.szyprowski@samsung.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: Don Dutile <ddutile@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    36746436
intel-iommu.c 116 KB