Skip to content

lmb: Add config for the number of memory and reserved regions

Patrick Delaunay u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lmb: move CONFIG_LMB in Kconfigarch/arc/include/asm/config.h arch/arm/include/asm/config.h arch/m68k/include/asm/config.h +15 more+8 -310 replies
2/5lmb: remove lmb_region.sizeinclude/lmb.h lib/lmb.c+0 -70 replies
3/5lmb: Move lmb property arrays in struct lmbinclude/lmb.h lib/lmb.c+37 -20 replies
4/5lmb: Add 2 config to define the max number of regionsinclude/lmb.h lib/Kconfig+18 -40 replies
5/5configs: stm32mp15: increase the number of reserved memory region in lmbconfigs/stm32mp15_basic_defconfig configs/stm32mp15_trusted_defconfig+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] lmb: Add config for the number of memory and reserved regions

Hi,

I propose a update of the lmb library to allow the configuration with Kconfig of the number of memory and reserved regions in lmb libary:
- CONFIG_LMB_RESERVED_REGIONS
- CONFIG_LMB_MEMORY_REGIONS

By default, I keep the default value of 8 regions.

This serie avoids issue on stm32mp15 platform,
as the kernel device tree defines many and non contiguous reserved regions.

Patrick Delaunay (5):
lmb: move CONFIG_LMB in Kconfig
lmb: remove lmb_region.size
lmb: Move lmb property arrays in struct lmb
lmb: Add 2 config to define the max number of regions
configs: stm32mp15: increase the number of reserved memory region in
lmb

 arch/arc/include/asm/config.h        |  2 --
 arch/arm/include/asm/config.h        |  1 -
 arch/m68k/include/asm/config.h       |  1 -
 arch/microblaze/include/asm/config.h |  2 --
 arch/mips/include/asm/config.h       |  1 -
 arch/nds32/include/asm/config.h      |  1 -
 arch/powerpc/include/asm/config.h    |  1 -
 arch/riscv/include/asm/config.h      |  1 -
 arch/sh/include/asm/config.h         |  2 --
 arch/x86/include/asm/config.h        |  1 -
 arch/xtensa/include/asm/config.h     |  2 --
 configs/stm32mp15_basic_defconfig    |  1 +
 configs/stm32mp15_trusted_defconfig  |  1 +
 include/configs/10m50_devboard.h     |  5 ----
 include/configs/3c120_devboard.h     |  5 ----
 include/configs/sandbox.h            |  2 --
 include/configs/x86-common.h         |  2 --
 include/image.h                      |  2 +-
 include/lmb.h                        | 34 ++++++++++++++++++++++++----
 lib/Kconfig                          | 23 +++++++++++++++++++
 lib/lmb.c                            | 14 ++++++------
 scripts/config_whitelist.txt         |  1 -
 22 files changed, 63 insertions(+), 42 deletions(-)
Signature · 1 line
2.17.1