Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Appendix D: ESR and fault-status decode card

This card is for decoding ESR_ELx with a crash dump open. 3.2 explains when ESR, ELR and FAR are written and valid. 5.8 explains the abort fields and the fault-address registers. 18.1 works through five complete dumps using this card. Values were checked against the ESR_EL1/ESR_EL2 register XML. When a class here says “see DDI0487”, its ISS has more structure than a card can hold.

Layout and decode order

 63      56 55          32 31    26 25  24                     0
+----------+--------------+--------+---+------------------------+
|   RES0   |     ISS2     |   EC   |IL |          ISS           |
+----------+--------------+--------+---+------------------------+
  1. Which ESR. The exception went to the EL whose ESR_ELx you are reading. “Lower EL” and “same EL” in the class names are relative to that EL.
  2. EC = ESR[31:26], then pick the ISS layout below.
  3. IL = ESR[25] is 1 for every A64 instruction and for exceptions not tied to an instruction length (SError, Instruction Aborts, alignment faults, most debug exceptions). It is 0 only when the trapped or faulting instruction is a 16-bit T32 instruction.
  4. ISS = ESR[24:0], then ISS2 = ESR[55:32], which only some classes use.
  5. The address registers, only where the class says they are valid: FAR_ELx (VA), HPFAR_EL2 (IPA), PFAR_ELx (PA, FEAT_PFAR) (5.8).

A quick way to read a 32-bit value: ESR >> 26 is the EC, and with IL = 1 the top byte of the value is (EC << 2) | 0b10. So 0x96… is EC 0x25, 0x92… is 0x24, 0x86… is 0x21, 0x62… is 0x18 and 0xBE… is 0x2F.

Exception classes

“Taken to” lists the ELs at which an exception of this class can be reported. AArch32-only classes are listed for completeness at the end.

