Re: About mpc85xx flash memory allocation
From: Mitsutaka Amano <hidden>
Date: 2011-01-26 10:51:10
Possibly related (same subject, not in this thread)
- 2011-01-24 · Re: About mpc85xx flash memory allocation · tiejun.chen <hidden>
- 2011-01-24 · About mpc85xx flash memory allocation · Mitsutaka Amano <hidden>
On Tue, Jan 25, 2011 at 11:17 AM, Mitsutaka Amano [off-list ref] wrote:
On Tue, Jan 25, 2011 at 11:05 AM, tiejun.chen [off-list ref]=
wrote:
quoted
Mitsutaka Amano wrote:quoted
On Mon, Jan 24, 2011 at 3:48 PM, tiejun.chen <tiejun.chen@windriver.com=wrote:quoted
quoted
quoted
Mitsutaka Amano wrote:quoted
Hi all, I'm testing the ppc platform is based on mpc85xx. 256MB Flash memory has been installed. Then I found this entries. /proc/vmallocinfo ~~~ 0xc9100000-0xd9101000 268439552 of_flash_probe+0x290/0x814 ioremap physmap_of allocated 268MB over to the vmalloc. vmalloc space is tigh=
t.
quoted
quoted
quoted
quoted
Why does we need mpc platforms to flash memory allocation? I knowThis should not be dedicated to so-called mpc platform. And we always =
use
quoted
quoted
quoted
ioremap() to map the device space. And on PPC ioremap also use the sam=
e space as
quoted
quoted
quoted
vmalloc(). While bootstrap you also can see this associated message li=
ke the
quoted
quoted
quoted
follows, ------ ...... =A0* 0xd1000000..0xffbe9000 =A0: vmalloc & ioremapYeah. My platform says the follow message. =A0 * 0xc9000000..0xdf000000 =A0: vmalloc & ioremapAny reason why you don't access > 0xdf000000?Higher than 0xdf000000 has to map TLB for using other peripherals. it's 400MB over.quoted
quoted
The default vmalloc & ioremap space was about 200MB. so I increased that by decreasing lowmem. But If possible, I hope to keep default maps. So I don't want to use vmalloc & ioremapquoted
quoted
other architectures don't allocate to the vmalloc. The design of the hardware? or Is there the way to use the flashYou can open /dev/mem then mmap() with a appropriate offset to access =
the device
quoted
quoted
quoted
space including flash.I use the device tree(dts) and define flash partitions. Also I use CFI driver and CFI_PHYSMAP_OF for device tree. Is there the reference driver in what uses mmap() kernel tree? I think I have to write a driver what can support dts and mmap() with a appropriate offset to access the device.You should not write anything again. And you can access any physical add=
ress
quoted
directly via /dev/mem from the user space like the following: fd =3D open(/dev/mem,); mmap(fd + offset);Thanks for letting me know. I want to use in combination with device tree. So I'll write a driver based on physmap_of.c(such as mmap_of.c)
I confused and misunderstand that. it has to use as a rootfs. so It can't use a userland program. Of cource, it can be force mapping to the userspace. but system will be unstable. I think. Mitsutaka
Thanks, Mitsutakaquoted
Tiejunquoted
Thanks, Mitsutakaquoted
Tiejunquoted
memory without vmalloc? Thanks, Mitsutaka