[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201108161514.52953.arnd@arndb.de>
Date: Tue, 16 Aug 2011 15:14:52 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Marek Szyprowski <m.szyprowski@...sung.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linux-mm@...ck.org,
linaro-mm-sig@...ts.linaro.org,
"'Daniel Walker'" <dwalker@...eaurora.org>,
"'Russell King'" <linux@....linux.org.uk>,
"'Jonathan Corbet'" <corbet@....net>,
"'Mel Gorman'" <mel@....ul.ie>,
"'Chunsang Jeong'" <chunsang.jeong@...aro.org>,
"'Michal Nazarewicz'" <mina86@...a86.com>,
"'Jesse Barker'" <jesse.barker@...aro.org>,
"'Kyungmin Park'" <kyungmin.park@...sung.com>,
"'Ankita Garg'" <ankita@...ibm.com>,
"'Shariq Hasnain'" <shariq.hasnain@...aro.org>,
"'Andrew Morton'" <akpm@...ux-foundation.org>,
"'KAMEZAWA Hiroyuki'" <kamezawa.hiroyu@...fujitsu.com>
Subject: Re: [PATCH 8/9] ARM: integrate CMA with DMA-mapping subsystem
On Tuesday 16 August 2011, Marek Szyprowski wrote:
> On Friday, August 12, 2011 5:01 PM Arnd Bergmann wrote:
> > How about something like
> >
> > if (arch_is_coherent() || nommu())
> > ret = alloc_simple_buffer();
> > else if (arch_is_v4_v5())
> > ret = alloc_remap();
> > else if (gfp & GFP_ATOMIC)
> > ret = alloc_from_pool();
> > else
> > ret = alloc_from_contiguous();
> >
> > This also allows a natural conversion to dma_map_ops when we get there.
>
> Ok. Is it ok to enable CMA permanently for ARMv6+? If CMA is left conditional
> the dma pool code will be much more complicated, because it will need to support
> both CMA and non-CMA cases.
I think that is ok, yes.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists