• Mark Rutland's avatar
    arm64: consistently log boot/secondary CPU IDs · ccaac162
    Mark Rutland authored
    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: default avatarMark 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: default avatarWill Deacon <will.deacon@arm.com>
    ccaac162
setup.c 9.72 KB