linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* secondary CPU kicking on 86xx
@ 2006-06-16 14:58 Jon Loeliger
  2006-06-16 22:18 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Loeliger @ 2006-06-16 14:58 UTC (permalink / raw)
  To: linuxppc-dev


Ben and folks,

I have a question regarding your comments on our proposed
additions for the mpc86xx secondary CPU release code.
We need a way to bounce the secondary CPUs through the
reset vector at 0x100, and can either statically lay down
an address like GEMINI does today:

    --- a/arch/powerpc/kernel/head_32.S
    +++ b/arch/powerpc/kernel/head_32.S
    @@ -348,6 +348,9 @@ #define EXC_XFER_EE_LITE(n, hdlr)   \
     #if defined(CONFIG_GEMINI) && defined(CONFIG_SMP)
	    . = 0x100
	    b       __secondary_start_gemini
    +#elif defined(CONFIG_PPC_86xx) && defined(CONFIG_SMP)
    +       . = 0x100
    +       b       __secondary_hold_mpc86xx
     #else
	    EXCEPTION(0x100, Reset, unknown_exception, EXC_XFER_STD)
     #endif

Or we can dynamically rewrite a branch instruction into
the reset vector from C code during smp_kick_cpu() time
like the current powermac code does.

I have working code for both; just need opinions
and preferences on correct approach/style voiced!

Thanks,
jdl

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

* Re: secondary CPU kicking on 86xx
  2006-06-16 14:58 secondary CPU kicking on 86xx Jon Loeliger
@ 2006-06-16 22:18 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2006-06-16 22:18 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: linuxppc-dev


> Or we can dynamically rewrite a branch instruction into
> the reset vector from C code during smp_kick_cpu() time
> like the current powermac code does.
> 
> I have working code for both; just need opinions
> and preferences on correct approach/style voiced!

Second approach. #ifdef are evil and they prevent multiple board support
in the same kernel.

Ben.

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

end of thread, other threads:[~2006-06-16 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 14:58 secondary CPU kicking on 86xx Jon Loeliger
2006-06-16 22:18 ` Benjamin Herrenschmidt

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