Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread viresh kumar
On Feb 20, 2012 4:31 PM, "Catalin Marinas" wrote: > > On 16 February 2012 18:14, viresh kumar wrote: > > On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas > > wrote: > >> The DMA API implementation on ARM takes care of the cache cleaning and > >> invalidating. > > > > I believe that this is the r

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread viresh kumar
On Feb 20, 2012 11:27 PM, "Russell King - ARM Linux" wrote: > > I hope it's now clear why we need to run over the buffer twice. Thanks Russell. Got it now. -- Viresh ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailma

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread Russell King - ARM Linux
On Mon, Feb 20, 2012 at 09:48:56AM -0800, viresh kumar wrote: > On Feb 20, 2012 4:31 PM, "Catalin Marinas" wrote: > > > > On 16 February 2012 18:14, viresh kumar wrote: > > > On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas > > > wrote: > > >> The DMA API implementation on ARM takes care of the

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-20 Thread Catalin Marinas
On 16 February 2012 18:14, viresh kumar wrote: > On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas > wrote: >> The DMA API implementation on ARM takes care of the cache cleaning and >> invalidating. > > I believe that this is the reason why we have cache re-invalidation > (we invalidated > it in d

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas wrote: > The DMA API implementation on ARM takes care of the cache cleaning and > invalidating. > I believe that this is the reason why we have cache re-invalidation (we invalidated it in dma_map_*() earlier) in dma_unmap_*() calls for ARMv6+ for D

Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
Hi Guys, Sorry for starting the long old thread again, but i have to start it as i was a bit confused. :( We know that we can't have multiple mappings with different attributes to the same physical memory on ARMv6+ machines due to speculative prefetch. So, we have following kind of mappings in k

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-17 Thread viresh kumar
On Thu, Feb 16, 2012 at 9:15 AM, Catalin Marinas wrote: > To summarise, if you mix Normal with Device or SO memory, you only get > the guarantees of the Normal memory (e.g. early write acknowledgement, > write buffer gathering, speculative accesses), so it's not recommended. > If you mix Normal Ca

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-16 Thread Catalin Marinas
On Thu, Feb 16, 2012 at 05:37:02PM +, viresh kumar wrote: > On Thu, Feb 16, 2012 at 9:15 AM, Catalin Marinas > wrote: > > To summarise, if you mix Normal with Device or SO memory, you only get > > the guarantees of the Normal memory (e.g. early write acknowledgement, > > write buffer gathering

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-16 Thread Russell King - ARM Linux
On Thu, Feb 16, 2012 at 05:29:28PM +, Catalin Marinas wrote: > On Thu, Feb 16, 2012 at 05:22:42PM +, Russell King - ARM Linux wrote: > > On Thu, Feb 16, 2012 at 05:15:20PM +, Catalin Marinas wrote: > > > On Thu, Feb 16, 2012 at 04:41:02PM +, viresh kumar wrote: > > > > Sorry for sta

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-16 Thread Catalin Marinas
On Thu, Feb 16, 2012 at 05:22:42PM +, Russell King - ARM Linux wrote: > On Thu, Feb 16, 2012 at 05:15:20PM +, Catalin Marinas wrote: > > On Thu, Feb 16, 2012 at 04:41:02PM +, viresh kumar wrote: > > > Sorry for starting the long old thread again, but i have to start it as i > > > was a

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-16 Thread Russell King - ARM Linux
On Thu, Feb 16, 2012 at 05:15:20PM +, Catalin Marinas wrote: > On Thu, Feb 16, 2012 at 04:41:02PM +, viresh kumar wrote: > > Sorry for starting the long old thread again, but i have to start it as i > > was a bit confused. :( > > > > We know that we can't have multiple mappings with differ

Re: Query: Multiple Mappings to Mem and ARMV6+

2012-02-16 Thread Catalin Marinas
On Thu, Feb 16, 2012 at 04:41:02PM +, viresh kumar wrote: > Sorry for starting the long old thread again, but i have to start it as i > was a bit confused. :( > > We know that we can't have multiple mappings with different attributes > to the same physical memory on ARMv6+ machines due to spec