Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759892AbcKDJ3H (ORCPT ); Fri, 4 Nov 2016 05:29:07 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:39227 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbcKDJ3F (ORCPT ); Fri, 4 Nov 2016 05:29:05 -0400 From: Matt Redfearn To: Ralf Baechle , 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 , , Yang Shi , Anna-Maria Gleixner , David Daney Subject: [PATCH 0/3] SMP Startup Improvements Date: Fri, 4 Nov 2016 09:28:55 +0000 Message-ID: <1478251738-13593-1-git-send-email-matt.redfearn@imgtec.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1326 Lines: 34 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