]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: log CPU boot modes
authorMark Rutland <mark.rutland@arm.com>
Fri, 13 Mar 2015 16:14:37 +0000 (16:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 17 Mar 2015 16:59:15 +0000 (16:59 +0000)
commit585d7ff1092dd21616f07d263441eec4c977b0db
tree77f5c7f935b06e5bfa0df3c907f0adc352c61bbc
parentb65a7b1909560b7454b08eaa56b8032d77637af9
arm64: log CPU boot modes

We currently don't log the boot mode for arm64 as we do for arm, and
without KVM the user is provided with no indication as to which mode(s)
CPUs were booted in, which can seriously hinder debugging in some cases.

Add logging to the boot path once all CPUs are up. Where CPUs are
mismatched in violation of the boot protocol, WARN and set a taint (as
we do for CPU other CPU feature mismatches) given that the
firmware/bootloader is buggy and should be fixed.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c