[PATCH v3] arm64: Decode information from ESR upon mem faults

Catalin Marinas catalin.marinas at arm.com
Fri Aug 4 05:02:25 PDT 2017


On Fri, Aug 04, 2017 at 09:31:42AM +0100, Julien Thierry wrote:
> When receiving unhandled faults from the CPU, description is very sparse.
> Adding information about faults decoded from ESR.
> 
> Added defines to esr.h corresponding ESR fields. Values are based on ARM
> Archtecture Reference Manual (DDI 0487B.a), section D7.2.28 ESR_ELx, Exception
> Syndrome Register (ELx) (pages D7-2275 to D7-2280).
> 
> New output is of the form:
> [   77.818059] Mem abort info:
> [   77.820826]   Exception class = DABT (current EL), IL = 32 bits
> [   77.826706]   SET = 0, FnV = 0
> [   77.829742]   EA = 0, S1PTW = 0
> [   77.832849] Data abort info:
> [   77.835713]   ISV = 0, ISS = 0x00000070
> [   77.839522]   CM = 0, WnR = 1
> 
> Signed-off-by: Julien Thierry <julien.thierry at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will.deacon at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> ---
>  arch/arm64/include/asm/esr.h | 39 ++++++++++++++++++++++++++----------
>  arch/arm64/mm/fault.c        | 47 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 76 insertions(+), 10 deletions(-)

Queued for 4.14. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list