Re: [PATCH] Fix IXP4xx coherent allocations

From: Ben Hutchings
Date: Sun Mar 24 2013 - 15:11:18 EST


On Sat, 2013-03-23 at 19:57 -0400, David Miller wrote:
> From: Krzysztof Halasa <khc@xxxxxxxxx>
> Date: Sat, 23 Mar 2013 20:35:46 +0100
>
> > ARM core code currently requires coherent DMA mask to be set. Make sure
> > we limit PCI devices to 64 MiB while allowing on-chip devices to access
> > the whole 4 GiB address space.
> >
> > This fixes a v3.7+ regression which broke IXP4xx built-in network devices.
> >
> > Signed-off-by: Krzysztof HaÅasa <khc@xxxxxxxxx>
>
> This requirement is not reasonable.
>
> The DMA API documentation clearly states what the default must be,
> and what drivers are guarenteed will be the default.

I'm failing to see where it says the default can't be narrower than 32
bits due to platform limits. And how do you think DMA mapping is
supposed to work for PCI devices on these platforms, anyway?

Ben.

--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
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/