All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Correct sun8i-v3s SRAM size
@ 2020-04-28 14:33 Benedikt-Alexander Mokroß
  2020-06-01 17:00 ` Jagan Teki
  0 siblings, 1 reply; 5+ messages in thread
From: Benedikt-Alexander Mokroß @ 2020-04-28 14:33 UTC (permalink / raw)
  To: u-boot

According to the Datasheet, the V3s has a 32KiB SRAM.
This patch corrects CONFIG_SPL_MAX_SIZE and LOW_LEVEL_SRAM_STACK
accordingly.

Signed-off-by: Benedikt-Alexander Mokro? <u-boot@bamkrs.de>
---
  include/configs/sunxi-common.h | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 0ef289fd64..623501edce 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -185,8 +185,11 @@
  #define CONFIG_SPL_MAX_SIZE		0x7fa0		/* 32 KiB */
  /* end of SRAM A2 on H6 for now */
  #define LOW_LEVEL_SRAM_STACK		0x00118000
+#elif defined CONFIG_MACH_SUN8I_V3S
+#define CONFIG_SPL_MAX_SIZE		0x7fa0		/* 32 KiB */
+#define LOW_LEVEL_SRAM_STACK		0x0000F000	/* End of sram */
  #else
  #define CONFIG_SPL_MAX_SIZE		0x5fa0		/* 24KB on sun4i/sun7i */
  #define LOW_LEVEL_SRAM_STACK		0x00008000	/* End of sram */
  #endif

-- 
2.20.1

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

* [PATCH] Correct sun8i-v3s SRAM size
  2020-04-28 14:33 [PATCH] Correct sun8i-v3s SRAM size Benedikt-Alexander Mokroß
@ 2020-06-01 17:00 ` Jagan Teki
  2020-06-02  7:10   ` Benedikt-Alexander Mokroß
  0 siblings, 1 reply; 5+ messages in thread
From: Jagan Teki @ 2020-06-01 17:00 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 28, 2020 at 9:26 PM Benedikt-Alexander Mokro?
<catchall@bamkrs.de> wrote:
>
> According to the Datasheet, the V3s has a 32KiB SRAM.
> This patch corrects CONFIG_SPL_MAX_SIZE and LOW_LEVEL_SRAM_STACK
> accordingly.

Look like the existing value has taken from allwinner BSP, but did you
find any issues with the existing one?

Jagan.

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

* [PATCH] Correct sun8i-v3s SRAM size
  2020-06-01 17:00 ` Jagan Teki
@ 2020-06-02  7:10   ` Benedikt-Alexander Mokroß
  2020-06-02 10:50     ` Maxime Ripard
  2020-06-11  9:30     ` Jagan Teki
  0 siblings, 2 replies; 5+ messages in thread
From: Benedikt-Alexander Mokroß @ 2020-06-02  7:10 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

I run into some size-related issues regarding my SPL configuration for a custom V3s board (mainly due to using fit images). In fact, the V3s has even more SRAM that could be used for the SPL. However the BROM won't boot anything larger than 32KiB. So I use this 32KiB limit in production now and found no issues with my 29KiB SPL whatsoever. And - if I read the BROM ASM correctly - there is no performance drawback for default (and smaller) SPL configurations since the BROM only loads the actual SPL size amount of pages/bytes.

I think it would be much less frustrating for other users if they could use these 32KiB from the start since the current limit is hit pretty fast and there is no reason why it should be this 24k limit for the V3s. It's another poorly or even plain wrongly documented aspect of the Allwinner BSP.

Benedikt

Am 1. Juni 2020 19:00:30 MESZ schrieb Jagan Teki <jagan@amarulasolutions.com>:
On Tue, Apr 28, 2020 at 9:26 PM Benedikt-Alexander Mokro?
<catchall@bamkrs.de> wrote:

 According to the Datasheet, the V3s has a 32KiB SRAM.
 This patch corrects CONFIG_SPL_MAX_SIZE and LOW_LEVEL_SRAM_STACK
 accordingly.

Look like the existing value has taken from allwinner BSP, but did you
find any issues with the existing one?

Jagan.

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

* [PATCH] Correct sun8i-v3s SRAM size
  2020-06-02  7:10   ` Benedikt-Alexander Mokroß
@ 2020-06-02 10:50     ` Maxime Ripard
  2020-06-11  9:30     ` Jagan Teki
  1 sibling, 0 replies; 5+ messages in thread
From: Maxime Ripard @ 2020-06-02 10:50 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 02, 2020 at 09:10:08AM +0200, Benedikt-Alexander Mokro? wrote:
> Hi Jagan,
> 
> I run into some size-related issues regarding my SPL configuration for
> a custom V3s board (mainly due to using fit images). In fact, the V3s
> has even more SRAM that could be used for the SPL. However the BROM
> won't boot anything larger than 32KiB. So I use this 32KiB limit in
> production now and found no issues with my 29KiB SPL whatsoever. And -
> if I read the BROM ASM correctly - there is no performance drawback
> for default (and smaller) SPL configurations since the BROM only loads
> the actual SPL size amount of pages/bytes.
> 
> I think it would be much less frustrating for other users if they
> could use these 32KiB from the start since the current limit is hit
> pretty fast and there is no reason why it should be this 24k limit for
> the V3s. It's another poorly or even plain wrongly documented aspect
> of the Allwinner BSP.

I agree

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200602/fbdc9a5f/attachment.sig>

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

* [PATCH] Correct sun8i-v3s SRAM size
  2020-06-02  7:10   ` Benedikt-Alexander Mokroß
  2020-06-02 10:50     ` Maxime Ripard
@ 2020-06-11  9:30     ` Jagan Teki
  1 sibling, 0 replies; 5+ messages in thread
From: Jagan Teki @ 2020-06-11  9:30 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 2, 2020 at 12:40 PM Benedikt-Alexander Mokro?
<u-boot@bamkrs.de> wrote:
>
> Hi Jagan,
>
> I run into some size-related issues regarding my SPL configuration for a custom V3s board (mainly due to using fit images). In fact, the V3s has even more SRAM that could be used for the SPL. However the BROM won't boot anything larger than 32KiB. So I use this 32KiB limit in production now and found no issues with my 29KiB SPL whatsoever. And - if I read the BROM ASM correctly - there is no performance drawback for default (and smaller) SPL configurations since the BROM only loads the actual SPL size amount of pages/bytes.
>
> I think it would be much less frustrating for other users if they could use these 32KiB from the start since the current limit is hit pretty fast and there is no reason why it should be this 24k limit for the V3s. It's another poorly or even plain wrongly documented aspect of the Allwinner BSP.

Can you rebase on master and send it with the proper commit head.

"sunxi: Correct sun8i-v3s SRAM size"

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

end of thread, other threads:[~2020-06-11  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 14:33 [PATCH] Correct sun8i-v3s SRAM size Benedikt-Alexander Mokroß
2020-06-01 17:00 ` Jagan Teki
2020-06-02  7:10   ` Benedikt-Alexander Mokroß
2020-06-02 10:50     ` Maxime Ripard
2020-06-11  9:30     ` Jagan Teki

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.