powerpc/pseries: Fix numa FORM2 parsing fallback code
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 Nov 2021 06:49:00 +0000 (16:49 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:41 +0000 (09:48 +0100)
commitad03b901d03be6927938d99c55b2d2d3db0e3bba
tree1619f82e42b8453eeb740ae0f270ab00a73ec5da
parentad9ade6c946ee484589081c2b324935caf1ea8b1
powerpc/pseries: Fix numa FORM2 parsing fallback code

[ Upstream commit 302039466f6a3b9421ecb9a6a2c528801dc24a86 ]

In case the FORM2 distance table from firmware is not the expected size,
there is fallback code that just populates the lookup table as local vs
remote.

However it then continues on to use the distance table. Fix.

Fixes: 1c6b5a7e7405 ("powerpc/pseries: Add support for FORM2 associativity")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211109064900.2041386-2-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/mm/numa.c