configs: qemu-riscv raise CONFIG_NR_DRAM_BANKS
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Apr 2025 14:28:16 +0000 (16:28 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 25 Apr 2025 08:31:29 +0000 (16:31 +0800)
commit5c8e1c46b16a92c1a0eb93d26d7c6aacda007d9e
tree1ef3ba17691648b79c8aabac9075aecd20f497a2
parent107df8b3b16f22f7ef86eeda4a5fa37d514308e7
configs: qemu-riscv raise CONFIG_NR_DRAM_BANKS

The number of memory banks in QEMU is not bounded by 1.

In this example we have two banks:

    qemu-system-riscv64 \
    -machine virt \
    -nographic \
    -m 8192 \
    -smp 8,sockets=2,cores=4,threads=1 \
    -numa node,cpus=0-3,mem=4096 \
    -numa node,cpus=4-7,mem=4096 \
    -kernel u-boot

As we will see RISC-V NUMA systems using U-Boot
we should be able to emulate these.

Use the default value defined in /Kconfig as 4.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
configs/qemu-riscv32_defconfig
configs/qemu-riscv32_smode_defconfig
configs/qemu-riscv32_spl_defconfig
configs/qemu-riscv64_defconfig
configs/qemu-riscv64_smode_defconfig
configs/qemu-riscv64_spl_defconfig