From mboxrd@z Thu Jan 1 00:00:00 1970 From: lauraa@codeaurora.org (Laura Abbott) Date: Mon, 09 Dec 2013 16:36:33 -0800 Subject: [PATCH 3/3] swiotlb: Add support for CMA allocations In-Reply-To: <1da8f502-0e34-4b54-929e-bcbe40b20b7f@email.android.com> References: <1386634334-31139-1-git-send-email-lauraa@codeaurora.org> <1386634334-31139-4-git-send-email-lauraa@codeaurora.org> <1da8f502-0e34-4b54-929e-bcbe40b20b7f@email.android.com> Message-ID: <52A66211.6010707@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 12/9/2013 4:29 PM, Konrad Rzeszutek Wilk wrote: > Laura Abbott 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 >> Cc: Catalin Marinas >> Cc: Konrad Rzeszutek Wilk >> Cc: Marek Szyprowski >> Signed-off-by: Laura Abbott ... >> > > 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