- To: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
- Subject: Re: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods
- From: Sergei Shtylyov <sshtylyov@xxxxxxxxxx>
- Date: Wed, 28 Mar 2012 15:29:07 +0400
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>, microblaze-uclinux@xxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, discuss@xxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, linaro-mm-sig@xxxxxxxxxxxxxxxx, Jonathan Corbet <corbet@xxxxxxx>, Kyungmin Park <kyungmin.park@xxxxxxxxxxx>, Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx>, Kevin Cernekee <cernekee@xxxxxxxxx>, Dezhong Diao <dediao@xxxxxxxxx>, Richard Kuo <rkuo@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Michal Simek <monstr@xxxxxxxxx>, Guan Xuetao <gxt@xxxxxxxxxxxxxxx>, Paul Mundt <lethal@xxxxxxxxxxxx>, Richard Henderson <rth@xxxxxxxxxxx>, Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx>, Matt Turner <mattst88@xxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>
- In-reply-to: <1332855768-32583-2-git-send-email-m.szyprowski@samsung.com>
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0
Hello.
On 27-03-2012 17:42, Marek Szyprowski wrote:
Introduce new generic alloc and free methods with attributes argument.
The method names don't match the ones in the subject.
Existing alloc_coherent and free_coherent can be implemented on top of the
new calls with NULL attributes argument. Later also dma_alloc_non_coherent
can be implemented using DMA_ATTR_NONCOHERENT attribute as well as
dma_alloc_writecombine with separate DMA_ATTR_WRITECOMBINE attribute.
This way the drivers will get more generic, platform independent way of
allocating dma buffers with specific parameters.
Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
Reviewed-by: David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>
WBR, Sergei
[Linux MIPS Home]
[LKML Archive]
[Linux ARM]
[Linux]
[Git]
[Photo]
[Yosemite News]
[Linux SCSI]
[Linux Hams]