From: "tiejun.chen" <tiejun.chen@windriver.com>
To: Mitsutaka Amano <mitsutaka.amano@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: About mpc85xx flash memory allocation
Date: Mon, 24 Jan 2011 14:48:52 +0800 [thread overview]
Message-ID: <4D3D20D4.5040902@windriver.com> (raw)
In-Reply-To: <AANLkTin0RHAF8ieFqv12dFfOr_N3g3w6VVUTGOvH47uq@mail.gmail.com>
Mitsutaka Amano wrote:
> 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 tight.
>
> Why does we need mpc platforms to flash memory allocation? I know
This should not be dedicated to so-called mpc platform. And we always use
ioremap() to map the device space. And on PPC ioremap also use the same space as
vmalloc(). While bootstrap you also can see this associated message like the
follows,
------
......
* 0xd1000000..0xffbe9000 : vmalloc & ioremap
> other architectures don't allocate to the vmalloc.
> The design of the hardware? or Is there the way to use the flash
You can open /dev/mem then mmap() with a appropriate offset to access the device
space including flash.
Tiejun
> memory without vmalloc?
>
> Thanks,
> Mitsutaka
next prev parent reply other threads:[~2011-01-24 6:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 1:15 About mpc85xx flash memory allocation Mitsutaka Amano
2011-01-24 6:48 ` tiejun.chen [this message]
[not found] ` <AANLkTi=wfBzUUPqByQQK=UYiXN6CXrzferePCeM3TGpn@mail.gmail.com>
[not found] ` <4D3E3004.2040308@windriver.com>
2011-01-25 2:17 ` Mitsutaka Amano
2011-01-26 10:51 ` Mitsutaka Amano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3D20D4.5040902@windriver.com \
--to=tiejun.chen@windriver.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mitsutaka.amano@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).