linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mm_ptov() in pgtable.c
@ 2003-05-07 21:37 Kerl, John
  2003-05-08 12:27 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Kerl, John @ 2003-05-07 21:37 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Hello,

Does anyone know why we have mm_ptov() in
arch/ppc/mm/pgtable.c, since we already
have __va?  Is there a Really Good Reason,
historical accident, legacy from other
architectures, ... ?

Thanks.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mm_ptov() in pgtable.c
  2003-05-07 21:37 mm_ptov() in pgtable.c Kerl, John
@ 2003-05-08 12:27 ` Dan Malek
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2003-05-08 12:27 UTC (permalink / raw)
  To: Kerl, John; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-08 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-07 21:37 mm_ptov() in pgtable.c Kerl, John
2003-05-08 12:27 ` Dan Malek

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).