* DMA setup for ARM platform with hole low in memory
[not found] <1347566644.1505253.1308000163643.JavaMail.root@sz0140a.emeryville.ca.mail.comcast.net>
@ 2011-06-13 21:31 ` johnlinn
2011-06-14 10:16 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: johnlinn @ 2011-06-13 21:31 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel
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.
Am I missing the easier way?
Thanks,
John
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DMA setup for ARM platform with hole low in memory
2011-06-13 21:31 ` DMA setup for ARM platform with hole low in memory johnlinn
@ 2011-06-14 10:16 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2011-06-14 10:16 UTC (permalink / raw)
To: johnlinn; +Cc: linux-kernel, linux-arm-kernel
On Mon, Jun 13, 2011 at 09:31:59PM +0000, johnlinn@comcast.net 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-14 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1347566644.1505253.1308000163643.JavaMail.root@sz0140a.emeryville.ca.mail.comcast.net>
2011-06-13 21:31 ` DMA setup for ARM platform with hole low in memory johnlinn
2011-06-14 10:16 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®