linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PowerPC + SMP
@ 2005-04-25 21:10 Stuart Yoder
  2005-04-25 21:39 ` Kumar Gala
  0 siblings, 1 reply; 12+ messages in thread
From: Stuart Yoder @ 2005-04-25 21:10 UTC (permalink / raw)
  To: linuxppc-embedded

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

Hi.
 
I am trying to figure out where in the PowerPC kernel the HID1 register
is updated to enable bits dealing with cache coherency in an SMP system.
Grepping through the arch/ppc source does not reveal much.
 
I have two 7447A processors and somewhere the ABE and SYNCBE bits in
HID1 need to be turned on to enable cache coherency.   Is supposed to
happen in the bootloader prior to the kernel running??
 
Thanks,
Stuart Yoder

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* PowerPC + SMP
@ 2005-04-25 21:11 Stuart Yoder
  2005-04-26  3:36 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 12+ messages in thread
From: Stuart Yoder @ 2005-04-25 21:11 UTC (permalink / raw)
  To: linuxppc-dev

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

Hi.
 
I am trying to figure out where in the PowerPC kernel the HID1 register
is updated to enable bits dealing with cache coherency in an SMP system.
Grepping through the arch/ppc source does not reveal much.
 
I have two 7447A processors and somewhere the ABE and SYNCBE bits need
to be turned on to enable cache coherency.   Is supposed to happen in
the bootloader prior to the kernel running??
 
Thanks,
Stuart Yoder

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: PowerPC + SMP
@ 2005-04-27  4:37 Frank
  0 siblings, 0 replies; 12+ messages in thread
From: Frank @ 2005-04-27  4:37 UTC (permalink / raw)
  To: Stuart Yoder, 'Wolfgang Denk'; +Cc: 'linuxppc-dev list'

--- Stuart YoYoderststuartoyoderoconformativeom> wrote:
> 
> We've run into a few issues with U-boot, but they are not
> ununsolveable
> 
> -it doesn't provide an alternate execution path for the 2nd
> CPU when it
> is started by the kernel

You have to set a flag or something to sync. the booting process
of the other cpu's

> -U-boot needs to detect which CPU is executing
> -U-boot on the 2nd CPU should not execute any platform/board
> specific

We did this by having the cpcpuead a register that is updated as
each cpcpuomes up.

> setup code-- this is stuff you only want to do once
> -U-boot on the 2nd CPU cannot relocate itself to SDSDRAMecause
> Linux is
> already running there and assumes it owns all of memory

You have to carve the memory up by dividing the total memory by
the number of cpus. This can be done at complie time with a
#define. I did this in board_init_f I believe. We had a quad
7450 board with each one booting in sequence and orchestrated by
the master CPU (cpu 0). The master held each one in reset until
the previous cpu reported in. Unfortunately, I don't work for
the company anymore and don't have access to the source.
BTW, it was done right because it worked.:-)

> -it needs some way of getting to the Linux kernel entry point
> for
> secondary CPUs
> -it also appears that it should set up HID1 (other stuff??)
> for SMSMP> systems
> 
> Stuart
> 
> > -----Original Message-----
> > From: Wolfgang DeDenkmamailtodwdedenxede
> > Sent: Tuesday, April 26, 2005 12:35 PM
> > To: Stuart YoYoder> > Cc: 'lilinuxppcedevist'
> > Subject: Re: PoPowerPC SMSMP
> > 
> > 
> > In message <054301c54a6f$d1cf82b0$2f010a0a@foundation.com>
> you wrote:
> > > 
> > > I am using U-boot on my SMSMPystem and U-boot is not
SMSMP> aware.  Do 
> > > you
> > 
> > Strictly speaking this statement is wrong.
> > 
> > So far I am not aware of a port of U-Boot to a SMSMPystem.  
> > If  there was  such  a  port, and if it was properly done, 
> > then U-Boot probably _were_ SMSMPware.
> > 
> > Best regards,
> > 
> > Wolfgang DeDenk> > 
> > -- 
> > Software Engineering:  Embedded and ReRealtimeystems, 
> Embedded Linux
> > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: 
> > wdwdedenxedevery program has at least one bug and can be 
> > shortened by  at  least one  instruction  --  from  which,  
> > by induction, one can deduce that every program can be 
> > reduced to one instruction which doesn't work.
> > 
> > 
> > 
> 
> 
> _______________________________________________
> LiLinuxppcedevailing list
> LiLinuxppcedevzozlabsrorg>
hthttps/ozozlabsrorgailman/lilistinfoilinuxppcedev> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

end of thread, other threads:[~2005-04-27  4:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 21:10 PowerPC + SMP Stuart Yoder
2005-04-25 21:39 ` Kumar Gala
2005-04-26 19:16   ` Stuart Yoder
2005-04-26 19:23     ` Kumar Gala
  -- strict thread matches above, loose matches on Subject: below --
2005-04-25 21:11 Stuart Yoder
2005-04-26  3:36 ` Benjamin Herrenschmidt
2005-04-26 14:54   ` Stuart Yoder
2005-04-26 17:35     ` Wolfgang Denk
2005-04-26 19:07       ` Stuart Yoder
2005-04-26 22:27     ` Benjamin Herrenschmidt
2005-04-26 23:04     ` Paul Mackerras
2005-04-27  4:37 Frank

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).