From: Dan Malek <dan@embeddededge.com>
To: "Kerl, John" <John.Kerl@Avnet.com>
Cc: "'linuxppc-embedded@lists.linuxppc.org'"
<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: mm_ptov() in pgtable.c
Date: Thu, 08 May 2003 08:27:36 -0400 [thread overview]
Message-ID: <3EBA4D38.5030905@embeddededge.com> (raw)
In-Reply-To: B895EFF5AF34724880036BDB5B5B814813561F@amer22.avnet.com
Kerl, John wrote:
> Does anyone know why we have mm_ptov() in
> arch/ppc/mm/pgtable.c, since we already
> have __va?
They are different functions. The __va() macro
does simple arithmetic on the 1:1 kernel mapped low memory
addresses. The mm_ptov() is supposed to do the opposite
of where we use iopa(), which can be used on the entire
virtual address space. Since there isn't sufficient information
in the kernel to properly implement mm_ptov() in a generic way,
it's implementation has been stalled and we have used a
variety of different methods to return physical addresses
dependent on the way memory has been mapped (which unfortunately
seems to be the Linux design preference).
The APUS configuration uses mm_ptov, I kind of broke it at one
point and I'm waiting for them to stumble across it so we can
fix it for them.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2003-05-08 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-07 21:37 mm_ptov() in pgtable.c Kerl, John
2003-05-08 12:27 ` Dan Malek [this message]
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=3EBA4D38.5030905@embeddededge.com \
--to=dan@embeddededge.com \
--cc=John.Kerl@Avnet.com \
--cc=linuxppc-embedded@lists.linuxppc.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).