linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] SMP Startup Improvements
@ 2016-11-04  9:28 Matt Redfearn
  2016-11-04  9:28 ` Matt Redfearn
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Matt Redfearn @ 2016-11-04  9:28 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips
  Cc: Matt Redfearn, Maciej W. Rozycki, Jiri Slaby, James Hogan,
	Qais Yousef, Marcin Nowakowski, Huacai Chen, Chris Metcalf,
	Thomas Gleixner, Florian Fainelli, Andrew Morton,
	Adam Buchbinder, Sebastian Andrzej Siewior, Paul Gortmaker,
	Paul Burton, Masahiro Yamada, Kevin Cernekee, linux-kernel,
	Yang Shi, Anna-Maria Gleixner, David Daney


This series improves the startup of SMP processors for MIPS. Firstly,
replace the use of a bitmask of CPUs to detect secondard CPUs starting
with a completion event. This change means that secondary CPUs can fail
to start, and this will be detected and handled rather than hanging the
kernel.
The second patch removes the now redundant CPU bitmask.
The third patch improves error handling in the CPS SMP implementation.
In an unlikely corner case where no online CPU is available in a core
to start a secondary VPE, previously the kernel would BUG(), this patch
causes a warning to be printed and the situation handled more
gracefully.

This series is based on v4.9-rc1 and has been tested on Boston, Malta,
SEAD3, Octeon and Pistachio Ci40 platforms.



Matt Redfearn (3):
  MIPS: smp: Use a completion event to signal CPU up
  MIPS: smp: Remove cpu_callin_map
  MIPS: smp-cps: Don't BUG if a CPU fails to start

 arch/mips/cavium-octeon/smp.c         |  1 -
 arch/mips/include/asm/smp.h           |  2 --
 arch/mips/kernel/process.c            |  4 +---
 arch/mips/kernel/smp-bmips.c          |  1 -
 arch/mips/kernel/smp-cps.c            |  7 +++++--
 arch/mips/kernel/smp.c                | 17 +++++++++--------
 arch/mips/loongson64/loongson-3/smp.c |  1 -
 7 files changed, 15 insertions(+), 18 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-11-04  9:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-04  9:28 [PATCH 0/3] SMP Startup Improvements Matt Redfearn
2016-11-04  9:28 ` Matt Redfearn
2016-11-04  9:28 ` [PATCH 1/3] MIPS: smp: Use a completion event to signal CPU up Matt Redfearn
2016-11-04  9:28   ` Matt Redfearn
2016-11-04  9:28 ` [PATCH 2/3] MIPS: smp: Remove cpu_callin_map Matt Redfearn
2016-11-04  9:28   ` Matt Redfearn
2016-11-04  9:28 ` [PATCH 3/3] MIPS: smp-cps: Don't BUG if a CPU fails to start Matt Redfearn
2016-11-04  9:28   ` Matt Redfearn

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