From: Matt Redfearn <matt.redfearn@imgtec.com> To: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org> Cc: Matt Redfearn <matt.redfearn@imgtec.com>, "Maciej W. Rozycki" <macro@imgtec.com>, Jiri Slaby <jslaby@suse.cz>, James Hogan <james.hogan@imgtec.com>, Qais Yousef <qsyousef@gmail.com>, Marcin Nowakowski <marcin.nowakowski@imgtec.com>, Huacai Chen <chenhc@lemote.com>, Chris Metcalf <cmetcalf@mellanox.com>, Thomas Gleixner <tglx@linutronix.de>, Florian Fainelli <f.fainelli@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Adam Buchbinder <adam.buchbinder@gmail.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Paul Gortmaker <paul.gortmaker@windriver.com>, Paul Burton <paul.burton@imgtec.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Kevin Cernekee <cernekee@gmail.com>, <linux-kernel@vger.kernel.org>, Yang Shi <yang.shi@windriver.com>, Anna-Maria Gleixner <anna-maria@linutronix.de>, David Daney <david.daney@cavium.com> Subject: [PATCH 0/3] SMP Startup Improvements Date: Fri, 4 Nov 2016 09:28:55 +0000 [thread overview] Message-ID: <1478251738-13593-1-git-send-email-matt.redfearn@imgtec.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Matt Redfearn <matt.redfearn@imgtec.com> To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org Cc: Matt Redfearn <matt.redfearn@imgtec.com>, "Maciej W. Rozycki" <macro@imgtec.com>, Jiri Slaby <jslaby@suse.cz>, James Hogan <james.hogan@imgtec.com>, Qais Yousef <qsyousef@gmail.com>, Marcin Nowakowski <marcin.nowakowski@imgtec.com>, Huacai Chen <chenhc@lemote.com>, Chris Metcalf <cmetcalf@mellanox.com>, Thomas Gleixner <tglx@linutronix.de>, Florian Fainelli <f.fainelli@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Adam Buchbinder <adam.buchbinder@gmail.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Paul Gortmaker <paul.gortmaker@windriver.com>, Paul Burton <paul.burton@imgtec.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Kevin Cernekee <cernekee@gmail.com>, linux-kernel@vger.kernel.org, Yang Shi <yang.shi@windriver.com>, Anna-Maria Gleixner <anna-maria@linutronix.de>, David Daney <david.daney@cavium.com> Subject: [PATCH 0/3] SMP Startup Improvements Date: Fri, 4 Nov 2016 09:28:55 +0000 [thread overview] Message-ID: <1478251738-13593-1-git-send-email-matt.redfearn@imgtec.com> (raw) Message-ID: <20161104092855.MzOekHJ-2WSrDSCYIkoR0Sh8Wbe07NjyWMaz5sRTB20@z> (raw) 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
next reply other threads:[~2016-11-04 9:29 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-11-04 9:28 Matt Redfearn [this message] 2016-11-04 9:28 ` [PATCH 0/3] SMP Startup Improvements 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1478251738-13593-1-git-send-email-matt.redfearn@imgtec.com \ --to=matt.redfearn@imgtec.com \ --cc=adam.buchbinder@gmail.com \ --cc=akpm@linux-foundation.org \ --cc=anna-maria@linutronix.de \ --cc=bigeasy@linutronix.de \ --cc=cernekee@gmail.com \ --cc=chenhc@lemote.com \ --cc=cmetcalf@mellanox.com \ --cc=david.daney@cavium.com \ --cc=f.fainelli@gmail.com \ --cc=james.hogan@imgtec.com \ --cc=jslaby@suse.cz \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mips@linux-mips.org \ --cc=macro@imgtec.com \ --cc=marcin.nowakowski@imgtec.com \ --cc=paul.burton@imgtec.com \ --cc=paul.gortmaker@windriver.com \ --cc=qsyousef@gmail.com \ --cc=ralf@linux-mips.org \ --cc=tglx@linutronix.de \ --cc=yamada.masahiro@socionext.com \ --cc=yang.shi@windriver.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).