]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
efi: Improve logging around memmap init
authorBartosz Szczepanek <bsz@amazon.de>
Wed, 23 Apr 2025 09:05:16 +0000 (09:05 +0000)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 9 May 2025 09:07:28 +0000 (11:07 +0200)
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>
drivers/firmware/efi/memmap.c

index 34109fd86c55d2f1e63b949968f75b6f3473bc7d..f1c04d7cfd712522b72243fdc2ff2c09700f82c4 100644 (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;
        }