Re: DMA setup for ARM platform with hole low in memory

From: Catalin Marinas
Date: Tue Jun 14 2011 - 06:15:54 EST


On Mon, Jun 13, 2011 at 09:31:59PM +0000, johnlinn@xxxxxxxxxxx wrote:
> I'm trying to decide the best way to setup this ARM platform DMA to
> deal with the fact that the lowest 512K of memory can not be DMAed
> into. The rest of memory space is fine.
>
> From my digging and prototyping it seems like a DMA zone will do the
> job, but maybe there's an easier way. The DMA mask doesn't seem to
> really help with this hole in memory and would still need to be
> 0xFFFFFFFF it appears.

The DMA zone won't help because it assumes that it is always at the
bottom of the RAM. The simples way is to mark that area as reserved and
never use it. It's not that bad since I suspect you already have the
kernel and swapper_pg_dir using most of it.

Have a look at arch/arm/mach-integrator/core.c - integrator_reserve().

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