arm64: mm: decode xFSC in mem_abort_decode()
authorMark Rutland <mark.rutland@arm.com>
Tue, 8 Jun 2021 12:37:42 +0000 (13:37 +0100)
committerWill Deacon <will@kernel.org>
Tue, 8 Jun 2021 16:35:31 +0000 (17:35 +0100)
commite0e3903f83d5e41ab7e7737ebe41ef36f578dc0a
tree028cda820188f42346c5c1f1c31ff73e35ae85da
parentfcf9dc02f83949b3261eefe03e7bb81c59bfaa9c
arm64: mm: decode xFSC in mem_abort_decode()

It would be helpful if mem_abort_decode() could decode the DFSC/IFSC, as
this can make it easier to identify common bugs (e.g. accesses which
trigger alignment faults) without having to manually decode the xFSC
value.

Decode the xFSC in mem_abort_decode().

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210608123742.11921-1-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/fault.c