[U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-18 Thread Simon Glass
At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and environment) require a lot of stack, some boards set CONFIG_SPL_STACK to point into SDRAM. They then set up SDRAM very early, before board_init_f(), so that the larger st

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-18 Thread Heiko Schocher
Hello Simon, added Bo Shen to cc, as he currently try to set BSS (and stack) into SDRAM for at91 based boards ... Bo, could you try this aproach? Am 18.01.2015 19:55, schrieb Simon Glass: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL feat

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-18 Thread Albert ARIBAUD
Hello Simon, On Sun, 18 Jan 2015 11:55:36 -0700, Simon Glass wrote: > At present SPL uses a single stack, either CONFIG_SPL_STACK or > CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and > environment) require a lot of stack, some boards set CONFIG_SPL_STACK to > point into SDRAM. T

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-18 Thread Stefan Roese
On 18.01.2015 19:55, Simon Glass wrote: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and environment) require a lot of stack, some boards set CONFIG_SPL_STACK to point into SDRAM. They then set up SDRAM very early, be

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-18 Thread Stefano Babic
Hi Simon, On 18/01/2015 19:55, Simon Glass wrote: > At present SPL uses a single stack, either CONFIG_SPL_STACK or > CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and > environment) require a lot of stack, some boards set CONFIG_SPL_STACK to > point into SDRAM. They then set up SDR

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-19 Thread Simon Glass
Hi, On 18 January 2015 at 23:46, Heiko Schocher wrote: > Hello Simon, > > added Bo Shen to cc, as he currently try to set BSS (and stack) into > SDRAM for at91 based boards ... Bo, could you try this aproach? > > Am 18.01.2015 19:55, schrieb Simon Glass: > >> At present SPL uses a single stack, e

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-19 Thread Simon Glass
Hi Albert, On 18 January 2015 at 23:54, Albert ARIBAUD wrote: > Hello Simon, > > On Sun, 18 Jan 2015 11:55:36 -0700, Simon Glass > wrote: >> At present SPL uses a single stack, either CONFIG_SPL_STACK or >> CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and >> environment) require

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-20 Thread Albert ARIBAUD
Hello Simon, On Mon, 19 Jan 2015 12:39:34 -0700, Simon Glass wrote: > Hi Albert, > > On 18 January 2015 at 23:54, Albert ARIBAUD wrote: > > Hello Simon, > > > > On Sun, 18 Jan 2015 11:55:36 -0700, Simon Glass > > wrote: > >> At present SPL uses a single stack, either CONFIG_SPL_STACK or > >> C

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Bo Shen
Hi Simon Glass, On 01/19/2015 02:55 AM, Simon Glass wrote: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and environment) require a lot of stack, some boards set CONFIG_SPL_STACK to point into SDRAM. They then set up

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Masahiro Yamada
Hi Simon, On Sun, 18 Jan 2015 11:55:36 -0700 Simon Glass wrote: > At present SPL uses a single stack, either CONFIG_SPL_STACK or > CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and > environment) require a lot of stack, some boards set CONFIG_SPL_STACK to > point into SDRAM. Th

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Heiko Schocher
Hello Simon, Am 19.01.2015 07:46, schrieb Heiko Schocher: Hello Simon, added Bo Shen to cc, as he currently try to set BSS (and stack) into SDRAM for at91 based boards ... Bo, could you try this aproach? Am 18.01.2015 19:55, schrieb Simon Glass: At present SPL uses a single stack, either CONF

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Simon Glass
Hi Masahiro, On 21 January 2015 at 03:51, Masahiro Yamada wrote: > Hi Simon, > > > > On Sun, 18 Jan 2015 11:55:36 -0700 > Simon Glass wrote: > >> At present SPL uses a single stack, either CONFIG_SPL_STACK or >> CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and >> environment) re

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Masahiro YAMADA
Hi Simon, > Yes agreed. I can do that. It seems like the concept is agreed at least. > > So how about this: > > CONFIG_SPL_STACK_R - bool > CONFIG_SPL_STACK_R _SIZE - hex Do you need the size of stack? Or the base address? > But for your particular case, I certainly would like the UART to

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Simon Glass
Hi Masahiro, On 21 January 2015 at 10:12, Masahiro YAMADA wrote: > Hi Simon, > > > >> Yes agreed. I can do that. It seems like the concept is agreed at least. >> >> So how about this: >> >> CONFIG_SPL_STACK_R - bool >> CONFIG_SPL_STACK_R _SIZE - hex > > > Do you need the size of stack? Or the ba

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-21 Thread Heiko Schocher
Hello Simon, Masahiro, Am 21.01.2015 16:51, schrieb Simon Glass: Hi Masahiro, On 21 January 2015 at 03:51, Masahiro Yamada wrote: Hi Simon, On Sun, 18 Jan 2015 11:55:36 -0700 Simon Glass wrote: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-22 Thread Masahiro Yamada
Simon, Heiko, On Thu, 22 Jan 2015 07:28:37 +0100 Heiko Schocher wrote: > > But for your particular case, I certainly would like the UART to be > > available early in SPL. We are in the very early days of driver model > > for SPL. Once we get it merged (thanks to Tom's work this should be > > so

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-22 Thread Simon Glass
Hi Masahiro, On 22 January 2015 at 00:33, Masahiro Yamada wrote: > Simon, Heiko, > > > On Thu, 22 Jan 2015 07:28:37 +0100 > Heiko Schocher wrote: > >> > But for your particular case, I certainly would like the UART to be >> > available early in SPL. We are in the very early days of driver model

Re: [U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

2015-01-24 Thread Masahiro Yamada
Hi Simon, On Thu, 22 Jan 2015 08:10:07 -0700 Simon Glass wrote: > Hi Masahiro, > > On 22 January 2015 at 00:33, Masahiro Yamada > wrote: > > Simon, Heiko, > > > > > > On Thu, 22 Jan 2015 07:28:37 +0100 > > Heiko Schocher wrote: > > > >> > But for your particular case, I certainly would like