From: Hendrik 'T4cC0re' Meyer <linux@t4c.dev>
To: ardb@kernel.org
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-efi@vger.kernel.org,
Hendrik 'T4cC0re' Meyer <linux@t4c.dev>
Subject: [PATCH] efistub: add efi=quiet parameter to selectively silence efistub alone
Date: Fri, 17 Jan 2025 03:44:52 +0100 [thread overview]
Message-ID: <20250117024452.2691546-1-linux@t4c.dev> (raw)
While the general `quiet` kernel parameter is available to silence
output from the efistub, setting this comes with side-effects.
This patch adds a parameter efi=quiet to selectively set the loglevel
for the stub alone to quiet, as the polar oppoosite to efi=debug.
Signed-off-by: Hendrik 'T4cC0re' Meyer <linux@t4c.dev>
---
Documentation/admin-guide/kernel-parameters.txt | 3 ++-
drivers/firmware/efi/libstub/efi-stub-helper.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 3872bc6ec..94a2f6ae7 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1454,7 +1454,7 @@
efi= [EFI,EARLY]
Format: { "debug", "disable_early_pci_dma",
"nochunk", "noruntime", "nosoftreserve",
- "novamap", "no_disable_early_pci_dma" }
+ "novamap", "no_disable_early_pci_dma", "quiet" }
debug: enable misc debug output.
disable_early_pci_dma: disable the busmaster bit on all
PCI bridges while in the EFI boot stub.
@@ -1471,6 +1471,7 @@
novamap: do not call SetVirtualAddressMap().
no_disable_early_pci_dma: Leave the busmaster bit set
on all PCI bridges while in the EFI boot stub
+ quiet: disable most log messages.
efi_no_storage_paranoia [EFI,X86,EARLY]
Using this parameter you can use more than 50% of
diff --git a/drivers/firmware/efi/libstub/efi-stub-helper.c b/drivers/firmware/efi/libstub/efi-stub-helper.c
index c0c81ca42..b8ad629cc 100644
--- a/drivers/firmware/efi/libstub/efi-stub-helper.c
+++ b/drivers/firmware/efi/libstub/efi-stub-helper.c
@@ -97,6 +97,8 @@ efi_status_t efi_parse_options(char const *cmdline)
efi_disable_pci_dma = false;
if (parse_option_str(val, "debug"))
efi_loglevel = CONSOLE_LOGLEVEL_DEBUG;
+ if (parse_option_str(val, "quiet"))
+ efi_loglevel = CONSOLE_LOGLEVEL_QUIET;
} else if (!strcmp(param, "video") &&
val && strstarts(val, "efifb:")) {
efi_parse_option_graphics(val + strlen("efifb:"));
--
2.47.1
next reply other threads:[~2025-01-17 2:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-17 2:44 Hendrik 'T4cC0re' Meyer [this message]
2025-01-19 17:11 ` [PATCH] efistub: add efi=quiet parameter to selectively silence efistub alone Ard Biesheuvel
2025-01-19 17:32 ` Hendrik 'T4cC0re' Meyer
2025-01-20 8:45 ` Ard Biesheuvel
2025-01-20 8:52 ` Hendrik 'T4cC0re' Meyer
2025-01-20 8:54 ` Ard Biesheuvel
2025-01-20 9:13 ` Hendrik 'T4cC0re' Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250117024452.2691546-1-linux@t4c.dev \
--to=linux@t4c.dev \
--cc=ardb@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.