arm64: consistently log boot/secondary CPU IDs
authorMark Rutland <mark.rutland@arm.com>
Wed, 27 Sep 2017 13:50:38 +0000 (14:50 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 4 Oct 2017 12:42:52 +0000 (13:42 +0100)
commitccaac16287f9b46c58777f5538c4ba3a9d4c3aeb
tree35d7b99ed7ee1f21313f8288d5525e3a7926818c
parentb65423ed466fb0494ef81a2c4177fa151732a33a
arm64: consistently log boot/secondary CPU IDs

Currently we inconsistently log identifying information for the boot CPU
and secondary CPUs. For the boot CPU, we log the MIDR and MPIDR across
separate messages, whereas for the secondary CPUs we only log the MIDR.

In some cases, it would be useful to know the MPIDR of secondary CPUs,
and it would be nice for these messages to be consistent.

This patch ensures that in the primary and secondary boot paths, we log
both the MPIDR and MIDR in a single message, with a consistent format.
the MPIDR is consistently padded to 10 hex characters to cover Aff3 in
bits 39:32, so that IDs can be compared easily.

The newly redundant message in setup_arch() is removed.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Al Stone <ahs3@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
[will: added '0x' prefixes consistently]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c