Jiacheng Zheng 9e24634404 mm: memblock: dynamically calculate memory hotplug range
We need to support memory hotplug, but the range reserved
for hotplug changes for different ddr size. Calculating
range for each ddr size manually and configuring it in
cmdline will cause us to release separate kernel image for
each possible ddr size. This is not acceptable, so we need
to calculate it dynamically during booting.
We define two new early params. "no_hotplug_area" tells us
which area is not suitable for memory hotplug so we should
skip those areas when calculating. "dyn_memhotplug" tells
us we need this feature(dynamically memory hotplug area
calculating).
We find aligned memory blocks in memory layout automatically
except those in the no_hotplug_area and we expose the areas
we get through sysfs to userspace so some service can
hotplug those areas back after system fully boots up.

Change-Id: I72a3685bef38acc391e2ef36fc7b2517223bcde3
Signed-off-by: Jiacheng Zheng <jiaczhen@codeaurora.org>
2019-12-20 10:53:01 +08:00
..
2018-06-04 14:01:37 +05:30
2018-09-10 09:24:54 +02:00
2018-07-05 17:19:46 +05:30
2018-12-01 09:42:54 +01:00