diff mbox series

[1/3] Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN

Message ID 20220429080149.29344-1-peng.fan@oss.nxp.com
State Superseded
Delegated to: Stefano Babic
Headers show
Series [1/3] Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN | expand

Commit Message

Peng Fan (OSS) April 29, 2022, 8:01 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

set SPL_SYS_MALLOC_F_LEN to 0x2000
set SYS_MALLOC_F_LEN to 0x10000

This is to prepare enable CLK_IMX8MQ for i.MX8MQ

Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Heiko Thiery June 10, 2022, 6:13 p.m. UTC | #1
Hi Peng,

Am Fr., 29. Apr. 2022 um 09:20 Uhr schrieb Peng Fan (OSS)
<peng.fan@oss.nxp.com>:
>
> From: Peng Fan <peng.fan@nxp.com>
>
> set SPL_SYS_MALLOC_F_LEN to 0x2000
> set SYS_MALLOC_F_LEN to 0x10000
>
> This is to prepare enable CLK_IMX8MQ for i.MX8MQ
>
> Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency")
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

The kontron pitx-imx8m board (imx8mq SoC) does not start properly in
since 4eb82c2e56a7c. This is still valid in the 2022.7-rcX. I see in
patchwork that this commit is superseded. Are there others available
that will fix your mentioned problem?

> ---
>  Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Kconfig b/Kconfig
> index bdae59e06f4..4559b627707 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -257,7 +257,7 @@ config SYS_MALLOC_F_LEN
>         default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \
>                           ROCKCHIP_RK3399
>         default 0x8000 if RCAR_GEN3
> -       default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ) || \
> +       default 0x10000 if ARCH_IMX8 || ARCH_IMX8M || \
>                            ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
>                            ARCH_LS1046A
>         default 0x2000
> @@ -285,6 +285,7 @@ config SPL_SYS_MALLOC_F_LEN
>         depends on SYS_MALLOC_F && SPL
>         default 0 if !SPL_FRAMEWORK
>         default 0x2800 if RCAR_GEN3
> +       default 0x2000 if IMX8MQ
>         default SYS_MALLOC_F_LEN
>         help
>           In SPL memory is very limited on many platforms. Still,
> --
> 2.36.0
>

Thanks
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index bdae59e06f4..4559b627707 100644
--- a/Kconfig
+++ b/Kconfig
@@ -257,7 +257,7 @@  config SYS_MALLOC_F_LEN
 	default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \
 			  ROCKCHIP_RK3399
 	default 0x8000 if RCAR_GEN3
-	default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ) || \
+	default 0x10000 if ARCH_IMX8 || ARCH_IMX8M || \
 			   ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
 			   ARCH_LS1046A
 	default 0x2000
@@ -285,6 +285,7 @@  config SPL_SYS_MALLOC_F_LEN
 	depends on SYS_MALLOC_F && SPL
 	default 0 if !SPL_FRAMEWORK
 	default 0x2800 if RCAR_GEN3
+	default 0x2000 if IMX8MQ
 	default SYS_MALLOC_F_LEN
 	help
 	  In SPL memory is very limited on many platforms. Still,