Files
u-boot/include/configs
Alexandru Gagniuc a08d1a916b configs: stm32mp1: Fix misleading SPL size limitations
A now removed comment promises to "limit SYSRAM usage to first 128 KB".
This would imply that only SYSRAM from 0x2ffc0000 - 0x2ffe0000 would be
used. This is not what happens at all.

First, SPL_MAX_SIZE is referenced from SPL_TEXT_BASE, which on all
existing configs is set to 0x2ffc2500, not SYSRAM_BASE (0x2ffc0000).
Some of it is in the first 128 KiB and some of it is in the second
128 KiB chunk of SYSRAM.

Second, SPL_MAX_SIZE, does not restrict the BSS size. While a valiant
attempt is made via SPL_BSS_MAX_SIZE, the value of 0x00100000 is much
larger than SYSRAM, and doesn't account for the non-BSS sections.

Because we're putting the .text and .bss in the same boat, the correct
way to limit them together is via SPL_MAX_FOOTPRINT. With the current
SPL_TEXT_BASE, we couldn't limit even a very basic SPL to the first
128 KiB, and there is no technical reason to do so. Because of this,
simply allow the SPL to use all SYSRAM.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-04-09 11:59:13 +02:00
..
2020-04-28 15:57:58 -04:00
2020-12-18 16:16:36 +05:30
2020-07-28 16:18:10 -04:00
2020-01-14 22:15:21 +01:00
2020-08-23 13:06:36 -04:00
2020-04-28 15:57:58 -04:00
2020-04-28 15:57:58 -04:00
2020-08-23 13:06:36 -04:00
2020-01-14 22:15:21 +01:00
2020-04-28 15:57:58 -04:00
2020-10-22 11:26:14 -04:00
2020-07-28 16:18:06 -04:00
2019-12-23 14:06:47 +05:30
2021-02-08 14:01:16 +05:30
2020-04-28 15:57:58 -04:00
2021-02-04 20:37:56 +05:30
2020-06-29 22:36:35 +02:00
2020-06-26 10:29:06 -04:00
2020-07-17 08:47:29 -04:00
2021-03-01 10:21:36 +01:00
2021-03-01 10:21:36 +01:00
2020-08-23 13:06:36 -04:00
2020-04-28 15:57:58 -04:00
2020-04-28 15:57:58 -04:00
2020-07-25 11:24:02 +02:00
2019-12-23 14:06:47 +05:30
2019-12-23 14:06:47 +05:30
2020-06-26 10:29:05 -04:00
2020-09-23 00:14:56 +02:00
2020-06-26 10:29:06 -04:00
2020-08-23 13:06:36 -04:00
2020-07-17 08:47:29 -04:00