From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Kumar Gala <kumar.gala@freescale.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] Fix PPC440 pagetable attributes
Date: Fri, 03 Jun 2005 09:30:37 -0700 [thread overview]
Message-ID: <42A085AD.3070005@am.sony.com> (raw)
In-Reply-To: <134a0b6339320a60ba2a868931a3aed4@freescale.com>
Kumar Gala wrote:
> On Jun 2, 2005, at 6:00 PM, Geoff Levand wrote:
>
>
>>This patch fixes a bug in the PPC440 pagetable attributes that breaks
>>swap support. It also adds some notes on the PPC440 attribute fields.
>>
>> *
>> * Note that these bits preclude future use of a page size
>> * less than 4KB.
>>+ *
>>+ *
>>+ * PPC 440 core has following TLB attribute fields;
>>+ *
>>+ * TLB1:
>>+ * 0 1 2 3 4 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
>>31
>>+ * RPN................................. - - - - - -
>>ERPN.......
>>+ *
>>+ * TLB2:
>>+ * 0 1 2 3 4 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
>>31
>>+ * - - - - - - U0 U1 U2 U3 W I M G E - UX UW UR SX SW
>>SR
>>+ *
>>+ * There are some constrains and options, to decide mapping software
>>bits
>>+ * into TLB entry.
>>+ *
>>+ * - PRESENT *must* be in the bottom three bits because swap cache
>>+ * entries use the top 29 bits for TLB2.
>>+ *
>>+ * - FILE *must* be in the bottom three bits because swap cache
>>+ * entries use the top 29 bits for TLB2.
>>+ *
>>+ * - CACHE COHERENT bit (M) has no effect on PPC440 core, because it
>>+ * doesn't support SMP. So we can use this as software bit, like
>>+ * DIRTY.
>>+ *
>>+ * PPC Book-E Linux implementation uses PPC HW PTE bit field
>>definition,
>>+ * even it doesn't have HW PTE. 0-11th LSB of PTE stand for memory
>>+ * protection-related function. (See PTE structure in
>>include/asm-ppc/mmu.h)
>>+ * Definition of _PAGE_XXX in "include/asm-ppc/pagetable.h" stands for
>>+ * above bits. Note that those bits values are CPU dependent, not
>>+ * architecture.
>>+ *
>
> I disagree with this comment. PPC Book-E PTE format has nothing to do
> with PPC HW PTE format.
>
OK, is this more agreeable?
* With the PPC Book-E Linux implementation, 0-11th LSB of PTE stand for memory
* protection-related function. (See PTE structure in include/asm-ppc/mmu.h)
* Definition of _PAGE_XXX here stands for above bits. Note that those bits
* values are CPU dependent, not architecture.
If not, could you be more specific.
-Geoff
next prev parent reply other threads:[~2005-06-03 16:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 23:00 [PATCH] Fix PPC440 pagetable attributes Geoff Levand
2005-06-03 14:42 ` Kumar Gala
2005-06-03 16:30 ` Geoff Levand [this message]
2005-06-03 20:42 ` Kumar Gala
2005-06-03 22:32 ` Geoff Levand
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=42A085AD.3070005@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=kumar.gala@freescale.com \
--cc=linuxppc-embedded@ozlabs.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.