On Tue, Feb 15, 2011 at 11:28 PM, Mitsutaka Amano <mitsutaka.am...@gmail.com> 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 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev