Skip to contentSkip to conversation

The question about the high memory support on MPC8360?

DISCUSSION 郭劲 5 participants 5 messages Nov 29, 2007

lore
Share & tools
lore

郭劲

author
#0 lore raw

Hi,friends,

I plug in 2GB DDR-1 in my MPC8360 board,there are two DIMM-184 slots,each
DIMM-184 slot hold 1GB.Could you tell me how to let the linux know about those 2GB?
In uboot, I set up each DDR CS to visit 512MB, total 4 CS signal. DDR window
range is 2GB. I think the uboot has passed those DDR parameter to linux.
I once did a test that config the bootargs with mem=512M, then the linux just
only find 512MB, but if I config the mem=2048M, the linux still find about 750MB.
How to make the linux find the total 2GB memory?

Quoted 38 lines

From: Scott Wood <[email protected]>
Reply-To:
To: vijay baskar <[email protected]>
Subject: Re: The question about the high memory support on MPC8360? Date:Wed, 28 Nov 2007 10:57:38 -0600

Quoted 4 lines · vijay baskar

Hi, "The kernel also allows hardcoded mapping of IO regions into its virtual address space through the io_block_mapping interface."

Can u tell me how this is in current arch/powerpc.

Everything is explicitly ioremapped.

Quoted 3 lines

Also does it mean that whatever be the size of the ram > 768 MB there
is not going to be much improvement in performance in kernel space
irrespective of invoking CONFIG_HIGHMEM or not?

Well, the kernel can use highmem for cache... I'm not sure what you mean by "in kernel space".

Quoted 2 lines

Also do you think this low mem be enough if i have lots of kernel space processes each invoking lots of kmallocs.

That depends on what you mean by "lots". :-)

You'll have 768MB of lowmem, and kmallocs can only use lowmem.

Quoted 2 lines

Will there be bottle necks?? Also what alternative do we have if low mem of 768 MB is not enough??

You'll need to change the user/kernel split, and deal with anything that breaks in the process.

Or get a 64-bit chip. :-)

-Scott

#1 lore raw

=E9=83=AD=E5=8A=B2 wrote: Hi,friends, I plug in 2GB DDR-1 in my MPC8360 board,there are two DIMM-184 slots,e= ach DIMM-184 slot hold 1GB.Could you tell me how to let the linux know about = those 2GB? In uboot, I set up each DDR CS to visit 512MB, total 4 CS signal. DDR = window range is 2GB. I think the uboot has passed those DDR parameter to linux. I once did a test that config the bootargs with mem=3D512M, then the l= inux just only find 512MB, but if I config the mem=3D2048M, the linux still find ab= out 750MB. How to make the linux find the total 2GB memory? =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Hi Friend,

I hope u had tracked the conversion that has been going on. The max mem that the kernel can show is only 768 MB because only that of memory is directly mapped with your ram.. No matter how much ram > 768 MB (in powerpc.. it varies in other architectures) u have, the kernel will show only 768 MB.. This is called low mem..

How t o use high mem??

scott can probably guide us on this.. I also have lot of confusions about high mem.. Also i would suggest you a bit of reading on virtual memory management on linux to get a grasp about how things are done Rest for scott

regards,
vijai

From: Scott Wood <[email protected]> Reply-To:=20 To: vijay baskar <[email protected]> Subject: Re: The question about the high memory support on MPC8360? Date:Wed, 28 Nov 2007 10:57:38 -0600 vijay baskar wrote: Hi, "The kernel also allows hardcoded mapping of IO = regions into its=20 virtual address space through the io_block_mapping interface." Can u tell me how this is in current arch/powerpc. Everything is explicitly ioremapped. Also does it mean that whatever be the size of the r= am > 768 MB there is not going to be much improvement in performance in kernel space=20 irrespective of invoking CONFIG_HIGHMEM or not? Well, the kernel can use highmem for cache... I'm not= sure what you mean by "in kernel space". Also do you think this low mem be enough if i have l= ots of kernel=20 space processes each invoking lots of kmallocs. That depends on what you mean by "lots". :-) You'll have 768MB of lowmem, and kmallocs can only use lowmem. Will there be bottle necks?? Also what alternative d= o we have if low mem of 768 MB is not enough?? You'll need to change the user/kernel split, and deal = with anything that=20 breaks in the process. Or get a 64-bit chip. :-) -Scott

#2 lore raw
Quoted 14 lines · vijay baskar

How to make the linux find the total 2GB memory?

