Skip to contentSkip to conversation

POWERPC 8xx: bump up initial memory limit for 8xx

PATCH In review Vitaly Bordug 2 participants 2 messages Jul 17, 2007 – Aug 1, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POWERPC 8xx: bump up initial memory limit for 8xx

From: John Traill <[email protected]>

The 8xx can only support a max of 8M during early boot ( it seems a lot of 8xx boards only have 8M so the bug was never triggered ). The following change makes it able to run with 128M.

---

 arch/powerpc/mm/init_32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/powerpc/mm/init_32.c +3 -0
index e1f5ded..7cee86d 100644
@@ -133,6 +133,9 @@ void __init MMU_init(void)
 	/* 601 can only access 16MB at the moment */
 	if (PVR_VER(mfspr(SPRN_PVR)) == 1)
 		__initial_memory_limit = 0x01000000;
+	/* 852 can only access 8MB at the moment */
+	if (PVR_VER(mfspr(SPRN_PVR)) == 0x50)
+		__initial_memory_limit = 0x00800000;
 
 	/* parse args from command line */
 	MMU_setup();
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Vitaly Bordug

From: John Traill <[email protected]>

The 8xx can only support a max of 8M during early boot ( it seems a lot of 8xx boards only have 8M so the bug was never triggered ). The following change makes it able to run with 128M.

---

 arch/powerpc/mm/init_32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/powerpc/mm/init_32.c +0 -0
index e1f5ded..7cee86d 100644

arch/powerpc/mm/init_32.c void __init MMU_init(void) · line 138

Quoted 6 lines
arch/powerpc/mm/init_32.c +3 -0
@@ -133,6 +133,9 @@ void __init MMU_init(void)
 	/* 601 can only access 16MB at the moment */
 	if (PVR_VER(mfspr(SPRN_PVR)) == 1)
 		__initial_memory_limit = 0x01000000;
+	/* 852 can only access 8MB at the moment */
+	if (PVR_VER(mfspr(SPRN_PVR)) == 0x50)
+		__initial_memory_limit = 0x00800000;

The comment should refer to 8xx, not 852, as this is a property of code in head_8xx.S and not the chip itself.

Otherwise,

-Scott