efi: Improve logging around memmap init

Be more informative if memremap fails, and print out physical address
together with size. This change intends to make investigations of such
early failures slightly easier.

Signed-off-by: Bartosz Szczepanek <bsz@amazon.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Bartosz Szczepanek 2025-04-23 09:05:16 +00:00 committed by Ard Biesheuvel
parent 0af2f6be1b
commit e1288f1db6

View File

@ -43,7 +43,8 @@ int __init __efi_memmap_init(struct efi_memory_map_data *data)
map.map = early_memremap(phys_map, data->size);
if (!map.map) {
pr_err("Could not map the memory map!\n");
pr_err("Could not map the memory map! phys_map=%pa, size=0x%lx\n",
&phys_map, data->size);
return -ENOMEM;
}