efi/esrt: Not having an ERST descriptor is not an error
PATCH 1/2 efi/esrt: Not having an ERST descriptor is not an error
Stop printing an error on all machines without ERST descriptors.
--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/esrt.c +1 -1
@@ -254,7 +254,7 @@ void __init efi_esrt_init(void) rc =efi_mem_desc_lookup (efi.esrt, &md);if (rc <0 ) { -pr_err ("ESRT header is not in the memory map.\n" ); +pr_info ("ESRT header is not in the memory map.\n" );return ; }
Signature · 1 line
2.9.3
PATCH 2/2 efi/efi_mem_desc_lookup: Not finding a descriptor is not an error
In reply to a message not in the archiveSome descriptors (like ESRT) simply just are not there on many machines, since all callers of efi_mem_desc_lookup already print a message on failure complete drop the pr_err call.
--- drivers/firmware/efi/efi.c | 1 - 1 file changed, 1 deletion(-)
drivers/firmware/efi/efi.c +0 -1
@@ -389,7 +389,6 @@ int __init efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md)return 0 ; } } -pr_err_once ("requested map not found.\n" );return -ENOENT ; }
Signature · 1 line
2.9.3
Quoted 3 lines · Hans de Goede
Stop printing an error on all machines without ERST descriptors.
Signed-off-by Hans de Goede <[email protected]>
We have similar changes already queued for v4.12 in our next branch, with the only difference being that you are using pr_info() rather than pr_warn() (and according to the contributor of the patch, that is sufficient to prevent the warning from appearing on top of the graphical splash on his distro)
Thanks,
Ard.
Quoted 20 lines
--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/efi/esrt.c +1
-2@@ -254,7 +254,7 @@ void __init efi_esrt_init(void) rc =efi_mem_desc_lookup (efi.esrt, &md);if (rc <0 ) { -pr_err ("ESRT header is not in the memory map.\n" ); +pr_info ("ESRT header is not in the memory map.\n" );return ; } --2.9.3
Hi,
Quoted 10 lines · Ard Biesheuvel
Quoted 3 lines · Hans de Goede
Stop printing an error on all machines without ERST descriptors.
Signed-off-by Hans de Goede <[email protected]>We have similar changes already queued for v4.12 in our next branch, with the only difference being that you are using
pr_info()rather thanpr_warn()(and according to the contributor of the patch, that is sufficient to prevent the warning from appearing on top of the graphical splash on his distro)
Correct, pr_warn is fine too.
Thanks,
Hans
Quoted 25 lines
Thanks,
Ard.Quoted 20 lines
--- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/efi/esrt.c +1
-2@@ -254,7 +254,7 @@ void __init efi_esrt_init(void) rc =efi_mem_desc_lookup (efi.esrt, &md);if (rc <0 ) { -pr_err ("ESRT header is not in the memory map.\n" ); +pr_info ("ESRT header is not in the memory map.\n" );return ; } --2.9.3