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-8930.c b/arch/arm/mach-msm/board-8930.c
index f983b88..bf0d30d 100644
--- a/arch/arm/mach-msm/board-8930.c
+++ b/arch/arm/mach-msm/board-8930.c
@@ -297,6 +297,8 @@
{
#if defined(CONFIG_MSM_RTB)
msm8930_reserve_table[MEMTYPE_EBI1].size += msm8930_rtb_pdata.size;
+ pr_info("mem_map: rtb reserved with size 0x%x in pool\n",
+ msm8930_rtb_pdata.size);
#endif
}
@@ -329,6 +331,8 @@
reserve_memory_for(&android_pmem_audio_pdata);
#endif /*CONFIG_MSM_MULTIMEDIA_USE_ION*/
msm8930_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 /*CONFIG_ANDROID_PMEM*/
}
@@ -518,6 +522,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
}
@@ -628,6 +635,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);
}
@@ -638,6 +648,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);
}
@@ -649,6 +662,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);
}
@@ -714,6 +730,8 @@
total = msm8930_cache_dump_pdata.l1_size +
msm8930_cache_dump_pdata.l2_size;
msm8930_reserve_table[MEMTYPE_EBI1].size += total;
+ pr_info("mem_map: cache_dump reserved with size 0x%x in pool\n",
+ total);
}
#else
static void __init reserve_cache_dump_memory(void) { }