How to decode RED state exception?
I turned on my E450 over a long time and got spontaneous reboots with 4.0.0 and 4.1.0 with RED State Exceptions like this. How to decode them to see if my hardware is failing or software is broken?
CPU2 RED State Exception
CPUVersion: 0017.0011.a000.0507
UPAConfig: 0000.03d4.b544.803b
LSU-Control: 0000.0000.0000.0000
ECErrEnable: 0000.0000.0000.0007
SC_Control Register: 0000.0000.4000.0000
AFAR: 0000.01ff.f150.0000
AFSR: 0000.0000.0000.0000
DMMU SFAR: 0000.0000.0108.4b14 DMMU SFSR: 0000.0000.0000.0000 IMMU SFSR: 0000.0000.00df.3032
TL 00.0000.0000.0005 TT 00.0000.0000.0068
TPC 00.0000.0040.7900 TnPC 00.0000.0040.7904 TSTATE 00.0000.1104.1400
TL 00.0000.0000.0004 TT 00.0000.0000.0068
TPC 00.0000.0040.7900 TnPC 00.0000.0040.7904 TSTATE 00.0000.1104.1400
TL 00.0000.0000.0003 TT 00.0000.0000.0068
TPC 00.0000.0040.7900 TnPC 00.0000.0040.7904 TSTATE 00.0000.1104.1400
TL 00.0000.0000.0002 TT 00.0000.0000.0068
TPC 00.0000.0040.7900 TnPC 00.0000.0040.7904 TSTATE 00.0000.1104.1400
TL 00.0000.0000.0001 TT 00.0000.0000.0068
TPC 00.0000.0044.9e38 TnPC 00.0000.0044.9e3c TSTATE 00.0000.1100.1600
Signature · 1 line
Meelis Roos ([email protected])
From: Meelis Roos <[email protected]>
Date: Wed, 26 Aug 2015 08:22:09 +0300 (EEST)
Quoted 3 lines
I turned on my E450 over a long time and got spontaneous reboots with 4.0.0 and 4.1.0 with RED State Exceptions like this. How to decode them to see if my hardware is failing or software is broken?
The "TPC/TNPC" values are probably the most interesting from a software perspective. You can match them up to addresses in the kernel image to see where they are.
Easiest thing to do is use a 64-bit gdb and do things like:
(gdb) x/4i 0x407900
That covers the first three trap stack entries and then:
(gdb) x/4i 0x449e38
for the fourth and final one.
The RED state trap is happening because we're taking traps endless without resolving them until we are out of trap stack entries of which there are 4.