All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Randolph Chung <randolph@tausq.org>
Cc: PARISC list <parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] CONFIG_DISCONTIGMEM, try 2
Date: 06 Jul 2004 13:02:33 -0500	[thread overview]
Message-ID: <1089136958.1767.534.camel@mulgrave> (raw)
In-Reply-To: <20040706071459.GA567@tausq.org>

On Tue, 2004-07-06 at 02:15, Randolph Chung wrote:
> Since we put all memory into ZONE_DMA, the comment is wrong -- ZONE_DMA
> memory can in fact be >4GB. So, either we partition the memory so that
> it adheres to the above constraint, otherwise we will need to redo the
> pgd/pmd layouts a bit. jejb: comments? :) (In fact this will be a
> problem without CONFIG_DISCONTIGMEM if we have a machine that 
> supported >4GB of contiguous memory)

Actually, no, we always planned to stop ZONE_DMA at 4GB for this reason
even if it has an IOMMU (this is a fairly standard risc trick, I
think).  What we're trying to do is to save space in the PGD/PMD pages
by using "short" pointers. if we know that PTE pages are allocated only
in the first 4GB of memory, then we can point to them with only 32 bits
(even on a 64 bit machine).

We could save space by shifting the pointers before dereferencing. 
Since the PTE/PMD pages are page aligned, we don't actually need the
lower 12 bits of the pointer.  Although we currently use those bits for
page flags, all we're really interested in are valid and present bits so
with a bit of shifting, we could make these short pointers address up to
42 bits, which is over the range of even the pa8800's physical memory
capabilities (40 bits).

James


_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

  reply	other threads:[~2004-07-06 18:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-06  7:15 [parisc-linux] CONFIG_DISCONTIGMEM, try 2 Randolph Chung
2004-07-06 18:02 ` James Bottomley [this message]
2004-07-09  8:03   ` Randolph Chung
2004-07-09 17:23     ` Randolph Chung
2004-07-07 15:24 ` Joel Soete

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=1089136958.1767.534.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=randolph@tausq.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.