All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig
@ 2020-04-20  5:43 Michal Simek
  2020-04-30  7:37 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-04-20  5:43 UTC (permalink / raw)
  To: u-boot

From: T Karthik Reddy <t.karthik.reddy@xilinx.com>

nand_scan_tail() function allocates memory dynamically for
struct nand_buffers which needs ~21kbytes of memory. But the
memory alloted with CONFIG_SYS_MALLOC_LEN is 4k which is insufficient.
Increase CONFIG_SYS_MALLOC_LEN to 32Kbytes from which struct
nand_buffers uses ~21kbytes & remaining memory is used for other.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 configs/zynq_cse_nand_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/zynq_cse_nand_defconfig b/configs/zynq_cse_nand_defconfig
index 2b58c461c390..80a427d905d3 100644
--- a/configs/zynq_cse_nand_defconfig
+++ b/configs/zynq_cse_nand_defconfig
@@ -4,7 +4,7 @@ CONFIG_SYS_ICACHE_OFF=y
 CONFIG_SYS_DCACHE_OFF=y
 CONFIG_ARCH_ZYNQ=y
 CONFIG_SYS_TEXT_BASE=0x100000
-CONFIG_SYS_MALLOC_LEN=0x1000
+CONFIG_SYS_MALLOC_LEN=0x8000
 CONFIG_ENV_SIZE=0x190
 CONFIG_SPL_STACK_R_ADDR=0x200000
 CONFIG_SPL=y
-- 
2.26.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig
  2020-04-20  5:43 [PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig Michal Simek
@ 2020-04-30  7:37 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-04-30  7:37 UTC (permalink / raw)
  To: u-boot

po 20. 4. 2020 v 7:43 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> From: T Karthik Reddy <t.karthik.reddy@xilinx.com>
>
> nand_scan_tail() function allocates memory dynamically for
> struct nand_buffers which needs ~21kbytes of memory. But the
> memory alloted with CONFIG_SYS_MALLOC_LEN is 4k which is insufficient.
> Increase CONFIG_SYS_MALLOC_LEN to 32Kbytes from which struct
> nand_buffers uses ~21kbytes & remaining memory is used for other.
>
> Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  configs/zynq_cse_nand_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configs/zynq_cse_nand_defconfig b/configs/zynq_cse_nand_defconfig
> index 2b58c461c390..80a427d905d3 100644
> --- a/configs/zynq_cse_nand_defconfig
> +++ b/configs/zynq_cse_nand_defconfig
> @@ -4,7 +4,7 @@ CONFIG_SYS_ICACHE_OFF=y
>  CONFIG_SYS_DCACHE_OFF=y
>  CONFIG_ARCH_ZYNQ=y
>  CONFIG_SYS_TEXT_BASE=0x100000
> -CONFIG_SYS_MALLOC_LEN=0x1000
> +CONFIG_SYS_MALLOC_LEN=0x8000
>  CONFIG_ENV_SIZE=0x190
>  CONFIG_SPL_STACK_R_ADDR=0x200000
>  CONFIG_SPL=y
> --
> 2.26.0
>

Applied.
M


-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-30  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  5:43 [PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig Michal Simek
2020-04-30  7:37 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.