Patrick Delaunay 6d66502bc7 lmb: Add 2 config to define the max number of regions
Add 2 configs CONFIG_LMB_MEMORY_REGIONS and CONFIG_LMB_RESERVED_REGIONS
to change independently the max number of the regions in lmb
library.

When CONFIG_LMB_USE_MAX_REGIONS=y, move the lmb property arrays to
struct lmb and manage the array size with the element 'max' of struct
lmb_region; their are still allocated in stack.

When CONFIG_LMB_USE_MAX_REGIONS=n, keep the current location in
struct lmb_region to allow compiler optimization.

Increase CONFIG_LMB_RESERVED_REGIONS is useful to avoid lmb errors in
bootm when the number of reserved regions (not adjacent) is reached:
+ 1 region for relocated U-Boot
+ 1 region for initrd
+ 1 region for relocated linux device tree
+ reserved memory regions present in Linux device tree.

The current limit of 8 regions is reached with only 5 reserved regions
in DT.

see Linux kernel commit bf23c51f1f49 ("memblock: Move memblock arrays
to static storage in memblock.c and make their size a variable")

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-04-22 14:09:45 -04:00
..
2021-04-12 17:45:40 -04:00
2021-04-22 14:09:45 -04:00
2021-04-20 07:31:12 -04:00
2020-05-11 10:16:49 +05:30
2021-01-15 14:36:12 -05: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-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: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
2020-08-03 22:19:54 -04:00
2021-04-10 12:00:24 +02:00
2020-05-18 21:19:23 -04:00
2021-04-16 17:32:34 -04:00
2021-04-16 11:55:55 -04:00
2020-08-07 22:31:32 -04:00
2021-04-10 08:04:42 -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-04-22 14:09:45 -04:00
2020-05-18 18:36:55 -04:00
2020-04-17 12:32:36 -04:00
2021-03-27 15:04:31 +13:00
2020-01-25 12:04:36 -05:00
2021-04-20 07:31:12 -04:00
2020-07-17 10:47:19 -04:00
2020-12-18 20:32:21 -07:00
2021-04-12 17:44:55 -04: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-03-27 15:04:31 +13:00
2021-01-05 16:20:26 -05:00
2020-10-22 09:54:53 -04:00
2021-04-20 07:31:12 -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