- To: "'Sergei Shtylyov'" <sshtylyov@xxxxxxxxxx>
- Subject: RE: [PATCHv2 01/14] common: dma-mapping: introduce alloc_attrs and free_attrs methods
- From: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
- Date: Wed, 28 Mar 2012 16:38:40 +0200
- 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: <4F72F603.2000803@mvista.com>
- Organization: SPRC
- Thread-index: Ac0M1jxuL84DT55ATKqocDxJPtn0VQAGgTfQ
Hi Sergei,
On Wednesday, March 28, 2012 1:29 PM Sergei Shtylyov wrote:
> 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.
Right, I will reword the subject to "common: dma-mapping: introduce generic alloc()
and free() methods".
> > 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>
>
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
[Linux MIPS Home]
[LKML Archive]
[Linux ARM]
[Linux]
[Git]
[Photo]
[Yosemite News]
[Linux SCSI]
[Linux Hams]