ARM64: mm: Add log in fixmap_remap_fdt for static memory

memblock_dbg is not up because of parse_early_param get called after
setup_machine_fd. To capture fdt reserved info below pr_info is added.

Change-Id: Id39ce71c3de63778e987d7ab09a6d41c6aaddc4f
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
[vinmenon@codeaurora.org: move the location of print for 5.4]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
This commit is contained in:
Faiyaz Mohammed 2019-12-10 12:54:00 +05:30 • committed by Prakash Gupta
commit 7a9d68ded6

View file

@ -174,8 +174,16 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys)
void *dt_virt = fixmap_remap_fdt(dt_phys, &size, PAGE_KERNEL);
const char *name;
if (dt_virt)
if (dt_virt) {
memblock_reserve(dt_phys, size);
/*
* memblock_dbg is not up because of parse_early_param
* get called after setup_machine_fd. To capture fdt
* reserved info below pr_info is added.
*/
pr_info("memblock_reserve: 0x%x %pS\n", size - 1,
(void *) _RET_IP_);
}
if (!dt_virt || !early_init_dt_scan(dt_virt)) {
pr_crit("\n"