ECESR (IL = 1, ISS = 0)ClassTaken toISSSection
0x000x02000000Unknown reason: UNDEFINED instruction, or an access that is UNDEFINED at this ELEL1, EL2, EL3RES02.3, 17.3
0x010x06000000 + ISSTrapped WFI, WFE, WFIT, WFETEL1, EL2, EL3below10.4, 11.1
0x070x1E000000Access to SME, SVE, Advanced SIMD or FP trapped by CPACR_EL1, CPTR_EL2 or CPTR_EL3EL1, EL2, EL3CV/COND for AArch32; otherwise no detail15.3
0x090x26000000PAuth instruction trapped by HCR_EL2.API or SCR_EL3.APIEL2, EL3RES013.1
0x0A0x2A000000 + ISSLD64B/ST64B* trapped (FEAT_LS64)EL1, EL2, EL30x0 ST64BV, 0x1 ST64BV0, 0x2 LD64B/ST64B; recent issues add 0x3/0x4 for trapped TSB CSYNC/PSB CSYNC10.3
0x0D0x36000000 + BTYPEBranch Target exception (FEAT_BTI)EL1, EL2, EL3BTYPE [1:0]13.1
0x0E0x3A000000Illegal Execution state (PSTATE.IL was set by an illegal exception return)EL1, EL2, EL3RES03.2
0x140x52000000 + ISSTrapped MRRS, MSRR, SYSP (FEAT_SYSREG128, FEAT_SYSINSTR128)EL1, EL2, EL3like 0x18, with a second register; see DDI04872.5, 5.7
0x150x56000000 + immSVC from AArch64EL1, EL2, EL3imm16 [15:0]3.1
0x160x5A000000 + immHVC from AArch64EL2, EL3imm16 [15:0]11.1
0x170x5E000000 + immSMC from AArch64, at EL3, or trapped to EL2 by HCR_EL2.TSCEL2, EL3imm16 [15:0]12.3
0x180x62000000 + ISSTrapped MSR, MRS or System instructionEL1, EL2, EL3below2.5, 17.3
0x190x66000000SVE access trapped by CPACR_EL1.ZEN, CPTR_EL2.ZEN/TZ or CPTR_EL3.EZEL1, EL2, EL3RES015.3
0x1A0x6A000000 + ISSTrapped ERET, ERETAA, ERETAB (FEAT_NV, or FEAT_PAuth with HCR_EL2.API == 0)EL2ERET vs ERETAx, and key; see DDI048711.2
0x1B–TSTART access (FEAT_TME)EL1, EL2, EL3see DDI0487–
0x1C0x72000000 + keyPAC authentication failure (FEAT_FPAC)EL1, EL2, EL3[1]: 0 instruction key, 1 data key; [0]: 0 A key, 1 B key13.1, 18.1
0x1D0x76000000 + SMTCSME trap or illegal SME useEL1, EL2, EL3SMTC [2:0], below15.3
0x1E0x7A000000 + ISSGranule Protection Check exception (FEAT_RME)EL3GPC fault status, level, S2PTW, InD, WnR; see DDI048712.4
0x1F–IMPLEMENTATION DEFINEDEL3IMPLEMENTATION DEFINEDcore TRM
0x200x82000000 + IFSCInstruction Abort from a lower ELEL1, EL2, EL3below5.8
0x210x86000000 + IFSCInstruction Abort, same ELEL1, EL2, EL3below5.8
0x220x8A000000PC alignment faultEL1, EL2, EL3RES0 (FAR holds the PC)3.2
0x240x92000000 + ISSData Abort from a lower ELEL1, EL2, EL3below5.8
0x250x96000000 + ISSData Abort, same ELEL1, EL2, EL3below5.8
0x260x9A000000SP alignment faultEL1, EL2, EL3RES03.1
0x270x9E000000 + ISSMemory Operation exception (FEAT_MOPS)EL1, EL2, EL3MemInst [24], isSETG [23], Options [22:19], FromEpilogue [18], WrongOption [17], OptionA [16], destreg [14:10], srcreg [9:5], sizereg [4:0]2.3
0x2C0xB2000000 + ISSTrapped floating-point exception (AArch64), with FPCR trap enables setEL1, EL2, EL3exception flags; see DDI048715.1
0x2D0xB6000000 + ISSGCS exception (FEAT_GCS)EL1, EL2, EL3ExType [23:20], below13.2
0x2F0xBE000000 + ISSSErrorEL1, EL2, EL3below3.4, 16.8
0x30, 0x310xC2000022, 0xC6000022Breakpoint, lower / same ELEL1, EL2IFSC 0x2216.1
0x32, 0x330xCA000022, 0xCE000022Software Step, lower / same ELEL1, EL2ISV [24], EX [6], IFSC 0x2216.1
0x34, 0x350xD2000022, 0xD6000022Watchpoint, lower / same ELEL1, EL2below16.1
0x3C0xF2000000 + immBRK (AArch64)EL1, EL2, EL3Comment [15:0]16.1
0x3D0xF6000000PMU exception (FEAT_EBEP)EL1, EL2, EL3SYNC [0] (FEAT_SEBEP: 1 = taken synchronously because PSTATE.PPEND was set); rest RES02.4

AArch32 classes, seen only when a lower EL runs AArch32: 0x03/0x04 (MCR/MRC, MCRR/MRRC to CP15), 0x05/0x06/0x0C (CP14 accesses, LDC/STC), 0x08 (VMRS trapped by HCR_EL2.TID0/TID3, to EL2), 0x11/0x12/0x13 (SVC/HVC/SMC), 0x28 (trapped FP exception), 0x38 (BKPT) and 0x3A (Vector Catch, to EL2). Their ISS carries CV [24] and COND [23:20] for conditional instructions. All other EC values are reserved, and an unexpected one usually means the value being decoded is not an ESR (for example a corrupted save area).

ISS layouts by class

0x18: trapped MSR, MRS, System instruction

ISS bits[21:20][19:17][16:14][13:10][9:5][4:1][0]
FieldOp0Op2Op1CRnRtCRmDirection: 1 = read (MRS), 0 = write

The fields are not in instruction order (2.5). Rebuild the name as S<Op0>_<Op1>_C<CRn>_C<CRm>_<Op2> and look it up. Op0 = 1 is a System instruction (DC, IC, TLBI, AT), and Op0 = 3 is a System register. Worked example: ISS 0x360820 is Op0 3, Op2 3, Op1 0, CRn 2, Rt 1, CRm 0, a write: MSR TCR2_EL1, X1 (18.1). Bits [24:22] are RES0.

0x01: trapped WFx

TI [1:0]: 0b00 WFI, 0b01 WFE, 0b10 WFIT, 0b11 WFET. RV [2] = 1 when RN [9:5] holds the timeout register (FEAT_WFxT). From AArch64, CV [24] = 1 and COND [23:20] = 0b1110, so a trapped AArch64 WFI reads 0x07E00000 and a trapped WFE reads 0x07E00001.

