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
..
2021-03-01 09:54:11 -05:00
2020-05-11 10:16:49 +05:30
2021-01-15 14:36:12 -05:00
2020-04-17 12:32:36 -04:00
2021-01-25 21:52:00 +00:00
2021-01-25 21:52:00 +00:00
2020-07-09 12:33:24 +08:00
2020-05-18 17:33:33 -04:00
2021-03-07 17:37:13 +01:00
2021-01-12 10:58:04 +05:30
2021-01-12 10:58:04 +05:30
2020-12-26 12:37:28 +01:00
2021-01-30 14:25:41 -07:00
2021-01-30 14:25:42 -07:00
2021-01-31 14:08:56 +01:00
2020-02-05 19:33:46 -07:00
2020-05-07 09:01:42 -04:00
2021-03-19 20:54:40 +01:00
2020-08-03 22:19:54 -04:00
2021-01-13 02:38:01 +01:00
2020-05-18 21:19:23 -04:00
2020-08-07 22:31:32 -04:00
2021-02-10 10:00:51 +01:00
2020-10-30 10:56:11 -04:00
2020-05-18 17:33:33 -04:00
2020-06-12 13:14:07 -04:00
2021-03-17 12:50:19 -04:00
2020-05-18 18:36:55 -04:00
2020-04-17 12:32:36 -04:00
2020-08-04 23:30:02 -04:00
2021-01-16 19:17:11 -05:00
2021-02-03 03:38:41 -07:00
2020-07-17 10:47:19 -04:00
2020-12-18 20:32:21 -07:00
2020-06-14 21:07:20 +02:00
2020-02-05 19:33:46 -07:00
2020-06-14 21:07:20 +02:00
2020-07-09 06:02:44 +02:00
2020-09-30 11:55:23 -04:00
2020-02-05 19:33:46 -07:00
2021-01-05 16:20:26 -05:00
2020-10-22 09:54:53 -04:00
2020-08-03 22:19:54 -04:00
2021-01-27 17:03:16 -05:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2021-01-15 14:36:12 -05:00