]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Fix NUMA node parsing with numa_memblks
authorBibo Mao <maobibo@loongson.cn>
Thu, 20 Nov 2025 06:42:05 +0000 (14:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:45:43 +0000 (11:45 +0100)
commit95aa37aee4c07913b0bb415bde75cebab3d7cf58
tree17a4006b8898c672702bfa6b833136c540059232
parent7e7b4fff05cd5e0769e26a6c9c649827ac9771f8
LoongArch: Fix NUMA node parsing with numa_memblks

commit acf5de1b23b0275eb69f235c8e9f2cef19fa39a1 upstream.

On physical machine, NUMA node id comes from high bit 44:48 of physical
address. However it is not true on virt machine. With general method, it
comes from ACPI SRAT table.

Here the common function numa_memblks_init() is used to parse NUMA node
information with numa_memblks.

Cc: <stable@vger.kernel.org>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/kernel/numa.c