linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Christer Weinigel <wingel@cendio.se>
To: alan@packetengines.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: WARNING OFF TOPIC SLIGHTLY: 8xx MMU w/8MB pages
Date: Tue, 18 Jan 2000 19:28:19 +0100	[thread overview]
Message-ID: <200001181828.TAA23940@dumburk.cendio.se> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]


alan.corp.packetengines.com wrote:

>I tried using the MD_CAM and MD_RAMn registers to debug this.  These seem to
>read back the values I have stored via the MD_RPN, MD_TWC and MD_RPN register
>EXCEPT that when I read back I get a value for the MD_CAM.PS field of 110
>rather than the 111 which is the documented 8MB page size value.  The doc even
>says that values other than those listed (000, 001, 011, 111) are "reserved".
>The value I am setting in the MD_TWC.PS field (which is oddly a two bit
>encoding for page size) is 11, which is documented as the 8MB page
>size value.

This is simple :-)  Or rather, I was tearing my hair out last week
trying to figure out exactly the same thing.  Set the 4/16k bit in
MD_RPN to 1 and it'll work.  Apparently, the two page size bits in
MD_TWC and the bit från MD_RPN together form the real page size.  The
documentation is a bit misleading here.

Now I'd just like to know why I can't get 8 MB pages working with the
Linux page tables.  The performance boost from putting the Linux
kernel in an 8 MB page on a MPC850 is rather impressive, most lmbench
system call benchmarks went twice as fast.

  /Christer

--
Christer Weinigel		Cendio Systems AB
Email:	wingel@cendio.se	Teknikringen 8
Phone:	+46-13-21 46 00		583 30  Linköping
Fax:	+46-13-21 47 00		Sweden
[please note that Signum Support has changed its name to Cendio Systems]

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

             reply	other threads:[~2000-01-18 18:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-18 18:28 Christer Weinigel [this message]
2000-01-18 18:56 ` WARNING OFF TOPIC SLIGHTLY: 8xx MMU w/8MB pages Dan Malek
2000-01-18 19:11   ` Alan Mimms
2000-01-19 16:04     ` Dan Malek
2000-01-18 19:55   ` Christer Weinigel
  -- strict thread matches above, loose matches on Subject: below --
2000-01-17 22:59 Alan Mimms

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=200001181828.TAA23940@dumburk.cendio.se \
    --to=wingel@cendio.se \
    --cc=alan@packetengines.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).