- introduce-crashboot-kernel-command-line-parameter.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     introduce crashboot kernel command line parameter

has been removed from the -mm tree.  Its filename is

     introduce-crashboot-kernel-command-line-parameter.patch

This patch was dropped because an updated version was merged

------------------------------------------------------
Subject: introduce crashboot kernel command line parameter
From: Vivek Goyal <vgoyal@xxxxxxxxxx>


o Add kernel command line option "crashboot"

o This option is an indication to the kernel that kernel is booting in an
  unreliable environment where possibly BIOS execution has been skipped
  and devices are left operational or in unknown state.

o Kernel, especially device drivers can use this option to take special
  actions like soft-resetting the device, relaxing some of the rules
  to make sure kernel can boot/device driver can initiliaze in this
  environment.

o As of today this option is useful to Kdump. Kdump will pass this option
  to second kernel to improve the reliability of successful kenrel boot/
  device driver initialization.

Signed-off-by: Vivek Goyal <vgoyal@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 Documentation/kernel-parameters.txt |    9 +++++++++
 include/linux/init.h                |    1 +
 init/main.c                         |   19 +++++++++++++++++++
 3 files changed, 29 insertions(+)

diff -puN Documentation/kernel-parameters.txt~introduce-crashboot-kernel-command-line-parameter Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt~introduce-crashboot-kernel-command-line-parameter
+++ a/Documentation/kernel-parameters.txt
@@ -408,6 +408,15 @@ running once the system is up.
 			[KNL] Reserve a chunk of physical memory to
 			hold a kernel to switch to with kexec on panic.
 
+	crashboot	[KNL] Use this if kernel is booting in a potentially
+			unreliable environement. For ex. kdump, where new
+			kernel is booting after the first kernel crash and
+			BIOS has been skipped and devices are in unknown
+			state.
+
+			Device drivers might soft reset the devices before
+			doing further device initialization.
+
 	cs4232=		[HW,OSS]
 			Format: <io>,<irq>,<dma>,<dma2>,<mpuio>,<mpuirq>
 
diff -puN include/linux/init.h~introduce-crashboot-kernel-command-line-parameter include/linux/init.h
--- a/include/linux/init.h~introduce-crashboot-kernel-command-line-parameter
+++ a/include/linux/init.h
@@ -68,6 +68,7 @@ extern initcall_t __security_initcall_st
 
 /* Defined in init/main.c */
 extern char saved_command_line[];
+extern unsigned int crash_boot;
 
 /* used by init/main.c */
 extern void setup_arch(char **);
diff -puN init/main.c~introduce-crashboot-kernel-command-line-parameter init/main.c
--- a/init/main.c~introduce-crashboot-kernel-command-line-parameter
+++ a/init/main.c
@@ -125,6 +125,17 @@ char saved_command_line[COMMAND_LINE_SIZ
 static char *execute_command;
 static char *ramdisk_execute_command;
 
+/*
+ * If set, indicates that kernel is booting in an unreliable environment.
+ * For ex. kdump situaiton where previous kernel has crashed, BIOS has been
+ * skipped and devices will be in unknown state.
+ *
+ * Device drivers can use it to know that underlying device is in unknown
+ * state and might even be finishing commands issued from previous kernel's
+ * context.
+ */
+unsigned int crash_boot;
+
 /* Setup configured maximum number of CPUs to activate */
 static unsigned int max_cpus = NR_CPUS;
 
@@ -159,6 +170,14 @@ static int __init maxcpus(char *str)
 
 __setup("maxcpus=", maxcpus);
 
+static int __init set_crash_boot(char *str)
+{
+	crash_boot = 1;
+	return 1;
+}
+
+__setup("crashboot", set_crash_boot);
+
 static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
 char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
 static const char *panic_later, *panic_param;
_

Patches currently in -mm which might be from vgoyal@xxxxxxxxxx are

origin.patch
i2c-801-64bit-resource-fix.patch
powerpc-adding-the-use-of-the-firmware-soft-reset-nmi-to-kdump.patch
register-hot-added-memory-to-iomem-resource.patch
introduce-crashboot-kernel-command-line-parameter.patch
introduce-crashboot-kernel-command-line-parameter-fix.patch
kdump-cciss-driver-initialization-issue-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux