Skip to contentSkip to conversation

efi/esrt: Not having an ERST descriptor is not an error

PATCH In review Hans de Goede 2 participants 4 messages Feb 27, 2017 2 messages not in the archive EFI

lore
Share & tools
lore
#0 lore raw

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
index 1491407..0d902bb 100644
@@ -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
#2 lore raw

PATCH 2/2 efi/efi_mem_desc_lookup: Not finding a descriptor is not an error

In reply to a message not in the archive

Some 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
index 9291480..8c3ebcb 100644
@@ -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
#3 lore raw
In reply to a message not in the archive
Quoted 3 lines · Hans de Goede

Stop printing an error on all machines without ERST descriptors.

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
index 1491407..0d902bb 100644
@@ -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

#5 lore raw
In reply to a message not in the archive

Hi,

Quoted 10 lines · Ard Biesheuvel
Quoted 3 lines · Hans de Goede

Stop printing an error on all machines without ERST descriptors.

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)

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
index 1491407..0d902bb 100644
@@ -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