0x1D: SME

SMTC [2:0]: 0b000 access trapped by CPACR_EL1.SMEN, CPTR_EL2.SMEN/TSM or CPTR_EL3.ESM; 0b001 Advanced SIMD, SVE or SVE2 instruction illegal because PSTATE.SM == 1; 0b010 SME instruction illegal because PSTATE.SM == 0; 0b011 instruction illegal because PSTATE.ZA == 0; 0b100 ZT0 access trapped by SMCR_ELx.EZT0 (FEAT_SME2).

0x2D: GCS

ExType [23:20]: 0b0000 GCS data check (a return address did not match the GCS), 0b0001 EXLOCK exception, 0b0010 trapped GCSSTR/GCSSTTR. For a data check, IT [4:0] gives the instruction type (0b00000 RET without PAC, 0b00010/0b00011 RETAA/RETAB, 0b00001 GCSPOPM, and others) and Rn [9:5] the register (13.2).

0x20, 0x21: Instruction Abort

BitsFieldMeaning
[12:11]SETWith FEAT_RAS, error state of a synchronous External abort
[10]FnVFAR not valid
[9]EAIMPLEMENTATION DEFINED External abort classification
[7]S1PTWStage 2 fault on a stage 1 table walk
[5:0]IFSCFault status, table below

0x24, 0x25: Data Abort

BitsFieldMeaning
[24]ISV[23:14] hold a valid instruction syndrome
[23:22]SASAccess size: byte, halfword, word, doubleword
[21]SSEThe load sign-extends
[20:16]SRTTransfer register
[15]SF64-bit register
[14]ARAcquire/release semantics
[13]VNCRFault on a VNCR_EL2-redirected access (FEAT_NV2)
[12:11]SET (or LST for LS64 faults)Error state of a synchronous External abort (FEAT_RAS)
[10]FnVFAR not valid
[9]EAIMPLEMENTATION DEFINED External abort classification
[8]CMCache maintenance or AT instruction
[7]S1PTWStage 2 fault on a stage 1 table walk
[6]WnR1 = write. For a cache maintenance fault (CM = 1) it is 1
[5:0]DFSCFault status, table below

ISV = 1 is mainly a stage 2 feature: a hypervisor gets a decoded syndrome for a single-register load or store without writeback, so it can emulate the MMIO access without fetching the instruction. It is 0 for faults on stage 1 walks, External aborts with FEAT_RAS, MOPS instructions and Allocation Tag accesses, and the LS64 instructions are a special case. Do not rely on ISV in an EL1 or EL3 handler.

ISS2 [55:32] for Data Aborts: Xs [4:0] (status register of ST64BV/ST64BV0), DirtyBit [5] (FEAT_S1PIE), Overlay [6] (a permission-overlay fault, FEAT_S1POE), AssuredOnly [7] (FEAT_THE), GCS [8] (the access was a GCS access), TagAccess [9] (FEAT_MTE_PERM), TnD [10] (tag, not data), HDBSSF [11] (FEAT_HDBSS). A Permission fault is ambiguous until you have read ISS2: the same DFSC 0x0F can be an ordinary AP/XN failure, an overlay failure or a GCS-page failure (5.5, 13.2).

0x34, 0x35: Watchpoint

WPT [23:18] and WPTV [17] give the watchpoint number (FEAT_Debugv8p2), WPF [16] and FnP [15] qualify the address, FnV [10], CM [8], WnR [6], and DFSC [5:0] = 0x22 (Debug exception). FAR holds an address that the access touched, which is not necessarily the watched address. ISS2 GCS [8] (FEAT_GCS) marks a watchpoint hit by a GCS data access.

0x2F: SError

BitsFieldMeaning
[24]IDS1 = bits [23:0] are IMPLEMENTATION DEFINED (read the core TRM). 0 = the architected fields below
[13]IESBSynchronized by an implicit error synchronization event and taken immediately (FEAT_IESB)
[12:10]AET0b000 Uncontainable (UC), 0b001 Unrecoverable (UEU), 0b010 Restartable (UEO), 0b011 Recoverable (UER), 0b110 Corrected (CE)
[9]EAIMPLEMENTATION DEFINED classification
[5:0]DFSC0x00 uncategorized, 0x11 asynchronous SError. Other values reserved

