[PATCH 01/10] ARM: change ARM_DMA_ZONE_SIZE into a variable
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Jul 8 04:59:54 EDT 2011
On Thu, Jul 07, 2011 at 11:08:38AM -0600, John Linn wrote:
> If I'm following this right....
>
> We have a hole at the start of physical memory (when it's at 0) so that
> DMA can't DMA into it. Sounds like that won't work for us?
That depends what you mean by that.
If you're saying that your physical RAM starts at some non-zero address,
then that isn't a problem. We have lots of ARM platforms where that is
true.
If you're saying that the first N MB of RAM can't be DMA'd to, then that
is a problem as the kernel has no way to be told about that restriction.
The best we can manage is to avoid freeing that memory into the normal
allocation pools.
We do have a very small number of platforms where that's true, but we
'work around' that by having the kernel occupy that space. If N MB is
less than sizeof(kernel) + 32K then you haven't lost much.
More information about the linux-arm-kernel
mailing list