diff options
author | Bartosz Szczepanek <bsz@amazon.de> | 2025-04-23 12:05:16 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2025-05-09 12:07:28 +0300 |
commit | e1288f1db68b30b1efd9a40ef966490631ae6a46 (patch) | |
tree | d22a2cb497ae888dd132275a350450c7e05fa01b | |
parent | 0af2f6be1b4281385b618cb86ad946eded089ac8 (diff) | |
download | linux-e1288f1db68b30b1efd9a40ef966490631ae6a46.tar.xz |
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>
-rw-r--r-- | drivers/firmware/efi/memmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c index 34109fd86c55..f1c04d7cfd71 100644 --- a/drivers/firmware/efi/memmap.c +++ b/drivers/firmware/efi/memmap.c @@ -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; } |