* [PATCH] powerpc: Teach oops about radix vectors
@ 2017-03-16 3:04 Michael Neuling
2017-05-03 22:18 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Michael Neuling @ 2017-03-16 3:04 UTC (permalink / raw)
To: mpe; +Cc: linuxppc-dev, mikey
Currently if we oops caused by an 0x380 or 0x480 exception, we get a
print which assumes SLB problems. With radix, these vectors have
different meanings.
This patch updates the oops message to reflect these different
meanings.
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
arch/powerpc/xmon/xmon.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 16321ad9e7..7781f78964 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1347,9 +1347,19 @@ const char *getvecname(unsigned long vec)
case 0x100: ret = "(System Reset)"; break;
case 0x200: ret = "(Machine Check)"; break;
case 0x300: ret = "(Data Access)"; break;
- case 0x380: ret = "(Data SLB Access)"; break;
+ case 0x380:
+ if (radix_enabled())
+ ret = "(Data Access Out of Range)";
+ else
+ ret = "(Data SLB Access)";
+ break;
case 0x400: ret = "(Instruction Access)"; break;
- case 0x480: ret = "(Instruction SLB Access)"; break;
+ case 0x480:
+ if (radix_enabled())
+ ret = "(Instruction Access Out of Range)";
+ else
+ ret = "(Instruction SLB Access)";
+ break;
case 0x500: ret = "(Hardware Interrupt)"; break;
case 0x600: ret = "(Alignment)"; break;
case 0x700: ret = "(Program Check)"; break;
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc: Teach oops about radix vectors
2017-03-16 3:04 [PATCH] powerpc: Teach oops about radix vectors Michael Neuling
@ 2017-05-03 22:18 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-05-03 22:18 UTC (permalink / raw)
To: Michael Neuling; +Cc: mikey, linuxppc-dev
On Thu, 2017-03-16 at 03:04:40 UTC, Michael Neuling wrote:
> Currently if we oops caused by an 0x380 or 0x480 exception, we get a
> print which assumes SLB problems. With radix, these vectors have
> different meanings.
>
> This patch updates the oops message to reflect these different
> meanings.
>
> Signed-off-by: Michael Neuling <mikey@neuling.org>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8915bcd68b2547c819b8a2a33c0981
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-03 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 3:04 [PATCH] powerpc: Teach oops about radix vectors Michael Neuling
2017-05-03 22:18 ` Michael Ellerman
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).