]> 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)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 20 Nov 2025 06:42:05 +0000 (14:42 +0800)
commitacf5de1b23b0275eb69f235c8e9f2cef19fa39a1
treed9b169f130f880265eed93849edf7914de282c55
parent1c004609fdefb48888ef98bc6e3b8fe78ae4e088
LoongArch: Fix NUMA node parsing with numa_memblks

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>
arch/loongarch/kernel/numa.c