Messages in this thread Patch in this message | | | From | Tyler Baicar OS <> | Subject | [PATCH RFC 3/4] arm64: traps: Add RAS extension system register check to serror handling | Date | Tue, 2 Jul 2019 16:51:52 +0000 |
| |
On systems that support the ARM RAS extension, serror interrupt syndrome information could be captured in the core's RAS extension system registers. When handling serrors, check the RAS system registers for error syndrome information.
Signed-off-by: Tyler Baicar <baicar@os.amperecomputing.com> --- arch/arm64/kernel/traps.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 985721a..aacfa51 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -40,6 +40,7 @@ #include <asm/exception.h> #include <asm/system_misc.h> #include <asm/sysreg.h> +#include <asm/ras.h> static const char *handler[]= { "Synchronous Abort", @@ -897,6 +898,8 @@ asmlinkage void do_serror(struct pt_regs *regs, unsigned int esr) if (!was_in_nmi) nmi_enter(); + arch_arm_ras_report_error(); + /* non-RAS errors are not containable */ if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(regs, esr)) arm64_serror_panic(regs, esr); -- 1.8.3.1
| |