[PATCH] ppc64: Increase sparsemem defaults

Anton Blanchard anton at samba.org
Fri Nov 11 15:02:03 EST 2005


 
> One thing I've never been sure about are these definitions in sparsemem.h.
> 
> /*
>  * SECTION_SIZE_BITS            2^N: how big each section will be
>  * MAX_PHYSADDR_BITS            2^N: how much physical address space we have
>  * MAX_PHYSMEM_BITS             2^N: how much memory we can have in that space
>  */
> #define SECTION_SIZE_BITS       24
> #define MAX_PHYSADDR_BITS       38
> #define MAX_PHYSMEM_BITS        36
> 
> Do you know if these are sufficient for all supported hardware today?

Thanks for reminding me, they arent sufficient. We currently sell
machines with 2TB of RAM, and in order to give us room for a few years
growth lets set it to 16TB.

Signed-off-by: Anton Blanchard <anton at samba.org>
---

Index: build/include/asm-powerpc/sparsemem.h
===================================================================
--- build.orig/include/asm-powerpc/sparsemem.h	2005-11-11 14:56:43.000000000 +1100
+++ build/include/asm-powerpc/sparsemem.h	2005-11-11 14:56:58.000000000 +1100
@@ -8,8 +8,8 @@
  * MAX_PHYSMEM_BITS		2^N: how much memory we can have in that space
  */
 #define SECTION_SIZE_BITS       24
-#define MAX_PHYSADDR_BITS       38
-#define MAX_PHYSMEM_BITS        36
+#define MAX_PHYSADDR_BITS       44
+#define MAX_PHYSMEM_BITS        44
 
 #ifdef CONFIG_MEMORY_HOTPLUG
 extern void create_section_mapping(unsigned long start, unsigned long end);



More information about the Linuxppc64-dev mailing list