msm: 8960: Track all reservations for memory map
Generate memory map for each reservations for 8960,
8930 and 8064.
Change-Id: I9d5bc8174160ffa410062282f76b15b671219576
Signed-off-by: Chitti Babu Theegala <ctheegal@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8960.c b/arch/arm/mach-msm/board-8960.c
index f598637..c017be9 100644
--- a/arch/arm/mach-msm/board-8960.c
+++ b/arch/arm/mach-msm/board-8960.c
@@ -305,6 +305,8 @@
{
#if defined(CONFIG_MSM_RTB)
msm8960_reserve_table[MEMTYPE_EBI1].size += msm8960_rtb_pdata.size;
+ pr_info("mem_map: rtb reserved with size 0x%x in pool\n",
+ msm8960_rtb_pdata.size);
#endif
}
@@ -345,6 +347,8 @@
reserve_memory_for(&android_pmem_audio_pdata);
#endif
msm8960_reserve_table[MEMTYPE_EBI1].size += msm_contig_mem_size;
+ pr_info("mem_map: contig_mem reserved with size 0x%x in pool\n",
+ msm_contig_mem_size);
#endif
}
@@ -563,6 +567,9 @@
ret = memblock_remove(reserve_info->fixed_area_start,
reserve_info->fixed_area_size);
+ pr_info("mem_map: fixed_area reserved at 0x%lx with size 0x%lx\n",
+ reserve_info->fixed_area_start,
+ reserve_info->fixed_area_size);
BUG_ON(ret);
#endif
}
@@ -692,6 +699,9 @@
BUG_ON(!IS_ALIGNED(fixed_low_size + HOLE_SIZE, SECTION_SIZE));
ret = memblock_remove(fixed_low_start,
fixed_low_size + HOLE_SIZE);
+ pr_info("mem_map: fixed_low_area reserved at 0x%lx with size \
+ 0x%x\n", fixed_low_start,
+ fixed_low_size + HOLE_SIZE);
BUG_ON(ret);
}
@@ -702,6 +712,9 @@
} else {
BUG_ON(!IS_ALIGNED(fixed_middle_size, SECTION_SIZE));
ret = memblock_remove(fixed_middle_start, fixed_middle_size);
+ pr_info("mem_map: fixed_middle_area reserved at 0x%lx with \
+ size 0x%x\n", fixed_middle_start,
+ fixed_middle_size);
BUG_ON(ret);
}
@@ -713,6 +726,9 @@
/* This is the end of the fixed area so it's okay to round up */
fixed_high_size = ALIGN(fixed_high_size, SECTION_SIZE);
ret = memblock_remove(fixed_high_start, fixed_high_size);
+ pr_info("mem_map: fixed_high_area reserved at 0x%lx with size \
+ 0x%x\n", fixed_high_start,
+ fixed_high_size);
BUG_ON(ret);
}
@@ -782,6 +798,8 @@
total = msm8960_cache_dump_pdata.l1_size +
msm8960_cache_dump_pdata.l2_size;
msm8960_reserve_table[MEMTYPE_EBI1].size += total;
+ pr_info("mem_map: cache_dump reserved with size 0x%x in pool\n",
+ total);
#endif
}