FEAT_RASv2 and FEAT_PFAR add, when DFSC == 0x11: ELS [18], WU [17:16], VFV [15] (FAR valid), PFV [14] (PFAR valid), WnRV [7] and WnR [6].

AET, EA and IESB are only valid when DFSC == 0x11, and all of them require FEAT_RAS. So 0xBE000011 means “an architected, uncategorized-by-source, Uncontainable asynchronous SError”. The PE has said all it can, and the error records hold the rest (3.4, 16.7, 18.3).

DFSC and IFSC values

The same 6-bit encoding is used by DFSC, IFSC, PAR_EL1.FST and several other fault-status fields. “Data only” marks values that cannot appear in an IFSC.

ValueFaultLevel or noteRequires
0x00–0x03Address size faultlevel 0 (or the TTBR itself) to level 3–
0x04–0x07Translation faultlevel 0–3–
0x08Access flag faultlevel 0FEAT_LPA2
0x09–0x0BAccess flag faultlevel 1–3–
0x0CPermission faultlevel 0FEAT_LPA2
0x0D–0x0FPermission faultlevel 1–3–
0x10Synchronous External abort, not on a translation table walk or hardware update––
0x11Synchronous Tag Check Fault (data only). In an SError ISS, 0x11 instead means “asynchronous SError”–FEAT_MTE2
0x12Synchronous External abort on a walk or hardware updatelevel −2FEAT_D128
0x13Synchronous External abort on a walk or hardware updatelevel −1FEAT_LPA2
0x14–0x17Synchronous External abort on a walk or hardware updatelevel 0–3–
0x18Synchronous parity or ECC error on the access, not on a walk–only without FEAT_RAS
0x1BSynchronous parity or ECC error on a walklevel −1FEAT_LPA2, only without FEAT_RAS
0x1C–0x1FSynchronous parity or ECC error on a walklevel 0–3only without FEAT_RAS
0x21Alignment fault (data only; a misaligned PC is EC 0x22)––
0x22Data Abort: Granule Protection Fault on a walk, level −2. Debug classes: Debug exceptioncontext-dependentFEAT_D128 and FEAT_RME
0x23Granule Protection Fault on a walk or hardware updatelevel −1FEAT_RME, FEAT_LPA2
0x24–0x27Granule Protection Fault on a walk or hardware updatelevel 0–3FEAT_RME
0x28Granule Protection Fault, not on a walk–FEAT_RME
0x29Address size faultlevel −1FEAT_LPA2
0x2ATranslation faultlevel −2FEAT_D128
0x2BTranslation faultlevel −1FEAT_LPA2
0x2CAddress size faultlevel −2FEAT_D128
0x30TLB conflict abort––
0x31Unsupported atomic hardware update fault (data only)–FEAT_HAFDBS
0x34IMPLEMENTATION DEFINED fault (Lockdown)––
0x35IMPLEMENTATION DEFINED fault (Unsupported Exclusive or Atomic access, data only)––

All other values are reserved. A walk-level fault reports the level of the descriptor that caused it: a level 0 Translation fault means the walk stopped at level 0 (or the VA was outside the TxSZ range), not that the leaf is at level 0.

Bring-up note: Software that decodes the level as DFSC & 0x3 gets levels −1 and −2 wrong, because those encodings (0x29–0x2C, 0x12, 0x13, 0x1B, 0x22, 0x23) are not in the 4-value groups. Decode by table, as Linux’s ESR_ELx_FSC_* helpers do, if the platform can have FEAT_LPA2 or FEAT_D128 enabled.

Fault signatures

The first suspect for each common syndrome during bring-up, with the section that explains the diagnosis. The ESR values assume IL = 1.

