Subject: [PATCH 3/3] swiotlb: Add support for CMA allocations

From: [email-masked] (Laura Abbott)
Date: Mon, 09 Dec 2013 16:36:33 -0800

On 12/9/2013 4:29 PM, Konrad Rzeszutek Wilk wrote:
> Laura Abbott <[email-masked]> wrote:
>> Some architectures may implement the CMA APIs to allow allocation
>> of larger contiguous blocks of memory. Add support in the swiotlb
>> alloc/free functions to allocate from the CMA APIs instead of the
>> basic page allocator.
>>
>> Cc: Will Deacon <[email-masked]>
>> Cc: Catalin Marinas <[email-masked]>
>> Cc: Konrad Rzeszutek Wilk <[email-masked]>
>> Cc: Marek Szyprowski <[email-masked]>
>> Signed-off-by: Laura Abbott <[email-masked]>
...
>>
>
> Can this be done in the platform dma_ops functions instead?
>

I suppose it could but that seems like it would result in lots of 
duplicated code if every architecture that uses swiotlb wants to use CMA.

Thanks,
Laura

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation