From mboxrd@z Thu Jan 1 00:00:00 1970 From: magnus.damm@gmail.com (Magnus Damm) Date: Wed, 28 Apr 2010 16:53:40 +0900 Subject: CONSISTENT_DMA_SIZE limitations In-Reply-To: References: Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Santosh, On Wed, Apr 28, 2010 at 4:07 PM, Shilimkar, Santosh wrote: >> On Wed, Apr 28, 2010 at 2:25 PM, Magnus Damm wrote: >> > Extending CONSISTENT_DMA_SIZE seems like a good idea to me, but I'm >> > not sure if doing so will break something else. Perhaps I need to >> > rework some code in arch/arm/mm/dma-mapping.c? > Not the best way but works is : > You can override the default setting of 2MB to whatever memory you need and > then use the dma_alloc_coherent(), to allocate from this space. > > Just ensure that you don't ioremap this memory with different cache-attribute > otherwise you will end up in the alias mapping of same memory which is not > allowed on newer ARMv7. Good idea. =) Thanks for your suggestions. / magnus