From: Bjorn Helgaas <helgaas@kernel.org>
To: Matthew Wilcox <willy@infradead.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Bjorn Helgaas <bhelgaas@google.com>,
Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH] printk: Document that CONFIG_BOOT_PRINTK_DELAY required for boot_delay=
Date: Mon, 23 Jan 2023 14:44:19 -0600 [thread overview]
Message-ID: <20230123204419.GA980727@bhelgaas> (raw)
In-Reply-To: <Y87Pcu0ZJKOiQQRY@casper.infradead.org>
On Mon, Jan 23, 2023 at 06:18:26PM +0000, Matthew Wilcox wrote:
> On Mon, Jan 23, 2023 at 12:04:40PM -0600, Bjorn Helgaas wrote:
> > From: Bjorn Helgaas <bhelgaas@google.com>
> >
> > Document the fact that CONFIG_BOOT_PRINTK_DELAY must be enabled for the
> > "boot_delay" kernel parameter to work. Also mention that "lpj=" may be
> > necessary.
> >
> > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> > ---
> > Documentation/admin-guide/kernel-parameters.txt | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> > index 6cfa6e3996cf..b0b40b6a765c 100644
> > --- a/Documentation/admin-guide/kernel-parameters.txt
> > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > @@ -480,8 +480,9 @@
> > See Documentation/block/cmdline-partition.rst
> >
> > boot_delay= Milliseconds to delay each printk during boot.
> > - Values larger than 10 seconds (10000) are changed to
> > - no delay (0).
> > + Enable CONFIG_BOOT_PRINTK_DELAY and also specify
> > + "lpj=". Boot_delay values larger than 10 seconds
> > + (10000) are changed to no delay (0).
>
> That's counterintuitive. I'd understand clamping it to 10 seconds,
> but not setting it to zero.
I'm not opposed to setting it to 10 sec instead of 0, but that came
from bfe8df3d314b ("slow down printk during boot"); added Randy in
case he wants to comment.
> Also, there are two ways of reading this. One is that by specifying
> boot_delay=, lpj= is set to a sane value. The other (intended?) is
> that in order to use this option, you must also specify lpj=.
Maybe this is better?
boot_delay= Milliseconds to delay each printk during boot.
- Values larger than 10 seconds (10000) are changed to
- no delay (0).
+ Only works if CONFIG_BOOT_PRINTK_DELAY is enabled,
+ and you may also have to specify "lpj=". Boot_delay
+ values larger than 10 seconds (10000) are changed
+ to no delay (0).
Format: integer
bootconfig [KNL]
next prev parent reply other threads:[~2023-01-23 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 18:04 [PATCH] printk: Document that CONFIG_BOOT_PRINTK_DELAY required for boot_delay= Bjorn Helgaas
2023-01-23 18:18 ` Matthew Wilcox
2023-01-23 20:44 ` Bjorn Helgaas [this message]
2023-01-23 21:28 ` Randy Dunlap
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=20230123204419.GA980727@bhelgaas \
--to=helgaas@kernel.org \
--cc=bhelgaas@google.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=willy@infradead.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