From: Dan Malek <dan@mvista.com>
To: Roman Zippel <zippel@fh-brandenburg.de>
Cc: mgreer@mvista.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: CONFIG_HIGHMEM on PPC
Date: Thu, 25 Jan 2001 14:47:43 -0500 [thread overview]
Message-ID: <3A7082DF.CD7E8B61@mvista.com> (raw)
In-Reply-To: Pine.GSO.4.10.10101251858330.22965-100000@zeus.fh-brandenburg.de
Roman Zippel wrote:
> The problem is the ia32 guys want to address 64GByte, what requires a
> 64bit physical address, what nobody can handle on 32bit Systems.
Heh....64Gbyte is nothing, just a few more bits beyond 32....you
don't need 64-bits for this. In fact, I had a revelation last
night where I thought we could even do this quite transparently
on PowerPCs with VSIDs or even context registers, anything that
implictly gives us a few more bits of virtual address. Later
on that.....
Of course, the quick solution today would be to just move the
kernel virtual address to a lower address.........no need for
highmem config at all. It wouldn't give you the 64Gbyte, but it
would solve the immediate problem of 1G real memory.
> Please be careful with what you're doing, otherwise you have to rewrite it
> again for the real 2.5.
All I am doing is cleaning up a bunch of the PowerPC MM initialization
and mapping functions. Just getting rid of ifdefs, duplication of
code and stuff like that. I suspect we will be rewriting in 2.5,
and there is no sense to do it multiple times for different PPC
processor variants.
> For what exactly do you need such generic virt_to_phys? AFAIK 2.5 will go
> more page oriented, so drivers get a set of pages to work on.
All of the embedded PowerPC, and the new high end PowerPC all work
with page mapped TLBs. The 'middle' processors, 6xx/7xx/74xx have
the BAT register enhancement that appears to be going away. On the
embedded processors, all I/O is mapped through page tables, which
usually don't have 1:1 mapping. The existing virt_to_phys and such
with just the arithmetic adjustment don't work on those. Some
systems have big holes in the physical space, including physical
addresses that map "under" the fixed kernel virtual addresses. You
have to get to those via page tables as well.
I don't know what you mean by more "page oriented" as that is the
way it works now. We just use BATs in some cases for efficiency, but
you don't have to.
> ..... That will
> mean bounce buffer management will be moved into the drivers.
Oh geeze.......This kind of stuff should be very generic and even
be hidden. If drivers want to know for some performance reason
that's OK, but they shouldn't have to know.
> ....... Either everything is done with pages or one
> has to store a virtual/physical address pair. Doing a generic conversion
> functions for the latter is often slower, so it's currently expected that
> drivers just store it themselves.
Oh great, yet another technology path we think we are inventing again.
I hope whoever gets blessed by Linus to work on this takes a serious
look at over 20 years of research and implementation by others. Oh
well, I'll just hack my little mapping functions :-).
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-01-25 19:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-24 0:31 CONFIG_HIGHMEM on PPC Mark A. Greer
2001-01-25 6:04 ` Dan Malek
2001-01-25 6:44 ` HTTP daemon required Srinivas Rao.M
2001-01-25 9:25 ` CONFIG_HIGHMEM on PPC Roman Zippel
2001-01-25 17:08 ` Dan Malek
2001-01-25 18:37 ` Roman Zippel
2001-01-25 19:47 ` Dan Malek [this message]
2001-01-25 19:59 ` David Edelsohn
2001-01-25 21:36 ` Roman Zippel
2001-01-25 21:51 ` Gabriel Paubert
2001-01-25 22:35 ` Roman Zippel
2001-01-25 22:39 ` David Edelsohn
2001-01-26 3:05 ` Frank Rowand
2001-01-25 19:28 ` Gabriel Paubert
2001-01-25 20:07 ` Dan Malek
2001-01-25 21:40 ` Gabriel Paubert
2001-01-25 21:46 ` David Edelsohn
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=3A7082DF.CD7E8B61@mvista.com \
--to=dan@mvista.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=mgreer@mvista.com \
--cc=zippel@fh-brandenburg.de \
/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).