arm64: smp: Rework early feature mismatched detection
authorWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 14:21:13 +0000 (14:21 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 18:42:18 +0000 (18:42 +0000)
commit66f16a24512fa44680504effe908df8326885594
tree9f56153b17ba2f9d443052654a8919f3c68009fb
parent68d23da4373aba76f5300017c4746440f276698e
arm64: smp: Rework early feature mismatched detection

Rather than add additional variables to detect specific early feature
mismatches with secondary CPUs, we can instead dedicate the upper bits
of the CPU boot status word to flag specific mismatches.

This allows us to communicate both granule and VA-size mismatches back
to the primary CPU without the need for additional book-keeping.

Tested-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/smp.h
arch/arm64/kernel/head.S
arch/arm64/kernel/smp.c