Hi Friend,

I hope u had tracked the conversion that has been going on. The max mem
that the kernel can show is only 768 MB because only that of memory is directly mapped with your ram.. No matter how much ram > 768 MB (in powerpc.. it varies in other architectures) u have, the kernel will show only 768 MB.. This is called low mem..

How t o use high mem??

Quoted 8 lines

scott can probably guide us on this.. I also have lot of confusions about
high mem.. Also i would suggest you a bit of reading on virtual memory management on linux to get a grasp about how things are done
Rest for scott

regards,
vijai

I also have a requirement to use more than 768MB and 0x30000000. I have other problems at the moment, so I haven't tested this completely yet. My limited understanding, though, is that to use more than 768MB you have to change your kernel configuration, including shifting the kernel start address. This is what I plan on testing for 1GB when I have time:

CONFIG_ADVANCED_OPTIONS=y
CONFIG_LOWMEM_SIZE_BOOL=y
CONFIG_LOWMEM_SIZE=0x40000000
CONFIG_KERNEL_START_BOOL=y
CONFIG_KERNEL_START=0xa0000000
# CONFIG_CONSISTENT_START_BOOL is not set
# CONFIG_CONSISTENT_SIZE_BOOL is not set
# CONFIG_BOOT_LOAD_BOOL is not set

If that works for current kernels, please respond to the list ;-) .

HTH,
Robert

#3 lore raw
Quoted 38 lines · Robert lazarski
Quoted 13 lines · vijay baskar

How to make the linux find the total 2GB memory?

Hi Friend,

I hope u had tracked the conversion that has been going on. The max mem
that the kernel can show is only 768 MB because only that of memory is directly mapped with your ram.. No matter how much ram > 768 MB (in powerpc.. it varies in other architectures) u have, the kernel will show only 768 MB.. This is called low mem..

How t o use high mem??

Quoted 7 lines

scott can probably guide us on this.. I also have lot of confusions about
high mem.. Also i would suggest you a bit of reading on virtual memory management on linux to get a grasp about how things are done
Rest for scott

regards,
vijai

I also have a requirement to use more than 768MB and 0x30000000. I have other problems at the moment, so I haven't tested this completely yet. My limited understanding, though, is that to use more than 768MB you have to change your kernel configuration, including shifting the kernel start address. This is what I plan on testing for 1GB when I have time:

CONFIG_ADVANCED_OPTIONS=y
CONFIG_LOWMEM_SIZE_BOOL=y
CONFIG_LOWMEM_SIZE=0x40000000
CONFIG_KERNEL_START_BOOL=y
CONFIG_KERNEL_START=0xa0000000
# CONFIG_CONSISTENT_START_BOOL is not set
# CONFIG_CONSISTENT_SIZE_BOOL is not set
# CONFIG_BOOT_LOAD_BOOL is not set

Quoted 1 line

If that works for current kernels, please respond to the list ;-) .

Can't answer that question, but before trying that, have you tried CONFIG_HIGHMEM=y ?

-Dale

#4 lore raw
In reply to robert lazarski
Quoted 12 lines

From: robert lazarski
Sent: Thursday, November 29, 2007 7:00 AM
Subject: Re: The question about the high memory support on MPC8360? I also have a requirement to use more than 768MB and 0x30000000. I have other problems at the moment, so I haven't tested this completely yet. My limited understanding, though, is that to use more than 768MB you have to change your kernel configuration, including shifting the kernel start address. This is what I plan on testing for 1GB when I have time:
=20
CONFIG_ADVANCED_OPTIONS=3Dy
CONFIG_LOWMEM_SIZE_BOOL=3Dy

Quoted 8 lines

CONFIG_LOWMEM_SIZE=3D0x40000000 CONFIG_KERNEL_START_BOOL=3Dy CONFIG_KERNEL_START=3D0xa0000000
# CONFIG_CONSISTENT_START_BOOL is not set
# CONFIG_CONSISTENT_SIZE_BOOL is not set
# CONFIG_BOOT_LOAD_BOOL is not set
=20
If that works for current kernels, please respond to the list ;-) .

This is how I do 1G of mem on a /arch/ppc kernel. A short while (couple of weeks ago) I commented about thei s on a thread about setting up the TLB handlers on arch/powerpc, and asked if this was going to be possible to do, and basically got a resouding NO as answer.

WHich means I'll be sticking to arch/ppc for a while yet. It would be nice to have this also working on arch/powerpc though.