SyndromeTypical contextFirst suspectSection
EC 0x00 (0x02000000) at EL1 on an MRS/MSR that the core should supportLinux early boot, cpufeature probeEL3 left the feature’s enable bit at 0, and a recent TF-A injected the trap back as an UNDEF. Older TF-A shows the next row instead17.3
EC 0x18 in ESR_EL3, ISS names a system registerEL3 panic during kernel bootMissing SCR_EL3/CPTR_EL3/MDCR_EL3 enable for that register’s feature17.3, 18.1
EC 0x18 in ESR_EL2Guest boot under a hypervisorHCR_EL2/HCRX_EL2/fine-grained trap, or HCRX_EL2 behaving as 0 because SCR_EL3.HXEn == 011.1, 18.1
EC 0x07 (0x1E000000) on the first FP/SIMD instructionmemcpy, printf or compiler-vectorised code in firmwareCPTR_EL3.TFP == 1 or CPACR_EL1.FPEN not enabled; or firmware built without -mgeneral-regs-only15.3
EC 0x19 or 0x1DFirst SVE/SME use by the OS or the Secure worldCPTR_EL3.EZ/ESM, ZCR_EL3/SMCR_EL3, per-world CPTR_EL315.3, 17.3
EC 0x21, IFSC 0x04–0x07, FAR = the instruction after the MMU-enable MSRFirst instruction after SCTLR_ELx.M = 1Enabling code not identity-mapped, or wrong TTBR0/T0SZ5.8, 9.3, 18.3
EC 0x25, DFSC 0x04–0x07First data access after MMU-onTTBR0/TTBR1 range, EPDn, or page tables not cleaned to the PoC while caches were off5.8, 9.3
EC 0x25, DFSC 0x00–0x03SameTCR_ELx.PS/IPS smaller than the table or output address5.8
EC 0x25, DFSC 0x09–0x0BHand-built tablesDescriptor AF (bit 10) clear, hardware AF not enabled5.6
EC 0x25, DFSC 0x0D–0x0FWrite to a page that should be writableAP bits, PAN, WXN, or (read ISS2) an overlay or GCS-page fault5.5
EC 0x25, DFSC 0x21 (0x96000021/0x96000061)Early C with MMU offData accesses are Device-nGnRnE with the MMU off; unaligned access from compiler code5.8, 18.1
EC 0x25, DFSC 0x10MMIO accessUnclocked, powered-down or unmapped peripheral; interconnect or firewall error response3.4, 16.7
DFSC 0x14–0x17Any walkPage tables in DRAM that is not trained yet, or behind a firewall for the walk’s PAS5.8
DFSC 0x30Remapping a live regionBreak-before-make violation (block to table, or output address change)9.2
DFSC 0x35Spinlock before the MMU and caches are onExclusive or atomic on Device or Non-cacheable memory10.1, 10.4
DFSC 0x11MTE-enabled kernel or allocatorA real tag mismatch, or tags not initialised for the granule (STG/DC GZVA missing)13.5
DFSC 0x23–0x28, or EC 0x1E in ESR_EL3RME system, first Realm or Non-secure access to a granuleGPT entry marks the PA for another PAS, or GPCCR_EL3/GPTBR_EL3 set up wrong12.4
EC 0x0D (0x3600000n)Indirect branch into assembly or a JIT regionTarget lacks a BTI landing pad on a guarded page (n is the BTYPE)13.1, 18.1
EC 0x1C (0x72000000–0x72000003)Function returnCorrupted LR or stack, or PAuth keys changed under the code (missing key save/restore across a world switch)13.1, 17.3
EC 0x2D, ExType = 0Function return with GCS enabledReturn address does not match the GCS: stack corruption, or unmatched setjmp/longjmp-style code13.2
EC 0x22RET or ERETCorrupted LR or ELR_ELx (often a smashed stack)3.2
EC 0x26Handler entry or early CSP not 16-byte aligned while SCTLR_ELx.SA == 13.1
EC 0x0EInstruction after an ERETIllegal exception return: SPSR.M names an EL that is not implemented or enabled, or an execution state that EL cannot use3.2, 2.1
EC 0x2F, 0xBE000011After enabling caches, or at the first DRAM accessUncontainable error from the memory system: DRAM not ready, or a write-back to bad memory3.4, 18.3
EC 0x2F with IDS = 1 (0xBF……)AnyIMPLEMENTATION DEFINED syndrome: decode from the core TRM16.7
The same EC repeating, ELR inside the vector tableAny early handlerRecursive exception: the handler itself faults (stack unmapped, VBAR wrong)18.3

Validation note: A directed test for each class above should check three things, not one: the EC, the ISS fields the class defines (for example WnR, S1PTW and the level for aborts, Op0…Rt for 0x18), and the address registers’ validity (FAR written or not, FnV). Syndrome bugs in RTL often get the EC right and an ISS field wrong, such as a reported level off by one for a level −1 walk, or WnR set for a read-modify-write atomic. Run the same test with the fault taken to EL1, EL2 and EL3 to cover each ESR_ELx (18.5).