]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48db0333f3cfd3bc148dc5b879e00d6aacfa78b5
tree94dc6093b204baf3bde56ca6b07e7c93da0cd993
parent865f2afb497ab7bbb35c7b9e0bfc826e465a6a9c
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: 6e82accae6bf ("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