From: "Greg Griffes" <ggg@ieee.org>
To: "Matt Porter" <mporter@mvista.com>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Memory map on custom MPC7400 board
Date: Tue, 26 Mar 2002 06:35:54 -0500 [thread overview]
Message-ID: <000901c1d4ba$63f9b7c0$6401a8c0@attbi.com> (raw)
In-Reply-To: 20020325221409.A871@home.com
Matt,
Thanks very much for your advice. You have saved me a big headache!
> I really recommend using the linuxppc_2_4_devel tree as a starting
> kernel source base...but it's your choice.
I will try using the linuxppc_2_4_devel tree. Unforeseen problems I don't need.
> Do you really have to map a contiguous 384MB of physical address
> space? If these are typical RTC and PIC parts...why?
The RTC is typical but the PIC is split between a custom ASIC and
another device. The RTC is at 0xE400_0000phys, one part of the PIC
is at 0xEC00_0000phys and the other part is at 0xF700_0000phys.
Their size is small, but they are spread out. If I have to map them with
BATs, I would have to map 384Mb (because the BAT base address
must be a multiple of the mapped size.) Once the KVM is up,
I think that I can use ioremap(), or io_block_mapping() to map in
only what I need. Is that right?
> You are misunderstanding the mapping of kernel RAM using BATs. The
> 16MB mapping is a temporary translation used before MMU_init().
> If you look at arch/ppc/mm/ppc_mmu.c:bat_mapin_ram() you'll see
> that the final mapping is done using BAT2 and BAT3 (the third
> pair of bats is only used if total_lowmem > 256MB).
Does this mean that before MMU_init() I can use BATs 2&3, then in
ppc_md.setup_io_mappings() (called after mapin_ram()) I would use
io_block_mapping() (as is done in chrp_setup.c?)
This helps a lot! Thanks again for your advice.
Greg Griffes
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-03-26 11:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-25 22:41 Memory map on custom MPC7400 board Greg Griffes
2002-03-26 5:14 ` Matt Porter
2002-03-26 11:35 ` Greg Griffes [this message]
2002-03-26 14:16 ` Matt Porter
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='000901c1d4ba$63f9b7c0$6401a8c0@attbi.com' \
--to=ggg@ieee.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=mporter@mvista.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).