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 s...@chromium.org wrote: Hi Masahiro, On 22 January 2015 at 00:33, Masahiro Yamada yamad...@jp.panasonic.com wrote: Simon, Heiko, On Thu, 22 Jan 2015 07:28:37 +0100 Heiko Schocher h...@denx.de wrote: But for your

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 h...@denx.de 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

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 yamad...@jp.panasonic.com wrote: Simon, Heiko, On Thu, 22 Jan 2015 07:28:37 +0100 Heiko Schocher h...@denx.de wrote: But for your particular case, I certainly would like the UART to be available early in SPL. We are in the very

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 yamad...@jp.panasonic.com 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

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 be

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 yamad...@jp.panasonic.com wrote: Hi Simon, On Sun, 18 Jan 2015 11:55:36 -0700 Simon Glass s...@chromium.org wrote: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features

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 yamad...@jp.panasonic.com wrote: Hi Simon, On Sun, 18 Jan 2015 11:55:36 -0700 Simon Glass s...@chromium.org wrote: At present SPL uses a single stack, either

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 s...@chromium.org 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

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 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

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 s...@chromium.org wrote: Hi Albert, On 18 January 2015 at 23:54, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hello Simon, On Sun, 18 Jan 2015 11:55:36 -0700, Simon Glass s...@chromium.org wrote: At present SPL uses a

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 h...@denx.de 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

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 albert.u.b...@aribaud.net wrote: Hello Simon, On Sun, 18 Jan 2015 11:55:36 -0700, Simon Glass s...@chromium.org wrote: At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such

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 SDRAM

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

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 s...@chromium.org 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

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,

[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