]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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)
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

index b9f28873c155048a82801d3918cc441efeaa0d42..b9cb780200ef5e4d9ae8993619bd04db3f21c2b2 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000
index cd89571e40c204c501cf2cddc7edf92a728e2d1c..8a09d80da117eb6c6485ccfc82a86a90f5ead898 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000
index 8d5f9d9f5cc0e60fe7e165d439f0302a20d4040b..c4b6d57020bcb303e1050659b436cd96af5d7b18 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000
index c67fb9a3352187b228957d26e95944c42026a5e6..6b2fed4ad167a02505dc2a9c1542187e25e3016e 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000
index d28e9fbeceb1a21a381dd3ce07340ccddb8e613f..95f24ac3d557b431b63d514e4a88ae4e4cdcf474 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000
index 18b7e049d8642d7eed59c4ca71613b6d99ee2ca4..d2b0aec8d3cfef1e6e31e52e12c71a66d072c5a5 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0x800000
-CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
 CONFIG_ENV_SIZE=0x20000