From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Chris Dumoulin" <cdumoulin@ics-ltd.com>
Cc: dhlii@comcast.net, linuxppc-embedded@ozlabs.org
Subject: Re: Calculating virtual address from physical address
Date: Sat, 6 May 2006 13:38:32 -0600 [thread overview]
Message-ID: <528646bc0605061238q37c253fdua58f826ac1a519d7@mail.gmail.com> (raw)
In-Reply-To: <200605061843.k46Ih5Vd032048@www-webmail1.magma.ca>
On 5/6/06, Chris Dumoulin <cdumoulin@ics-ltd.com> wrote:
> You said that the temporary TLB entries setup in head_4xx.S will eventual=
ly be replaced.
> Where is the code that creates these new TLB entries later on? Are the 'r=
eal' TLB entries
> only created once, and persist for as long as the system is running, or d=
o TLB entries
> change often while the system is running?
The kernel maintains a list of mappings between virtual and physical
space. When the processor takes a TLB miss exception, then exception
handler loads the needed mapping into the TLB and returns from
exception. (Look in head_4xx.S; specifically at finish_tlb_load).=20
TLB entries are loaded in a round-robin fashion as needed. Since your
early TLB mappings aren't in the kernel page tables; they get
overwritten and can't be reloaded by the TLB miss exception handler.
> Can you point me to some information about Grant's platform bus changes t=
hat you were
> talking about? I am using a custom V2Pro board, and I'd be interested to =
see if this code
> is something I should be looking at.
The platform bus changes moves the devices to use the "Platform Bus"
infrastructure. It's kind of a move away from multiple
processor-specific bus management schemes for "simple" busses. ie.=20
If the processor can access it without special setup code; the device
can go on the platform bus.
Check out http://patchwork.ozlabs.org/linuxppc/ and search for my
name. There's about 9 patches grouped together.
Cheers,
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195
next prev parent reply other threads:[~2006-05-06 19:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-06 18:43 Calculating virtual address from physical address Chris Dumoulin
2006-05-06 19:38 ` Grant Likely [this message]
2006-05-10 11:04 ` David H. Lynch Jr.
2006-05-10 16:43 ` Eugene Surovegin
-- strict thread matches above, loose matches on Subject: below --
2006-05-06 8:43 Alexander Szekely
2006-05-05 15:08 Chris Dumoulin
2006-05-05 19:27 ` Sylvain Munaut
2006-05-05 20:24 ` Matt Porter
2006-05-05 20:58 ` Josh Boyer
2006-05-05 23:35 ` David H. Lynch Jr.
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=528646bc0605061238q37c253fdua58f826ac1a519d7@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=cdumoulin@ics-ltd.com \
--cc=dhlii@comcast.net \
--cc=linuxppc-embedded@ozlabs.org \
/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).