[PATCH 3/3] swiotlb: Add support for CMA allocations
Laura Abbott
lauraa at codeaurora.org
Mon Dec 9 19:36:33 EST 2013
On 12/9/2013 4:29 PM, Konrad Rzeszutek Wilk wrote:
> Laura Abbott <lauraa at codeaurora.org> 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 <will.deacon at arm.com>
>> Cc: Catalin Marinas <catalin.marinas at arm.com>
>> Cc: Konrad Rzeszutek Wilk <konrad.wilk at oracle.com>
>> Cc: Marek Szyprowski <m.szyprowski at samsung.com>
>> Signed-off-by: Laura Abbott <lauraa at codeaurora.org>
...
>>
>
> 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
More information about the linux-arm-kernel
mailing list