RE: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-18 Thread Tixy
On Wed, 2011-08-17 at 15:06 +0200, Marek Szyprowski wrote: [...] Maybe for the first version a static pool with reasonably small size (like 128KiB) will be more than enough? This size can be even board depended or changed with kernel command line for systems that really needs more

RE: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-17 Thread Marek Szyprowski
Hello, On Tuesday, August 16, 2011 4:26 PM Arnd Bergmann wrote: On Tuesday 16 August 2011, Russell King - ARM Linux wrote: On Tue, Aug 16, 2011 at 03:28:48PM +0200, Arnd Bergmann wrote: Hmm, I don't remember the point about dynamically sizing the pool for ARMv6K, but that can well be an

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-17 Thread Arnd Bergmann
On Wednesday 17 August 2011, Marek Szyprowski wrote: Do we really need the dynamic pool for the first version? I would like to know how much memory can be allocated in GFP_ATOMIC context. What are the typical sizes of such allocations? I think this highly depends on the board and on the use

RE: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-17 Thread Marek Szyprowski
Hello, On Wednesday, August 17, 2011 10:01 AM Marek Szyprowski wrote: On Tuesday, August 16, 2011 4:26 PM Arnd Bergmann wrote: On Tuesday 16 August 2011, Russell King - ARM Linux wrote: On Tue, Aug 16, 2011 at 03:28:48PM +0200, Arnd Bergmann wrote: Hmm, I don't remember the point about

RE: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-17 Thread Marek Szyprowski
Hello, On Wednesday, August 17, 2011 2:29 PM Arnd Bergmann wrote: On Wednesday 17 August 2011, Marek Szyprowski wrote: Do we really need the dynamic pool for the first version? I would like to know how much memory can be allocated in GFP_ATOMIC context. What are the typical sizes of such

RE: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-16 Thread Marek Szyprowski
Hello, On Friday, August 12, 2011 2:53 PM Arnd Bergmann wrote: On Friday 12 August 2011, Marek Szyprowski wrote: From: Russell King rmk+ker...@arm.linux.org.uk Steal memory from the kernel to provide coherent DMA memory to drivers. This avoids the problem with multiple mappings with

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-16 Thread Arnd Bergmann
On Sunday 14 August 2011, Russell King - ARM Linux wrote: On Fri, Aug 12, 2011 at 02:53:05PM +0200, Arnd Bergmann wrote: I thought that our discussion ended with the plan to use this only for ARMv6+ (which has a problem with double mapping) but not on ARMv5 and below (which don't have

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-16 Thread Russell King - ARM Linux
On Tue, Aug 16, 2011 at 03:28:48PM +0200, Arnd Bergmann wrote: On Sunday 14 August 2011, Russell King - ARM Linux wrote: On Fri, Aug 12, 2011 at 02:53:05PM +0200, Arnd Bergmann wrote: I thought that our discussion ended with the plan to use this only for ARMv6+ (which has a problem

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-16 Thread Arnd Bergmann
On Tuesday 16 August 2011, Russell King - ARM Linux wrote: On Tue, Aug 16, 2011 at 03:28:48PM +0200, Arnd Bergmann wrote: Hmm, I don't remember the point about dynamically sizing the pool for ARMv6K, but that can well be an oversight on my part. I do remember the part about taking that

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-14 Thread Russell King - ARM Linux
On Fri, Aug 12, 2011 at 02:53:05PM +0200, Arnd Bergmann wrote: On Friday 12 August 2011, Marek Szyprowski wrote: From: Russell King rmk+ker...@arm.linux.org.uk Steal memory from the kernel to provide coherent DMA memory to drivers. This avoids the problem with multiple mappings with

Re: [PATCH 7/9] ARM: DMA: steal memory for DMA coherent mappings

2011-08-12 Thread Arnd Bergmann
On Friday 12 August 2011, Marek Szyprowski wrote: From: Russell King rmk+ker...@arm.linux.org.uk Steal memory from the kernel to provide coherent DMA memory to drivers. This avoids the problem with multiple mappings with differing attributes on later CPUs. Signed-off-by: Russell King