Bug 21664 - [Anolis23.3 RC][loongarch]修正龙芯平台下当使用fdt传参时cpu核和节点映射错误问题
Summary: [Anolis23.3 RC][loongarch]修正龙芯平台下当使用fdt传参时cpu核和节点映射错误问题
Status: RESOLVED FIXED
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: ARCH(unspecified) (show other bugs) ARCH(unspecified)
Version: 6.6.88-4
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaojuxin09
QA Contact: shuming
URL:
Whiteboard: Cherry-pick to RC2
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-05 10:39 UTC by gaojuxin09
Modified: 2025-06-06 10:23 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaojuxin09 loongson_group 2025-06-05 10:39:37 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-06-05 10:51:13 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5397
Comment 2 gaojuxin09 loongson_group 2025-06-06 09:59:52 UTC
    LoongArch: Fix early_numa_add_cpu() usage for FDT systems
    
    ANBZ: #21664
    
    commit 30cec747d6bf2c3e915c075d76d9712e54cde0a6 upstream.
    
    early_numa_add_cpu() applies on physical CPU id rather than logical CPU
    id, so use cpuid instead of cpu.
    
    Cc: stable@vger.kernel.org
    Fixes: ae9e39a2fbf5 ("LoongArch: Add all CPUs enabled by fdt to NUMA node 0")
    Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
    Signed-off-by: Juxin Gao <gaojuxin@loongson.cn>
    Link: https://gitee.com/anolis/cloud-kernel/pulls/5397