All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix xmon for systems without MSR[RI]
@ 2011-08-08 21:25 Jimi Xenidis
  2011-08-30  6:11 ` Benjamin Herrenschmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jimi Xenidis @ 2011-08-08 21:25 UTC (permalink / raw)
  To: linuxppc-dev

From: David Gibson <dwg@au1.ibm.com>

Based on patch by David Gibson <dwg@au1.ibm.com>

xmon has a longstanding bug on systems which are SMP-capable but lack
the MSR[RI] bit.  In these cases, xmon invoked by IPI on secondary
CPUs will not properly keep quiet, but will print stuff, thereby
garbling the primary xmon's output.  This patch fixes it, by ignoring
the RI bit if the processor does not support it.

There's already a version of this for 4xx upstream, which we'll need
to extend to other RI-lacking CPUs at some point.  For now this adds
BookE processors to the mix.

Signed-off-by: Jimi Xenidis <jimix@pobox.com>
---
 arch/powerpc/xmon/xmon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 42541bb..fdb2f7e 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -340,8 +340,8 @@ int cpus_are_in_xmon(void)
 
 static inline int unrecoverable_excp(struct pt_regs *regs)
 {
-#ifdef CONFIG_4xx
-	/* We have no MSR_RI bit on 4xx, so we simply return false */
+#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
+	/* We have no MSR_RI bit on 4xx or Book3e, so we simply return false */
 	return 0;
 #else
 	return ((regs->msr & MSR_RI) == 0);
-- 
1.7.0.4

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

end of thread, other threads:[~2011-09-29 12:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08 21:25 [PATCH] powerpc: Fix xmon for systems without MSR[RI] Jimi Xenidis
2011-08-30  6:11 ` Benjamin Herrenschmidt
2011-08-30 18:08   ` Scott Wood
2011-08-31 21:08     ` Jimi Xenidis
2011-09-23 15:40 ` [PATCH v2] " Jimi Xenidis
2011-09-29 12:45   ` [PATCH] [PATCH v3] " Jimi Xenidis
     [not found] ` <1316790104-10067-1-git-send-email-jimix@pobox.com>
2011-09-23 16:32   ` [PATCH v2] " Scott Wood
2011-09-23 17:54     ` Jimi Xenidis
2011-09-23 17:56       ` Scott Wood

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.