From fd33c8808ecc39337c22fd970391baa5d4b422f2 Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Tue, 10 Apr 2018 17:34:37 +0900 Subject: [PATCH] [COMMON] lib: dss: add A73 L2MERRSR_EL1 logging Change-Id: I4dcd667181b3de4cba8dbbc3bed70a86877e319d Signed-off-by: Youngmin Nam --- lib/debug-snapshot-utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/debug-snapshot-utils.c b/lib/debug-snapshot-utils.c index 5c1302f0a554..c463dc3f9597 100644 --- a/lib/debug-snapshot-utils.c +++ b/lib/debug-snapshot-utils.c @@ -316,6 +316,10 @@ int dbg_snapshot_dump(void) } } else { switch (read_cpuid_part_number()) { + case ARM_CPU_PART_CORTEX_A73: + asm ("mrs %0, S3_1_c15_c2_3\n" : "=r" (reg1)); + pr_emerg("L2MERRSR: %016lx\n", reg1); + break; case ARM_CPU_PART_CORTEX_A57: case ARM_CPU_PART_CORTEX_A53: asm ("mrs %0, S3_1_c15_c2_2\n\t" -- 2.20.1