Skip to contentSkip to conversation

printk: Document that CONFIG_BOOT_PRINTK_DELAY required for boot_delay=

PATCH Superseded Bjorn Helgaas 3 participants 4 messages Jan 23, 2023 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk: Document that CONFIG_BOOT_PRINTK_DELAY required for boot_delay=

From: Bjorn Helgaas <[email protected]>

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.

---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +3 -2
index 6cfa6e3996cf..b0b40b6a765c 100644
@@ -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).
 			Format: integer
 
 	bootconfig	[KNL]
Signature · 1 line
2.25.1
#1 lore raw
Quoted 16 lines · Bjorn Helgaas

From: Bjorn Helgaas <[email protected]>

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.

---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 6cfa6e3996cf..b0b40b6a765c 100644

Documentation/admin-guide/kernel-parameters.txt line 485

Quoted 8 lines
Documentation/admin-guide/kernel-parameters.txt +3 -2
@@ -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.

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=.

#2 lore raw
Quoted 19 lines · Matthew Wilcox
Quoted 18 lines · Bjorn Helgaas

From: Bjorn Helgaas <[email protected]>

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.

---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 6cfa6e3996cf..b0b40b6a765c 100644
@@ -480,8 +480,9 @@
 			See Documentation/block/cmdline-partition.rst
 
Quoted 9 lines

Documentation/admin-guide/kernel-parameters.txt line 485

Quoted 6 lines
Documentation/admin-guide/kernel-parameters.txt +3 -2
 	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.

Quoted 3 lines

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]

reviewer
#3 lore raw
Quoted 30 lines · Bjorn Helgaas
Quoted 19 lines · Matthew Wilcox
Quoted 18 lines · Bjorn Helgaas

From: Bjorn Helgaas <[email protected]>

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.

---
 Documentation/admin-guide/kernel-parameters.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 6cfa6e3996cf..b0b40b6a765c 100644
@@ -480,8 +480,9 @@
 			See Documentation/block/cmdline-partition.rst
 
Quoted 9 lines

Documentation/admin-guide/kernel-parameters.txt line 485

Quoted 6 lines
Documentation/admin-guide/kernel-parameters.txt +3 -2
 	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.

Quoted 3 lines

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.

I'm not opposed to a patch that clamps the max boot_delay to 10 seconds. I expect that my thinking in 2007 was that any larger value was just some random/garbage value so it should be ignored.

Quoted 3 lines
Quoted 3 lines

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=.

You probably should specify lpj= (e.g., from some previous boot log), as indicated in the BOOT_PRINTK_DELAY Kconfig help text in lib/Kconfig.debug.

Documentation/admin-guide/kernel-parameters.txt line 486

Quoted 10 lines

Maybe this is better?

Documentation/admin-guide/kernel-parameters.txt +4 -2
 	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

That's fine with me.

Signature · 1 line
~Randy