Re: Bug(?) in patch "arm64: Implement coherent DMA API based on swiotlb" (was Re: [GIT PULL] arm64 patches for 3.15)

From: Jon Medhurst (Tixy)
Date: Wed Apr 02 2014 - 06:54:39 EST


On Wed, 2014-04-02 at 10:20 +0100, Catalin Marinas wrote:
> On Wed, Apr 02, 2014 at 09:52:02AM +0100, Jon Medhurst (Tixy) wrote:
> > On Tue, 2014-04-01 at 18:29 +0100, Catalin Marinas wrote:

> > > +1: tst x0, x3 // start cache line aligned?
> > > + bic x0, x0, x3
> > > + b.eq 2f
> > > + dc civac, x0 // clean & invalidate D / U line
> > > + b 3f
> > > +2: dc ivac, x0 // invalidate D / U line
> > > +3: add x0, x0, x2
> > > cmp x0, x1
> > > b.lo 1b
> >
> > The above obviously also needs changing to branch to 3b
>
> Good point.

Actually, it should be 2b :-)

--
Tixy

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/