Problem with dma_alloc_coherent at linux-2.6.33-arm1 , withRealView platform,board PBX-A9 and armv7 instructions.

Catalin Marinas catalin.marinas at arm.com
Thu Jul 15 08:15:18 EDT 2010


On Thu, 2010-07-15 at 11:09 +0100, Russell King - ARM Linux wrote:
> On Thu, Jul 15, 2010 at 03:34:58PM +0530, Shilimkar, Santosh wrote:
> > > -----Original Message-----
> > > From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-
> > > kernel-bounces at lists.infradead.org] On Behalf Of David Yang
> > > Sent: Thursday, July 15, 2010 3:27 PM
> > > To: Russell King - ARM Linux
> > > Cc: linux-arm-kernel at lists.infradead.org; Ben Dooks
> > > Subject: Re: Problem with dma_alloc_coherent at linux-2.6.33-arm1 , with
> > > RealView platform,board PBX-A9 and armv7 instructions.
> > >
> > > I have explicitly added the barrier() in my driver, but it did't work.
> > >
> > > I will go on testing until solve the problem. I need more advice.
> > >
> > The 'barrier()' is just a compiler barrier. You should be using "mb" "rmb"
> > or "wmb"  depending on the usage.
> 
> It'd be useful if the patches which are destined for mainline get some
> independent testing by people who have experienced the problem, rather
> than creating their own solutions.

In case I forgot to mention, the people from Trident Micro tested my
three "ordered" accessors patches and it solved the problem for them
(unfortunately the discussion was in private e-mails).

-- 
Catalin




More information about the linux-arm-kernel mailing list