Skip to content

Commit 822f584

Browse files
dsdArd Biesheuvel
authored andcommitted
efi/esrt: Cleanup bad memory map log messages
The Intel Compute Stick STCK1A8LFC and Weibu F3C platforms both log 2 error messages during boot: efi: requested map not found. esrt: ESRT header is not in the memory map. Searching the web, this seems to affect many other platforms too. Since these messages are logged as errors, they appear on-screen during the boot process even when using the "quiet" boot parameter used by distros. Demote the ESRT error to a warning so that it does not appear on-screen, and delete the error logging from efi_mem_desc_lookup; both callsites of that function log more specific messages upon failure. Out of curiosity I looked closer at the Weibu F3C. There is no entry in the UEFI-provided memory map which corresponds to the ESRT pointer, but hacking the code to map it anyway, the ESRT does appear to be valid with 2 entries. Signed-off-by: Daniel Drake <drake@endlessm.com> Cc: Matt Fleming <matt@codeblueprint.co.uk> Acked-by: Peter Jones <pjones@redhat.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
1 parent 4495c08 commit 822f584

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/firmware/efi/efi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ int __init efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md)
389389
return 0;
390390
}
391391
}
392-
pr_err_once("requested map not found.\n");
393392
return -ENOENT;
394393
}
395394

drivers/firmware/efi/esrt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void __init efi_esrt_init(void)
254254

255255
rc = efi_mem_desc_lookup(efi.esrt, &md);
256256
if (rc < 0) {
257-
pr_err("ESRT header is not in the memory map.\n");
257+
pr_warn("ESRT header is not in the memory map.\n");
258258
return;
259259
}
260260

0 commit comments

Comments
 (0)