From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Junxiao Chang <junxiao.chang@intel.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mefi: add dynamic control interface for EFI runtime services
Date: Wed, 12 Aug 2026 16:41:47 +0200 [thread overview]
Message-ID: <20260812144147.0Dahmj4w@linutronix.de> (raw)
In-Reply-To: <d107385f-1c58-4aa0-beac-7d536d064600@app.fastmail.com>
On 2026-07-23 08:37:23 [+0200], Ard Biesheuvel wrote:
> (cc Sebastian)
Thanks.
> On Sat, 4 Jul 2026, at 02:33, Junxiao Chang wrote:
> > b/Documentation/admin-guide/kernel-parameters.txt
> > index b5493a7f8f228..533213101f808 100644
> > --- a/Documentation/admin-guide/kernel-parameters.txt
> > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > @@ -1595,7 +1595,8 @@ Kernel parameters
> > efi= [EFI,EARLY]
> > Format: { "debug", "disable_early_pci_dma",
> > "nochunk", "noruntime", "nosoftreserve",
> > - "novamap", "no_disable_early_pci_dma" }
> > + "novamap", "no_disable_early_pci_dma",
> > + "dynamic" }
> > debug: enable misc debug output.
> > disable_early_pci_dma: disable the busmaster bit on all
> > PCI bridges while in the EFI boot stub.
> > @@ -1612,6 +1613,8 @@ Kernel parameters
> > 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
> > + dynamic: enable EFI runtime services, which can be
> > + disabled via /sys/firmware/efi/dynamic_enable.
> >
> > efi_no_storage_paranoia [EFI,X86,EARLY]
> > Using this parameter you can use more than 50% of
>
> I'd prefer not to add a command line option for this. If the sysfs control
> is useful, we can enable it unconditionally, or depend on PREEMPT_RT.
If we do this enable/ disable at runtime, could we name if
"runtime_enable" or "enabled" instead "dynamic_enable"?
We could also have the =noruntime option as an initial off switch which
could be overwritten at runtime to enable it temporary.
This probably benefits only efivars since everything else (like efi-rtc)
remains non-functional or broken (if enabled/ disabled at runtime).
We have this thing where the efi-runtime workqueue can be limited to a
certain CPU in case it helps. But then I learned then certain EFI
versions do block all other CPUs while the one CPU is performing a EFI
invocation…
Sebastian
next prev parent reply other threads:[~2026-08-12 14:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-04 0:33 Junxiao Chang
2026-07-23 6:37 ` Ard Biesheuvel
2026-07-30 6:14 ` Chang, Junxiao
2026-08-12 14:41 ` Sebastian Andrzej Siewior [this message]
2026-08-13 8:12 ` Chang, Junxiao
2026-07-31 6:24 ` [PATCH] efi: " Junxiao Chang
2026-08-01 13:45 ` Ard Biesheuvel
2026-08-06 9:49 ` Junxiao Chang
2026-08-15 9:50 ` Junxiao Chang
2026-09-03 10:08 ` Ard Biesheuvel
2026-09-08 10:17 ` Ilias Apalodimas
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=20260812144147.0Dahmj4w@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=ardb@kernel.org \
--cc=ilias.apalodimas@linaro.org \
--cc=junxiao.chang@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®