Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b865a3b authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Stepan Moskovchenko
Browse files

edac: arm64: Check for ECC errors on panic



Check for ecc errors on panic on all processors

Change-Id: I2a68644afb2730a69aca35abb1f10899a11514dd
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
[stepanm@codeaurora.org: update argument to arm64_check_cache_ecc()]
Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
parent d12fda85
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@
#include <asm/sections.h>
#include <asm/tlbflush.h>
#include <asm/ptrace.h>
#include <asm/edac.h>

#define CREATE_TRACE_POINTS
#include <trace/events/ipi.h>
@@ -584,6 +585,7 @@ static void ipi_cpu_stop(unsigned int cpu, struct pt_regs *regs)
		pr_crit("CPU%u: stopping\n", cpu);
		show_regs(regs);
		dump_stack();
		arm64_check_cache_ecc(NULL);
		raw_spin_unlock(&stop_lock);
	}