lkml.org 
[lkml]   [2005]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Can I get 200M contiguous physical memory?
Date
From: "Arjan van de Ven" <arjan@infradead.org>
To: "Jason Luo" <abcd.bpmf@gmail.com>
>> A data acquisition card. In DMA mode, the card need 200M contiguous
>> memory for DMA.
>
> (or want to reserve memory at the boot commandline and then do really
> really evil hacks)

Such as booting the machine with "mem=(real memory - 200)M" and then
just doing an ioremap of the top 200M of memory.

It's not the most elegant way of doing things given that it requires
user intervention at boot time, but I'm not sure it counts as a "really
evil hack." Code-wise it's very simple - there's sample code in a
couple of the in-RAM MTD(*) drivers you can use as a model. I'm not sure
if this method will translate easily to non-x86 platforms if that's an
issue.

(* /drivers/mtd/devices/slram.c and /drivers/mtd/devices/mtdram.c ; I'm
not sure which of these is more up to date.)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.051 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site