]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:51 +0000 (09:48 +0100)
commit1c6a4fa4cdbfa98bd59df099e6bc44337d45fbb0
tree04b72bd6189b3d29f6321e49f06c6d4934ff63e6
parent6109f537e5868b611b12aed31da6affd28016612
powerpc/pseries: Fix numa FORM2 parsing fallback code

BugLink: https://bugs.launchpad.net/bugs/1952579
[ 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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/powerpc/mm/numa.c