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

Commit d12fda85 authored by Patrick Daly's avatar Patrick Daly Committed by Stepan Moskovchenko
Browse files

arm64: Check for parity errors on synchronous aborts



Certain types of fatal synchronous aborts may be triggered by parity
errors in the L1 or L2 caches. Check whether a parity error occurred and
print out the relevant information.

Change-Id: Ibc306e12e95286d29757bac293bd0b69bf04ebc4
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
[stepanm@codeaurora.org: update name of external EDAC check API]
Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
parent 6a5e04b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include <asm/system_misc.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>
#include <asm/edac.h>

#include <trace/events/exception.h>

@@ -372,6 +373,7 @@ static int __kprobes do_translation_fault(unsigned long addr,
 */
static int do_bad(unsigned long addr, unsigned int esr, struct pt_regs *regs)
{
	arm64_check_cache_ecc(NULL);
	return 1;
}