Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1603576 > unrolled thread

[GIT PULL] UEFI fix for v4.11-rc

Started byArd Biesheuvel <ard.biesheuvel@linaro.org>
First post2017-03-17 20:10 +0100
Last post2017-03-17 20:10 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [GIT PULL] UEFI fix for v4.11-rc Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-03-17 20:10 +0100
    [PATCH] efi/esrt: Cleanup bad memory map log messages Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-03-17 20:10 +0100

#1603576 — [GIT PULL] UEFI fix for v4.11-rc

FromArd Biesheuvel <ard.biesheuvel@linaro.org>
Date2017-03-17 20:10 +0100
Subject[GIT PULL] UEFI fix for v4.11-rc
Message-ID<tm5qa-2HS-7@gated-at.bofh.it>
Hi all,

At Matt's request, we are proposing this single patch as a bugfix for v4.11.
Please pull.

The following changes since commit 4495c08e84729385774601b5146d51d9e5849f81:

  Linux 4.11-rc2 (2017-03-12 14:47:08 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-urgent

for you to fetch changes up to 822f5845f710e57d7e2df1fd1ee00d6e19d334fe:

  efi/esrt: Cleanup bad memory map log messages (2017-03-17 18:53:12 +0000)

----------------------------------------------------------------
A single UEFI fix:
- Reduce the severity of the notice that appears when the ESRT table points
  to memory that is not covered by the memory map. It is scaring our users
  and interfering with their nice splash screens. Note that the ESRT may still
  be perfectly usable, and is currently (to my knowledge) not widely used to
  begin with.

----------------------------------------------------------------
Daniel Drake (1):
      efi/esrt: Cleanup bad memory map log messages

 drivers/firmware/efi/efi.c  | 1 -
 drivers/firmware/efi/esrt.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

[toc] | [next] | [standalone]


#1603581 — [PATCH] efi/esrt: Cleanup bad memory map log messages

FromArd Biesheuvel <ard.biesheuvel@linaro.org>
Date2017-03-17 20:10 +0100
Subject[PATCH] efi/esrt: Cleanup bad memory map log messages
Message-ID<tm5qb-2HS-25@gated-at.bofh.it>
In reply to#1603576
From: Daniel Drake <drake@endlessm.com>

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>
---
 drivers/firmware/efi/efi.c  | 1 -
 drivers/firmware/efi/esrt.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index e7d404059b73..b372aad3b449 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -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;
 }
 
diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c
index 08b026864d4e..8554d7aec31c 100644
--- a/drivers/firmware/efi/esrt.c
+++ b/drivers/firmware/efi/esrt.c
@@ -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_warn("ESRT header is not in the memory map.\n");
 		return;
 	}
 
-- 
2.7.4

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web