OSDN Git Service

powerpc/pseries: Fix numa FORM2 parsing fallback code
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 Nov 2021 06:49:00 +0000 (16:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 15 Nov 2021 04:46:46 +0000 (15:46 +1100)
commit302039466f6a3b9421ecb9a6a2c528801dc24a86
tree94dc6093b204baf3bde56ca6b07e7c93da0cd993
parent0bd81274e3f1195ee7c820ef02d62f31077c42c3
powerpc/pseries: Fix numa FORM2 parsing fallback code

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
arch/powerpc/mm/numa.c