Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c0f7c6cb5dbb6d90e0334e62376dbc6ac3d1d315
Commit:     c0f7c6cb5dbb6d90e0334e62376dbc6ac3d1d315
Parent:     7a883eaf62f4b943ebec738ce3b0796c67ef5d32
Author:     Paul Mackerras <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 3 14:08:24 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Fri Aug 3 14:08:24 2007 +1000

    [POWERPC] Expand RPN field to 34 bits when using 64k pages
    
    The real page number field in our PTEs when configured for 64kB pages
    is currently 32 bits, which turns out to be not quite enough for the
    resources that the eHCA driver wants to map.  This expands the RPN
    field to include 2 adjacent, previously-unused bits.
    
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
    Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
---
 include/asm-powerpc/pgtable-64k.h |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/include/asm-powerpc/pgtable-64k.h 
b/include/asm-powerpc/pgtable-64k.h
index 31cbd3d..33ae901 100644
--- a/include/asm-powerpc/pgtable-64k.h
+++ b/include/asm-powerpc/pgtable-64k.h
@@ -49,12 +49,10 @@
 
 /* Shift to put page number into pte.
  *
- * That gives us a max RPN of 32 bits, which means a max of 48 bits
- * of addressable physical space.
- * We could get 3 more bits here by setting PTE_RPN_SHIFT to 29 but
- * 32 makes PTEs more readable for debugging for now :)
+ * That gives us a max RPN of 34 bits, which means a max of 50 bits
+ * of addressable physical space, or 46 bits for the special 4k PFNs.
  */
-#define PTE_RPN_SHIFT  (32)
+#define PTE_RPN_SHIFT  (30)
 #define PTE_RPN_MAX    (1UL << (64 - PTE_RPN_SHIFT))
 #define PTE_RPN_MASK   (~((1UL<<PTE_RPN_SHIFT)-1))
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to