linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Use 2G RAM in 8548, vmalloc fail, adjust_total_lowmem
@ 2008-01-09  4:06 jay_chen
  2008-01-09 16:06 ` Dale Farnsworth
  2008-01-09 18:59 ` Scott Wood
  0 siblings, 2 replies; 3+ messages in thread
From: jay_chen @ 2008-01-09  4:06 UTC (permalink / raw)
  To: linuxppc-embedded

Hello, all~~~

I am using a MCP8548 board with 2.6.14.5 kernel.
And I would like to upgrade memory from 512MB to 2048MB.
Finally, I realize this is not so easy as I think. I encounter several
problems. :~~

First, I change mem=512M to mem=2048M.

1. vmalloc fail problem
So, I change kernel config in "advanced setup"
Change  "Set maximum low memory" from 0x30000000 to 0x80000000.
Change "Virtual address of kernel base" from 0xC0000000 to 0x60000000.
Change "Set custom user task size" from 0x80000000 to 0x60000000

Someone said that he could change "Virtual address of kernel base" to
0xA0000000 without problem.
Could I change it to 0x60000000? Any possible problem?

2.
In MMU_init( ), init.c
#ifdef CONFIG_FSL_BOOKE
	/* Freescale Book-E parts expect lowmem to be mapped by fixed TLB
	 * entries, so we need to adjust lowmem to match the amount we can
map
	 * in the fixed entries */
	adjust_total_lowmem();
#endif /* CONFIG_FSL_BOOKE */

In adjust_total_lowmem(), fsl_booke_mmu.c 
It always limits the low memory to 768MB.  (no matter we set mem=768MB or
mem=1024MB, or mem=2048MB) 
__max_low_memory = max_low_mem = __cam0 + __cam1 + __cam2; (each TLB could
map up to 256MB)

My question is could I use more than 3 TLBs here? Such as 8 TLBs to map 2G
ram?
Or could I use e500v2 new feature, that is 1 TLB could map up to 4G? Any
reference code?

Any comment is welcom. Thanks a lot.

          Jay Chen...

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-09 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-09  4:06 Use 2G RAM in 8548, vmalloc fail, adjust_total_lowmem jay_chen
2008-01-09 16:06 ` Dale Farnsworth
2008-01-09 18:59 ` 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).