Bug 20864 - Backport support NUMA discovery through ACPI for RISC-V platforms
Summary: Backport support NUMA discovery through ACPI for RISC-V platforms
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: ARCH(unspecified) (show other bugs) ARCH(unspecified)
Version: 6.6.y-3
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zhangjing
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-07 14:39 UTC by gaorui
Modified: 2025-05-08 17:01 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaorui 2025-05-07 14:39:32 UTC
Description of problem:

The mainline kernel has already supported it in Linux-6.11.

This patch series enable RISC-V ACPI NUMA support which was based on the recently approved ACPI ECR

The code originates from the upstream, and we have made some interface modifications to adapt the Linux-6.6.

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


How reproducible:

Launch the Qemu machine
qemu-system-riscv64 -nographic
-machine virt,pflash0=pflash0,pflash1=pflash1 -smp 4 -m 8G
-blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd
-blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd
-object memory-backend-ram,size=4G,id=m0
-object memory-backend-ram,size=4G,id=m1
-numa node,memdev=m0,cpus=0-1,nodeid=0
-numa node,memdev=m1,cpus=2-3,nodeid=1
-numa dist,src=0,dst=1,val=30
-kernel linux/arch/riscv/boot/Image
-initrd buildroot/output/images/rootfs.cpio
-append "root=/dev/ram ro console=hvc0 earlycon=sbi"



Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2025-05-08 17:01:12 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5219