Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a9d68de authored by Faiyaz Mohammed's avatar Faiyaz Mohammed Committed by Prakash Gupta
Browse files

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: default avatarFaiyaz Mohammed <faiyazm@codeaurora.org>
[vinmenon@codeaurora.org: move the location of print for 5.4]
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 5f355571
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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"