arm64: sanity checks: add ID_AA64DFR{0,1}_EL1
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 Nov 2014 13:27:43 +0000 (13:27 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Nov 2014 15:56:44 +0000 (15:56 +0000)
commit3eebdbe5fc7d64c7a6ef14cc5b8be518ffd563fa
treea0becda51d87b3dc19f00401a1ef138f0c133acd
parentefdf4211d5b103535ae22972acadf57c9fc38b30
arm64: sanity checks: add ID_AA64DFR{0,1}_EL1

While we currently expect self-hosted debug support to be identical
across CPUs, we don't currently sanity check this.

This patch adds logging of the ID_AA64DFR{0,1}_EL1 values and associated
sanity checking code.

It's not clear to me whether we need to check PMUVer, TraceVer, and
DebugVer, as we don't currently rely on these fields at all.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpu.h
arch/arm64/kernel/cpuinfo.c