* [PATCH] POWERPC 8xx: bump up initial memory limit for 8xx
@ 2007-07-17 1:17 Vitaly Bordug
2007-08-01 19:13 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Bordug @ 2007-07-17 1:17 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
From: John Traill <john.traill@freescale.com>
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.
Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org>
---
arch/powerpc/mm/init_32.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index e1f5ded..7cee86d 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -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();
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] POWERPC 8xx: bump up initial memory limit for 8xx
2007-07-17 1:17 [PATCH] POWERPC 8xx: bump up initial memory limit for 8xx Vitaly Bordug
@ 2007-08-01 19:13 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2007-08-01 19:13 UTC (permalink / raw)
To: Vitaly Bordug; +Cc: linuxppc-dev, Paul Mackerras
Vitaly Bordug wrote:
> From: John Traill <john.traill@freescale.com>
>
> 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.
>
> Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org>
>
> ---
>
> arch/powerpc/mm/init_32.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
> index e1f5ded..7cee86d 100644
> --- a/arch/powerpc/mm/init_32.c
> +++ b/arch/powerpc/mm/init_32.c
> @@ -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,
Acked-by: Scott Wood <scottwood@freescale.com>
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-01 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 1:17 [PATCH] POWERPC 8xx: bump up initial memory limit for 8xx Vitaly Bordug
2007-08-01 19:13 ` Scott Wood
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).