[PATCH RESEND v2 1/2] ARM: ixp4xx: Make dma_set_coherent_mask common, correct implementation

Simon Kågström simon.kagstrom at netinsight.net
Thu Mar 20 07:05:00 EDT 2014


On Thu, 20 Mar 2014 12:02:36 +0100
Arnd Bergmann <arnd at arndb.de> wrote:

> On Thursday 20 March 2014, Krzysztof Hałasa wrote:
> > Simon Kågström <simon.kagstrom at netinsight.net> writes:
> > 
> > > Thanks. However, Krzysztof thinks that this implementation is
> > > incorrect. It certainly fixes my ixp4xx issues, but might not be good
> > > for everyone.
> > 
> > It because you don't have PCI devices setting coherent mask to 32-bits
> > (and that's what normal PCI devices do).
> > 
> > BTW PCI (and other) devices requesting 32-bit coherent allocs don't care
> > if they're given 26-bit memory. 26 bits fit perfectly in 32 bits. It's
> > the streaming mapping which is (may be) constrained by hardware.
> 
> Should I revert the patch then until we have a better fix?

Yes, I think that would be good. Thanks to all for looking into it!

// Simon



More information about the linux-arm-kernel mailing list