linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] powerpc: Ignore IPIs to offline CPUs
@ 2010-04-21  1:54 Brian King
  2010-04-21  2:04 ` Michael Neuling
  0 siblings, 1 reply; 9+ messages in thread
From: Brian King @ 2010-04-21  1:54 UTC (permalink / raw)
  To: benh; +Cc: brking, linuxppc-dev


Since there is nothing to stop an IPI from occurring to an
offline CPU, rather than printing a warning to the logs,
just ignore the IPI. This was seen while stress testing
SMT enable/disable.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 arch/powerpc/platforms/pseries/xics.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN arch/powerpc/platforms/pseries/xics.c~powerpc_xics_ipi_offline arch/powerpc/platforms/pseries/xics.c
--- linux-2.6/arch/powerpc/platforms/pseries/xics.c~powerpc_xics_ipi_offline	2010-04-20 20:46:06.000000000 -0500
+++ linux-2.6-bjking1/arch/powerpc/platforms/pseries/xics.c	2010-04-20 20:47:53.000000000 -0500
@@ -545,7 +545,8 @@ static irqreturn_t xics_ipi_dispatch(int
 {
 	unsigned long *tgt = &per_cpu(xics_ipi_message, cpu);
 
-	WARN_ON(cpu_is_offline(cpu));
+	if (cpu_is_offline(cpu))
+		return IRQ_HANDLED;
 
 	mb();	/* order mmio clearing qirr */
 	while (*tgt) {
_

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

end of thread, other threads:[~2010-04-21 23:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21  1:54 [PATCH 1/1] powerpc: Ignore IPIs to offline CPUs Brian King
2010-04-21  2:04 ` Michael Neuling
2010-04-21  3:15   ` Brian King
2010-04-21 13:35     ` Michael Ellerman
2010-04-21 13:50       ` Brian King
2010-04-21 21:03         ` Michael Neuling
2010-04-21 22:15           ` Brian King
2010-04-21 22:49             ` Michael Neuling
2010-04-21 23:33               ` Brian King

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