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

Commit fb1f7573 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM64: mm: Add log in fixmap_remap_fdt for static memory"

parents 9e1aed8f 7a9d68de
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"
+5 −0
Original line number Diff line number Diff line
@@ -7665,6 +7665,11 @@ unsigned long free_reserved_area(void *start, void *end, int poison, const char
		pr_info("Freeing %s memory: %ldK\n",
			s, pages << (PAGE_SHIFT - 10));

#ifdef CONFIG_HAVE_MEMBLOCK
		memblock_dbg("memblock_free: [%#016llx-%#016llx] %pS\n",
			__pa(start), __pa(end), (void *)_RET_IP_);
#endif

	return pages;
}
EXPORT_SYMBOL_GPL(free_reserved_area);