summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2022-03-26 11:47:40 -0300
committerAndrejs Cainikovs <andrejs.cainikovs@toradex.com>2022-09-23 13:58:05 +0200
commit0fb88d15dd73db94a8227e6043d6fa6ac331a5c0 (patch)
treea30c45d50514956d12053ce00e9c18e031e536f3
parentf83407fb55f8747e9120fc502d8e06821d588dd4 (diff)
imx8/ls10xx: Use a sane SYS_MALLOC_F_LEN default
When adding new features to imx8m boards, such as DM clock support, the malloc area can be exhausted. To avoid such issue, provide a reasonable default for the SYS_MALLOC_F_LEN size. Quoting Tom Rini: "This seems to be an area where everyone is either: - Kicking the value up a bit for themselves - Having hard to figure out problems booting the platform because it's too small a value until they see someone else picked a larger value. So lets raise these a bit and get some acks, please." Upstream-Status: Backported [545eceb52062cdc995c45b9581174b7ae66b0e6f] Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Fabio Estevam <festevam@denx.de> Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon, imx8mn-beacon Tested-by: Heiko Thiery <heiko.thiery@gmail.com> (cherry picked from commit 545eceb52062cdc995c45b9581174b7ae66b0e6f)
-rw-r--r--Kconfig8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kconfig b/Kconfig
index da1444fc7b..2c5b703566 100644
--- a/Kconfig
+++ b/Kconfig
@@ -232,10 +232,10 @@ config SYS_MALLOC_F_LEN
depends on SYS_MALLOC_F
default 0x1000 if AM33XX
default 0x4000 if SANDBOX
- default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
- ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
- ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
- ARCH_LS1046A || ARCH_QEMU || ARCH_SUNXI || ARCH_OWL)
+ default 0x2000 if (ARCH_MX7 || ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
+ ARCH_QEMU || ARCH_SUNXI || ARCH_OWL)
+ default 0x10000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_LS1012A || \
+ ARCH_LS1021A || ARCH_LS1043A || ARCH_LS1046A)
default 0x400
help
Before relocation, memory is very limited on many platforms. Still,