Skip to content
Snippets Groups Projects
Commit 0347383a authored by Ankur Bansal's avatar Ankur Bansal
Browse files

lrdp_V2: Fix for broken reserved_mem.py


Fix for broken reserved_mem.py in case of cma area dump.
if CONFIG_MEMORY_HOTPLUG is enabled then SECTION_SIZE_BITS is
CONFIG_HOTPLUG_SIZE_BITS else it is 30.

Signed-off-by: default avatarAnkur Bansal <ankban@codeaurora.org>
Change-Id: Iaceb6d1c0f2753d94d420e9d9f8cacff3a6b57d4
parent 723d4224
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,14 @@ def page_trace(ramdump, pfn):
phys = pfn << 12
if phys is None or phys is 0:
return
offset = phys >> 30
if ramdump.is_config_defined('CONFIG_MEMORY_HOTPLUG'):
section_size_bits = int(ramdump.get_config_val(
'CONFIG_HOTPLUG_SIZE_BITS'))
offset = phys >> section_size_bits
else:
offset = phys >> 30
if ramdump.is_config_defined("CONFIG_SPARSEMEM"):
mem_section_0_offset = (mem_section + (offset * mem_section_size))
page_ext = ramdump.read_word(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment