All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT
@ 2024-06-05 17:47 Brian Masney
  2024-06-05 18:05 ` Javier Martinez Canillas
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Masney @ 2024-06-05 17:47 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, javierm

PANIC_TIMEOUT can also be controlled with the panic= kernel command line
option, so let's reference it in the Kconfig help. This option is already
documented in kernel-parameters.txt.

Signed-off-by: Brian Masney <bmasney@redhat.com>
---
 lib/Kconfig.debug | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 59b6765d86b8..a6eb7425b888 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT
 	  Set the timeout value (in seconds) until a reboot occurs when
 	  the kernel panics. If n = 0, then we wait forever. A timeout
 	  value n > 0 will wait n seconds before rebooting, while a timeout
-	  value n < 0 will reboot immediately.
+	  value n < 0 will reboot immediately. The kernel command line
+	  option panic= may be used to override this option.
 
 config LOCKUP_DETECTOR
 	bool
-- 
2.45.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT
  2024-06-05 17:47 [PATCH] lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT Brian Masney
@ 2024-06-05 18:05 ` Javier Martinez Canillas
  2024-06-05 18:11   ` Brian Masney
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Martinez Canillas @ 2024-06-05 18:05 UTC (permalink / raw)
  To: Brian Masney, akpm; +Cc: linux-kernel

Brian Masney <bmasney@redhat.com> writes:

Hello Brian,

> PANIC_TIMEOUT can also be controlled with the panic= kernel command line
> option, so let's reference it in the Kconfig help. This option is already
> documented in kernel-parameters.txt.
>
> Signed-off-by: Brian Masney <bmasney@redhat.com>
> ---
>  lib/Kconfig.debug | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 59b6765d86b8..a6eb7425b888 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT
>  	  Set the timeout value (in seconds) until a reboot occurs when
>  	  the kernel panics. If n = 0, then we wait forever. A timeout
>  	  value n > 0 will wait n seconds before rebooting, while a timeout
> -	  value n < 0 will reboot immediately.
> +	  value n < 0 will reboot immediately. The kernel command line
> +	  option panic= may be used to override this option.
>  

Thanks for adding this, I wasn't aware of that panic= cmdline before.

Maybe it could also be mentioned that the timeout can be overriden by
user-space using the /proc/sys/kernel/panic sysfs entry too ?

Regardless, the patch looks good to me.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT
  2024-06-05 18:05 ` Javier Martinez Canillas
@ 2024-06-05 18:11   ` Brian Masney
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Masney @ 2024-06-05 18:11 UTC (permalink / raw)
  To: Javier Martinez Canillas; +Cc: akpm, linux-kernel

On Wed, Jun 05, 2024 at 08:05:23PM +0200, Javier Martinez Canillas wrote:
> Brian Masney <bmasney@redhat.com> writes:
> 
> Hello Brian,
> 
> > PANIC_TIMEOUT can also be controlled with the panic= kernel command line
> > option, so let's reference it in the Kconfig help. This option is already
> > documented in kernel-parameters.txt.
> >
> > Signed-off-by: Brian Masney <bmasney@redhat.com>
> > ---
> >  lib/Kconfig.debug | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> > index 59b6765d86b8..a6eb7425b888 100644
> > --- a/lib/Kconfig.debug
> > +++ b/lib/Kconfig.debug
> > @@ -1043,7 +1043,8 @@ config PANIC_TIMEOUT
> >  	  Set the timeout value (in seconds) until a reboot occurs when
> >  	  the kernel panics. If n = 0, then we wait forever. A timeout
> >  	  value n > 0 will wait n seconds before rebooting, while a timeout
> > -	  value n < 0 will reboot immediately.
> > +	  value n < 0 will reboot immediately. The kernel command line
> > +	  option panic= may be used to override this option.
> >  
> 
> Thanks for adding this, I wasn't aware of that panic= cmdline before.
> 
> Maybe it could also be mentioned that the timeout can be overriden by
> user-space using the /proc/sys/kernel/panic sysfs entry too ?
> 
> Regardless, the patch looks good to me.
> 
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>

I can add that. I'll wait a few days send a v2 to see if there's any
other feedback.

Brian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-05 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05 17:47 [PATCH] lib/Kconfig.debug: document panic= command line option for PANIC_TIMEOUT Brian Masney
2024-06-05 18:05 ` Javier Martinez Canillas
2024-06-05 18:11   ` Brian Masney

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.