powerpc/cacheinfo: Warn if cache object chain becomes unordered
authorNathan Lynch <nathanl@linux.ibm.com>
Thu, 27 Jun 2019 05:15:37 +0000 (00:15 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Jul 2020 12:53:48 +0000 (22:53 +1000)
commit6ec54363f198aae9c1343f82ff5b865546944a73
treeab59f468333813fb0173e69c0744dccd42d4c477
parent1b3da8ffaa158e9a95c19b17c14d7259d58bc0cd
powerpc/cacheinfo: Warn if cache object chain becomes unordered

This can catch cases where the device tree has gotten mishandled into
an inconsistent state at runtime, e.g. the cache nodes for both the
source and the destination are present after a migration.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190627051537.7298-5-nathanl@linux.ibm.com
arch/powerpc/kernel/cacheinfo.c