Linux MIPS Architecture development
 help / color / mirror / Atom feed
* smp8634 add memory at dram1
@ 2007-11-14  8:44 David Kuk
  2007-11-14 11:04 ` Ralf Baechle
  2007-11-14 16:09 ` David Daney
  0 siblings, 2 replies; 16+ messages in thread
From: David Kuk @ 2007-11-14  8:44 UTC (permalink / raw)
  To: linux-mips

After study about the memory configuration of sigma smp8634, i found 
some difficult to accomplish the task.

so my question is if have two 128MB ram separately under dram0 and dram1 
controller, where dram0 for linux and dram1 for video decoding. Now the 
situation is the memory for linux is not enough and video decoding can 
not use all of it's 128MB at dram1, what we plan to do is to share 64MB 
at dram1 to the linux kernel as high memory, and only reserved 64MB at 
dram1 for the video decoding.

first, in MIPS architecture, we found that the kseg0 and kseg1 are 
mapped to 0x00000000-0x20000000, which include only dram0 controller, so 
we wish to add the dram1 memory manually to the kernel using function 
add_memory_region at setup.c , after booting up result the warning that 
the memory larger than 512 need to configured the kernel support high 
memory.

then when we configure the kernel to support high memory at menu 
configure, the kernel when booting up will remind us our CPU do not 
support high memory due to cache aliases.

Both way will lead the linux can not boot up normally, so what should we 
do, is there any mis-understanding about the hardware implementation or 
MIPS design? \

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <5DF100B598199744B111FCEA5222E78A02D52DCE@sigma-exch1.sdesigns.com>]
[parent not found: <5DF100B598199744B111FCEA5222E78A01CB9F5F@sigma-exch1.sdesigns.com>]
* Re: smp8634 add memory at dram1
@ 2008-03-04  0:14 James Zipperer
  2008-03-04  0:14 ` James Zipperer
  2008-03-04  0:26 ` David Daney
  0 siblings, 2 replies; 16+ messages in thread
From: James Zipperer @ 2008-03-04  0:14 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]

 
David Kuk" <david.kuk@entone.com <mailto:david.kuk%40entone.com> >
wrote:
> Dear YH
> 
> I am sorry i have been disturbed by other issues, the memory problem
seems little bit difficult
> to me. In our case, i saw that in prom.c under mips/tango2, the
function prom_init , it shows
> that :
> memcfg_t
> *m=(memcfg_t*)KSEG1ADDR(MEM_BASE_dram_controller_0+FM_MEMCFG); 


> it's seems the kernel has hard coded to point the starting memory to
DRAM controller 0's
> starting address, if now, i have remap 64mb memory at DRAM controller
1 at remap register
> 4, The problem is come, the kernel will ignore any memory before dram
controller 0's starting
> address. Even i have add 0x0c000000--0x10000000 as boot memory, it
still think it's first
> usable pfn is at 0x10000000. 
> 
> my solution is 3 steps
> 
> 1, modify the compiler, let the linux start address moved to
0x0c000000, 
> 2. modify the YAMON, and map the DRAM 1 controller to remap register4
in YAMON stage
> 3, modify the linux, to set the two piece of memory to the kernel as
boot memory . 
> 
> it's this possible, or it have other better solution ?
> 
> thx a lot for your kindly help !
> 
> 
> best wishes
> David
 
I'm running out of memory in linux on the smp86xx and attempting to
implement this solution.  Did you ever get it to work?  No luck for me
yet.  I'm still a bit unclear why you must switch linux to run off DRAM
1 instead of leaving it on DRAM 0 and adding an additional call to
add_memory_region in prom_init for DRAM 1.  But then again, I haven't
gotten that to work yet either :)
 
Any info/patches are greatly appreciated.  Thanks!
 
-James
 

[-- Attachment #2: Type: text/html, Size: 9405 bytes --]

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

end of thread, other threads:[~2008-03-04 20:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14  8:44 smp8634 add memory at dram1 David Kuk
2007-11-14 11:04 ` Ralf Baechle
2007-11-14 12:36   ` david
2007-11-14 16:09 ` David Daney
2007-11-15 10:49   ` Gustafsson Marcus-MGU001
2007-11-15 10:49     ` Gustafsson Marcus-MGU001
2007-11-20  4:22   ` David Kuk
     [not found] <5DF100B598199744B111FCEA5222E78A02D52DCE@sigma-exch1.sdesigns.com>
2007-11-22  7:35 ` David Kuk
     [not found] <5DF100B598199744B111FCEA5222E78A01CB9F5F@sigma-exch1.sdesigns.com>
2007-12-04  2:22 ` David Kuk
  -- strict thread matches above, loose matches on Subject: below --
2008-03-04  0:14 James Zipperer
2008-03-04  0:14 ` James Zipperer
2008-03-04  0:26 ` David Daney
2008-03-04  1:59   ` James Zipperer
2008-03-04  1:59     ` James Zipperer
2008-03-04 20:51     ` James Zipperer
2008-03-04 20:51       ` James Zipperer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox