linux-mips
[Top] [All Lists]

Re: how to support more than 512MB RAM for MIPS32 ?

To: Kevin Hickey <khickey@netlogicmicro.com>
Subject: Re: how to support more than 512MB RAM for MIPS32 ?
From: "Figo.zhang" <figo1802@gmail.com>
Date: Wed, 25 Nov 2009 23:31:14 +0800
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=1/IJgrBZ/mLZfyA0j/Vgv2Cak4jss/GUYKmz4KIxvuY=; b=LDFlFs4mupK/g8ZtyUczm1yfq+i1VkBC5OwijYx0dqArFNlTLU0vOet9RJT3J4RXEr bK72eXX2QzmKbOnmLy1a0YeZI2Z4VAZ1Tg8W8esuVnTGcuBsiVZ0W0KjIm27pUUhnpvY xXLtHRBLetdzpS8z72as3nsx8S6xmjkZIknkE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=co1VXk48tbIfU+rJr+EGnWwXmqRjw4XCXlY4fl7XjzR82NQOEtDfWIDnuieang+Vpa IB1VIZX9rMD2iSjNz+Huc7tvleBWMLeD0zOHWJ87zFcj3fFosjNj3XgWIOK1nQjL1RDx 3XuF3qiSP7gId9KevGWwd1QWvrzR5pXljdGiM=
In-reply-to: <1259159857.4675.11.camel@kh-d280-64>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <c6ed1ac50911242234p12817b55r1a062d59949308bf@mail.gmail.com> <1259159857.4675.11.camel@kh-d280-64>
Sender: linux-mips-bounce@linux-mips.org
On Wed, 2009-11-25 at 08:37 -0600, Kevin Hickey wrote:
> We use HIGHMEM on the Au1300 to access any memory spaces >256 MB.  Our
> I/O area starts at 256 MB.  We just map the extra DRAM to any area
> outside the I/O space,

how to do map extra RAM to any ouside I/O space?
it is just motify:

1. arch/mips/kernel/setup.c: bootm_init()function, motity the define
"HIGHMEM_START", for me: 
#define HIGHMEM_START 0x2000,0000   //512MB

2. use add_memory_region, for me:
 add_memory_region(0x20000000, 0x40000000, BOOT_MEM_RAM); //extra 1G RAM

is it ok ?

Best,
Figo.zhang


>  enable highmem, and register it as BOOT_MEM_RAM
> with add_memory_region.  Works great.
> 
> =Kevin
> --
> Kevin Hickey
> Netlogic Microsystems
> 
> 
> On Wed, 2009-11-25 at 14:34 +0800, figo zhang wrote:
> > hi all,
> > 
> > I am using 24KEC SOC, i want to support larger more than 512MB RAM.
> > The mips32 architure  in Kseg0/Kseg1,
> > such as:
> > 0x8000,0000 ~ 0x92c0,0000  # 300MB for RAM
> > 0x92c0,0000 ~ 0xa000,0000  # 212 for I/O register
> > 
> > so, mips32 only support 300MB memory, i dont how to support more than
> > 512MB in linux-mips kernel , such as 2GB memory? it is using HIGHMEM
> > strategy
> > for kernel(ZONE_HIGHMEM)?
> > 
> > Best,
> > Figo.zhang
> 



<Prev in Thread] Current Thread [Next in Thread>