All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] MIPS: BCM63XX: add SMP support
@ 2013-06-18  9:34 Jonas Gorski
  2013-06-18  9:34 ` [PATCH V2 1/2] MIPS: BCM63XX: Add SMP support to prom.c Jonas Gorski
  2013-06-18  9:34 ` [PATCH V2 2/2] MIPS: BCM63XX: Enable second core SMP on BCM6328 if available Jonas Gorski
  0 siblings, 2 replies; 7+ messages in thread
From: Jonas Gorski @ 2013-06-18  9:34 UTC (permalink / raw)
  To: linux-mips
  Cc: Ralf Baechle, John Crispin, Maxime Bizon, Florian Fainelli,
	Kevin Cernekee

Most newer BCM63XX SoCs after BCM6358 use a BMIPS4350 CPU with SMP
support. This patchset allows BCM6368 and BCM6362 to boot a SMP kernel
(both tested, as well as (not yet upstreamed) BCM63268).

BCM6328 has its second core only in a few variants enabled, but this can
be probed at runtime.

BCM6358 is intentionally skipped because it shares a single TLB for
both cores/threads, which requires implementing locking for TLB accesses,
and ain't nobody got time for that.

The internal interrupt controller supports routing IRQs to both CPUs,
and support will be added in a later patchset. For now all hardware
interrupts will go to CPU0.

Totally unscientific OpenSSL benchmarking shows a nice ~90% speed
increase when enabling the second core.

No idea about the FIXME in 1/2, never had a problem with it so I left it
in place as to have it documented.

Changes V1 -> V2:
 * removed already applied patches
 * added a check for SMP availability on BCM6328
 * changed #ifdef FOO to if (IS_ENABLED(FOO))

Jonas Gorski (1):
  MIPS: BCM63XX: Enable second core SMP on BCM6328 if available

Kevin Cernekee (1):
  MIPS: BCM63XX: Add SMP support to prom.c

 arch/mips/bcm63xx/prom.c                          |   45 +++++++++++++++++++++
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h  |    2 +
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h |    7 ++++
 3 files changed, 54 insertions(+)

-- 
1.7.10.4

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

end of thread, other threads:[~2013-06-27 14:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18  9:34 [PATCH V2 0/2] MIPS: BCM63XX: add SMP support Jonas Gorski
2013-06-18  9:34 ` [PATCH V2 1/2] MIPS: BCM63XX: Add SMP support to prom.c Jonas Gorski
2013-06-18 11:48   ` Sergei Shtylyov
2013-06-18 12:03     ` Jonas Gorski
2013-06-18  9:34 ` [PATCH V2 2/2] MIPS: BCM63XX: Enable second core SMP on BCM6328 if available Jonas Gorski
2013-06-27 14:05   ` Ralf Baechle
2013-06-27 14:12     ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.