Thread (2 messages) 2 messages, 2 authors, 2011-02-16

Re: Question about flash allocation

From: Josh Boyer <hidden>
Date: 2011-02-16 11:26:37

On Tue, Feb 15, 2011 at 11:28 PM, Mitsutaka Amano
[off-list ref] wrote:
Hi,

Why does CFI(or other flash memory) have to alloc amount of flash
memory size to the vmalloc area(such as PHYSMAP or PHYSMAP_OF)?
I wondered other devices seems to not allocating(e.g, most NAND flash,
flash on ARM, MIPS and so on). I don't know difference between my
board and other. Doesn't other devices need to allocate to vmalloc?
You asked this on the MTD mailing list already:

http://lists.infradead.org/pipermail/linux-mtd/2011-January/033787.html

The answers aren't going to change based on which list you ask.

As for the last question, the memory space for modules are in vmalloc
space, and any HW resources they ioremap are as well.  However for
true memory allocations, most device drivers use kmalloc.  Some use
vmalloc for large buffers that don't need to be physically contiguous
but there aren't that many.

josh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help