[PATCH v2 1/1] configs: qemu-arm raise CONFIG_NR_DRAM_BANKS
Ilias Apalodimas
ilias.apalodimas at linaro.org
Thu Apr 3 19:18:21 CEST 2025
Thanks Heinrich
On Thu, 3 Apr 2025 at 17:48, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> The number of memory banks in QEMU is not bounded by 1.
>
> In this example we have two banks:
>
> qemu-system-aarch64 \
> -machine virt \
> -nographic \
> -cpu cortex-a72 \
> -m 8G \
> -smp 8,sockets=2,cores=4,threads=1 \
> -object memory-backend-ram,id=mem0,size=4G \
> -numa node,cpus=0-3,memdev=mem0 \
> -object memory-backend-ram,id=mem1,size=4G \
> -numa node,cpus=4-7,memdev=mem1 \
> -bios u-boot.bin
>
> Use the default value defined in /Kconfig as 4.
>
> Suggested-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Adding a suggested by from Sughosh as well since he helped figuring this out
Suggested-by: Sughosh Ganu <sughosh.ganu at linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
> v2:
> correct title %s/riscv/arm/
> ---
> configs/qemu_arm64_defconfig | 1 -
> configs/qemu_arm_defconfig | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig
> index 03028c76acc..6c9d2505a69 100644
> --- a/configs/qemu_arm64_defconfig
> +++ b/configs/qemu_arm64_defconfig
> @@ -3,7 +3,6 @@ CONFIG_POSITION_INDEPENDENT=y
> CONFIG_ARCH_QEMU=y
> CONFIG_SYS_MALLOC_LEN=0x1000000
> CONFIG_BLOBLIST_SIZE_RELOC=0x2000
> -CONFIG_NR_DRAM_BANKS=1
> CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x40200000
> CONFIG_ENV_SIZE=0x40000
> CONFIG_ENV_SECT_SIZE=0x40000
> diff --git a/configs/qemu_arm_defconfig b/configs/qemu_arm_defconfig
> index e09f54e0685..2d642f86ba6 100644
> --- a/configs/qemu_arm_defconfig
> +++ b/configs/qemu_arm_defconfig
> @@ -3,7 +3,6 @@ CONFIG_ARM_SMCCC=y
> CONFIG_ARCH_QEMU=y
> CONFIG_SYS_MALLOC_LEN=0x1000000
> CONFIG_BLOBLIST_SIZE_RELOC=0x2000
> -CONFIG_NR_DRAM_BANKS=1
> CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x40200000
> CONFIG_ENV_SIZE=0x40000
> CONFIG_ENV_SECT_SIZE=0x40000
> --
> 2.48.1
>
More information about the U-Boot
mailing list