All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] add a new option "testonly"
@ 2014-01-15 12:53 Baoquan He
       [not found] ` <1389790430-17808-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Baoquan He @ 2014-01-15 12:53 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: harald-H+wXaHxf7aLQT0dZR+AlfA, dyoung-H+wXaHxf7aLQT0dZR+AlfA,
	vgoyal-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA,
	Baoquan He

Since 04watchdog is used only for test cases. If watchdog want to
be handled, the relevant operation need be differentiated. In this
patch add a new option "testonly" to set. User can set
"--testonly" or "--no-testonly" to decide current execution is for
test cases running or building normal initram.
---
 dracut-bash-completion.sh |  3 ++-
 dracut.8.asc              |  7 +++++++
 dracut.conf               |  4 ++++
 dracut.conf.5.asc         |  3 +++
 dracut.sh                 | 10 +++++++++-
 5 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/dracut-bash-completion.sh b/dracut-bash-completion.sh
index 9f359c6..b713b14 100644
--- a/dracut-bash-completion.sh
+++ b/dracut-bash-completion.sh
@@ -34,7 +34,8 @@ _dracut() {
                               --local --hostonly --no-hostonly --fstab --help --bzip2 --lzma
                               --xz --no-compress --gzip --list-modules --show-modules --keep
                               --printsize --regenerate-all --noimageifnotneeded --early-microcode
-                              --no-early-microcode --print-cmdline --prelink --noprelink'
+                              --no-early-microcode --print-cmdline --prelink --noprelink
+                              --testonly --no-testonly'
 
                        [ARG]='-a -m -o -d -I -k -c -L --kver --add --force-add --add-drivers
                               --omit-drivers --modules --omit --drivers --filesystems --install
diff --git a/dracut.8.asc b/dracut.8.asc
index d381dcf..1115f69 100644
--- a/dracut.8.asc
+++ b/dracut.8.asc
@@ -203,6 +203,13 @@ example:
 **--nolvmconf**::
     do not include local _/etc/lvm/lvm.conf_
 
+
+**--testonly**::
+    execute to run test cases
+
+**--no-testonly**::
+    execute to build normal initram
+
 **--fscks** [LIST]::
     add a space-separated list of fsck tools, in addition to _dracut.conf_'s
     specification; the installation is opportunistic (non-existing tools are
diff --git a/dracut.conf b/dracut.conf
index 8533f99..d18d185 100644
--- a/dracut.conf
+++ b/dracut.conf
@@ -33,6 +33,10 @@
 
 # install local /etc/lvm/lvm.conf
 #lvmconf="no"
+#
+
+#execute to build normal initram, not for test cases running 
+#testonly="no"
 
 # A list of fsck tools to install. If it's not specified, module's hardcoded
 # default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check
diff --git a/dracut.conf.5.asc b/dracut.conf.5.asc
index 30b7e03..3921f61 100644
--- a/dracut.conf.5.asc
+++ b/dracut.conf.5.asc
@@ -104,6 +104,9 @@ If chrooted to another root other than the real root device, use --fstab and pro
 *lvmconf=*"__{yes|no}__"::
     Include local _/etc/lvm/lvm.conf_ (default=yes)
 
+*testonly=*"__{yes|no}__"::
+    execute to run test cases only (default=no)
+
 *fscks=*" __<fsck tools>__ "::
     Add a space-separated list of fsck tools. If nothing is specified, the
     default is: "umount mount /sbin/fsck* xfs_db xfs_check xfs_repair e2fsck
diff --git a/dracut.sh b/dracut.sh
index 11dcd0e..88920b3 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -107,6 +107,8 @@ Creates initial ramdisk images for preloading modules
   --nomdadmconf         Do not include local /etc/mdadm.conf
   --lvmconf             Include local /etc/lvm/lvm.conf
   --nolvmconf           Do not include local /etc/lvm/lvm.conf
+  --testonly            Execute to run test cases
+  --no-testonly         Execute for real initram building 
   --fscks [LIST]        Add a space-separated list of fsck helpers.
   --nofscks             Inhibit installation of any fsck helpers.
   --ro-mnt              Mount / and /usr read-only by default.
@@ -333,6 +335,8 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
     --long nomdadmconf \
     --long lvmconf \
     --long nolvmconf \
+    --long testonly \
+    --long no-testonly \
     --long debug \
     --long profile \
     --long sshkey: \
@@ -417,6 +421,8 @@ while :; do
         --nomdadmconf) mdadmconf_l="no";;
         --lvmconf)     lvmconf_l="yes";;
         --nolvmconf)   lvmconf_l="no";;
+        --testonly)    testonly_l="yes";;
+        --no-testonly) testonly_l="no";;
         --debug)       debug="yes";;
         --profile)     profile="yes";;
         --sshkey)      sshkey="$2"; shift;;
@@ -682,6 +688,8 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
 [[ $use_fstab_l ]] && use_fstab=$use_fstab_l
 [[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l
 [[ $lvmconf_l ]] && lvmconf=$lvmconf_l
+[[ $testonly_l ]] && testonly=$testonly_l
+[[ $testonly ]] || testonly=no
 [[ $dracutbasedir ]] || dracutbasedir=/usr/lib/dracut
 [[ $fw_dir ]] || fw_dir="/lib/firmware/updates /lib/firmware"
 [[ $tmpdir_l ]] && tmpdir="$tmpdir_l"
@@ -1062,7 +1070,7 @@ export initdir dracutbasedir dracutmodules \
     debug host_fs_types host_devs sshkey add_fstab \
     DRACUT_VERSION udevdir prefix filesystems drivers \
     systemdutildir systemdsystemunitdir systemdsystemconfdir \
-    host_modalias host_modules
+    host_modalias host_modules testonly
 
 mods_to_load=""
 # check all our modules to see if they should be sourced.
-- 
1.8.3.1

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

* [PATCH 2/3] set testonly for the relevant test cases
       [not found] ` <1389790430-17808-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2014-01-15 12:53   ` Baoquan He
  2014-01-15 12:53   ` [PATCH 3/3] insert wdt kernel modules when watchdog is active Baoquan He
  2014-01-15 20:16   ` [PATCH 1/3] add a new option "testonly" Vivek Goyal
  2 siblings, 0 replies; 8+ messages in thread
From: Baoquan He @ 2014-01-15 12:53 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: harald-H+wXaHxf7aLQT0dZR+AlfA, dyoung-H+wXaHxf7aLQT0dZR+AlfA,
	vgoyal-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA,
	Baoquan He

Now only watchdog module is for test only. So test cases which
relates to watchdog need be set the testonly option. So add
"--testonly" to the relevant test cases.
---
 test/TEST-01-BASIC/test.sh     | 1 +
 test/TEST-03-USR-MOUNT/test.sh | 1 +
 test/TEST-20-NFS/test.sh       | 1 +
 test/TEST-40-NBD/test.sh       | 1 +
 test/TEST-50-MULTINIC/test.sh  | 1 +
 5 files changed, 5 insertions(+)

diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
index f857fd4..f3fb1cc 100755
--- a/test/TEST-01-BASIC/test.sh
+++ b/test/TEST-01-BASIC/test.sh
@@ -86,6 +86,7 @@ test_setup() {
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
     )
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
+	--testonly \
 	-a "debug watchdog" \
 	-d "piix ide-gd_mod ata_piix ext3 sd_mod i6300esb ib700wdt" \
 	-f $TESTDIR/initramfs.testing $KVERSION || return 1
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
index b3d709e..b8ce951 100755
--- a/test/TEST-03-USR-MOUNT/test.sh
+++ b/test/TEST-03-USR-MOUNT/test.sh
@@ -121,6 +121,7 @@ test_setup() {
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
     )
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
+	--testonly \
 	-a "debug watchdog" \
         -o "network" \
 	-d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esb ib700wdt" \
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
index 4f21d45..014e0eb 100755
--- a/test/TEST-20-NFS/test.sh
+++ b/test/TEST-20-NFS/test.sh
@@ -346,6 +346,7 @@ test_setup() {
 
     # Make client's dracut image
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
+        --testonly \
         -o "plymouth dash" \
         -a "debug watchdog" \
         -d "af_packet piix ide-gd_mod ata_piix sd_mod e1000 nfs sunrpc i6300esb" \
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
index 7cf64b1..6f99e72 100755
--- a/test/TEST-40-NBD/test.sh
+++ b/test/TEST-40-NBD/test.sh
@@ -357,6 +357,7 @@ test_setup() {
         -f $TESTDIR/initramfs.server $KVERSION || return 1
 
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
+        --testonly \
         -o "plymouth" \
         -a "debug watchdog" \
         -d "af_packet piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000 i6300esb ib700wdt" \
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
index add849c..e8ee80f 100755
--- a/test/TEST-50-MULTINIC/test.sh
+++ b/test/TEST-50-MULTINIC/test.sh
@@ -264,6 +264,7 @@ test_setup() {
 
     # Make server's dracut image
     $basedir/dracut.sh -l -i "$TESTDIR"/overlay / \
+        --testonly \
         -m "dash udev-rules base rootfs-block debug kernel-modules watchdog" \
         -d "af_packet piix ide-gd_mod ata_piix ext3 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd e1000 i6300esb ib700wdt" \
         -f "$TESTDIR"/initramfs.server "$KVERSION" || return 1
-- 
1.8.3.1

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

* [PATCH 3/3] insert wdt kernel modules when watchdog is active
       [not found] ` <1389790430-17808-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2014-01-15 12:53   ` [PATCH 2/3] set testonly for the relevant test cases Baoquan He
@ 2014-01-15 12:53   ` Baoquan He
  2014-01-15 20:16   ` [PATCH 1/3] add a new option "testonly" Vivek Goyal
  2 siblings, 0 replies; 8+ messages in thread
From: Baoquan He @ 2014-01-15 12:53 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: harald-H+wXaHxf7aLQT0dZR+AlfA, dyoung-H+wXaHxf7aLQT0dZR+AlfA,
	vgoyal-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA,
	Baoquan He

When watchdog is enabled in 1st kernel, then crash dump in kdump
kernel will be interrupted if watchdog is timeout. Since some
wdt drivers can stop the watchdog when its driver is loaded,
e.g iTCO_wdt, this can benefit crash dump.

Add watchdog driver which is active in system to initramfs, its
loading can stop watchdog.
---
 modules.d/04watchdog/module-setup.sh | 37 +++++++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 13 deletions(-)

diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh
index 44dce61..51d454b 100755
--- a/modules.d/04watchdog/module-setup.sh
+++ b/modules.d/04watchdog/module-setup.sh
@@ -14,18 +14,29 @@ depends() {
 
 # called by dracut
 install() {
-    inst_hook cmdline   00 "$moddir/watchdog.sh"
-    inst_hook cmdline   50 "$moddir/watchdog.sh"
-    inst_hook pre-trigger 00 "$moddir/watchdog.sh"
-    inst_hook initqueue 00 "$moddir/watchdog.sh"
-    inst_hook mount     00 "$moddir/watchdog.sh"
-    inst_hook mount     50 "$moddir/watchdog.sh"
-    inst_hook mount     99 "$moddir/watchdog.sh"
-    inst_hook pre-pivot 00 "$moddir/watchdog.sh"
-    inst_hook pre-pivot 99 "$moddir/watchdog.sh"
-    inst_hook cleanup   00 "$moddir/watchdog.sh"
-    inst_hook cleanup   99 "$moddir/watchdog.sh"
-    inst_hook emergency 02 "$moddir/watchdog-stop.sh"
-    inst_multiple -o wdctl
+    if [[$testonly = "yes" ]]; then
+        inst_hook cmdline   00 "$moddir/watchdog.sh"
+        inst_hook cmdline   50 "$moddir/watchdog.sh"
+        inst_hook pre-trigger 00 "$moddir/watchdog.sh"
+        inst_hook initqueue 00 "$moddir/watchdog.sh"
+        inst_hook mount     00 "$moddir/watchdog.sh"
+        inst_hook mount     50 "$moddir/watchdog.sh"
+        inst_hook mount     99 "$moddir/watchdog.sh"
+        inst_hook pre-pivot 00 "$moddir/watchdog.sh"
+        inst_hook pre-pivot 99 "$moddir/watchdog.sh"
+        inst_hook cleanup   00 "$moddir/watchdog.sh"
+        inst_hook cleanup   99 "$moddir/watchdog.sh"
+        inst_hook emergency 02 "$moddir/watchdog-stop.sh"
+        inst_multiple -o wdctl
+    fi
 }
 
+installkernel() {
+    if [[$testonly = "no" ]]; then
+        wdt=$(lsmod|cut -f1 -d' '|grep "wdt$")
+        if [ -n "$wdt" ]; then
+            instmods $wdt
+            [ "$wdt" = "iTCO_wdt" ] && instmods lpc_ich
+        fi
+    fi
+}
-- 
1.8.3.1

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

* Re: [PATCH 1/3] add a new option "testonly"
       [not found] ` <1389790430-17808-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2014-01-15 12:53   ` [PATCH 2/3] set testonly for the relevant test cases Baoquan He
  2014-01-15 12:53   ` [PATCH 3/3] insert wdt kernel modules when watchdog is active Baoquan He
@ 2014-01-15 20:16   ` Vivek Goyal
       [not found]     ` <20140115201608.GA13541-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2 siblings, 1 reply; 8+ messages in thread
From: Vivek Goyal @ 2014-01-15 20:16 UTC (permalink / raw)
  To: Baoquan He
  Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA,
	dyoung-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA

Bao,

This is harald's call but personally to me this testonly options look
little odd.

I am looking at old discussion here.

http://thread.gmane.org/gmane.linux.kernel.initramfs/3370

So harald's suggestion of using systemd looks fine. It is just a matter of
figuring out who should load watchdog modules in initramfs.

I personally feel it should be watchdog module but if harald does not
like it, we can atleast for the time being keep that logic in kdump
module. But trying to create this testonly mode feels odd to me.

Harald, can you please let us know your preference on this. Modify
04watchdog module to include relevant drivers in hostonly mode or
push this logic into kdump module for now.

Thanks
Vivek

On Wed, Jan 15, 2014 at 08:53:48PM +0800, Baoquan He wrote:
> Since 04watchdog is used only for test cases. If watchdog want to
> be handled, the relevant operation need be differentiated. In this
> patch add a new option "testonly" to set. User can set
> "--testonly" or "--no-testonly" to decide current execution is for
> test cases running or building normal initram.
> ---
>  dracut-bash-completion.sh |  3 ++-
>  dracut.8.asc              |  7 +++++++
>  dracut.conf               |  4 ++++
>  dracut.conf.5.asc         |  3 +++
>  dracut.sh                 | 10 +++++++++-
>  5 files changed, 25 insertions(+), 2 deletions(-)
> 
> diff --git a/dracut-bash-completion.sh b/dracut-bash-completion.sh
> index 9f359c6..b713b14 100644
> --- a/dracut-bash-completion.sh
> +++ b/dracut-bash-completion.sh
> @@ -34,7 +34,8 @@ _dracut() {
>                                --local --hostonly --no-hostonly --fstab --help --bzip2 --lzma
>                                --xz --no-compress --gzip --list-modules --show-modules --keep
>                                --printsize --regenerate-all --noimageifnotneeded --early-microcode
> -                              --no-early-microcode --print-cmdline --prelink --noprelink'
> +                              --no-early-microcode --print-cmdline --prelink --noprelink
> +                              --testonly --no-testonly'
>  
>                         [ARG]='-a -m -o -d -I -k -c -L --kver --add --force-add --add-drivers
>                                --omit-drivers --modules --omit --drivers --filesystems --install
> diff --git a/dracut.8.asc b/dracut.8.asc
> index d381dcf..1115f69 100644
> --- a/dracut.8.asc
> +++ b/dracut.8.asc
> @@ -203,6 +203,13 @@ example:
>  **--nolvmconf**::
>      do not include local _/etc/lvm/lvm.conf_
>  
> +
> +**--testonly**::
> +    execute to run test cases
> +
> +**--no-testonly**::
> +    execute to build normal initram
> +
>  **--fscks** [LIST]::
>      add a space-separated list of fsck tools, in addition to _dracut.conf_'s
>      specification; the installation is opportunistic (non-existing tools are
> diff --git a/dracut.conf b/dracut.conf
> index 8533f99..d18d185 100644
> --- a/dracut.conf
> +++ b/dracut.conf
> @@ -33,6 +33,10 @@
>  
>  # install local /etc/lvm/lvm.conf
>  #lvmconf="no"
> +#
> +
> +#execute to build normal initram, not for test cases running 
> +#testonly="no"
>  
>  # A list of fsck tools to install. If it's not specified, module's hardcoded
>  # default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check
> diff --git a/dracut.conf.5.asc b/dracut.conf.5.asc
> index 30b7e03..3921f61 100644
> --- a/dracut.conf.5.asc
> +++ b/dracut.conf.5.asc
> @@ -104,6 +104,9 @@ If chrooted to another root other than the real root device, use --fstab and pro
>  *lvmconf=*"__{yes|no}__"::
>      Include local _/etc/lvm/lvm.conf_ (default=yes)
>  
> +*testonly=*"__{yes|no}__"::
> +    execute to run test cases only (default=no)
> +
>  *fscks=*" __<fsck tools>__ "::
>      Add a space-separated list of fsck tools. If nothing is specified, the
>      default is: "umount mount /sbin/fsck* xfs_db xfs_check xfs_repair e2fsck
> diff --git a/dracut.sh b/dracut.sh
> index 11dcd0e..88920b3 100755
> --- a/dracut.sh
> +++ b/dracut.sh
> @@ -107,6 +107,8 @@ Creates initial ramdisk images for preloading modules
>    --nomdadmconf         Do not include local /etc/mdadm.conf
>    --lvmconf             Include local /etc/lvm/lvm.conf
>    --nolvmconf           Do not include local /etc/lvm/lvm.conf
> +  --testonly            Execute to run test cases
> +  --no-testonly         Execute for real initram building 
>    --fscks [LIST]        Add a space-separated list of fsck helpers.
>    --nofscks             Inhibit installation of any fsck helpers.
>    --ro-mnt              Mount / and /usr read-only by default.
> @@ -333,6 +335,8 @@ TEMP=$(unset POSIXLY_CORRECT; getopt \
>      --long nomdadmconf \
>      --long lvmconf \
>      --long nolvmconf \
> +    --long testonly \
> +    --long no-testonly \
>      --long debug \
>      --long profile \
>      --long sshkey: \
> @@ -417,6 +421,8 @@ while :; do
>          --nomdadmconf) mdadmconf_l="no";;
>          --lvmconf)     lvmconf_l="yes";;
>          --nolvmconf)   lvmconf_l="no";;
> +        --testonly)    testonly_l="yes";;
> +        --no-testonly) testonly_l="no";;
>          --debug)       debug="yes";;
>          --profile)     profile="yes";;
>          --sshkey)      sshkey="$2"; shift;;
> @@ -682,6 +688,8 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
>  [[ $use_fstab_l ]] && use_fstab=$use_fstab_l
>  [[ $mdadmconf_l ]] && mdadmconf=$mdadmconf_l
>  [[ $lvmconf_l ]] && lvmconf=$lvmconf_l
> +[[ $testonly_l ]] && testonly=$testonly_l
> +[[ $testonly ]] || testonly=no
>  [[ $dracutbasedir ]] || dracutbasedir=/usr/lib/dracut
>  [[ $fw_dir ]] || fw_dir="/lib/firmware/updates /lib/firmware"
>  [[ $tmpdir_l ]] && tmpdir="$tmpdir_l"
> @@ -1062,7 +1070,7 @@ export initdir dracutbasedir dracutmodules \
>      debug host_fs_types host_devs sshkey add_fstab \
>      DRACUT_VERSION udevdir prefix filesystems drivers \
>      systemdutildir systemdsystemunitdir systemdsystemconfdir \
> -    host_modalias host_modules
> +    host_modalias host_modules testonly
>  
>  mods_to_load=""
>  # check all our modules to see if they should be sourced.
> -- 
> 1.8.3.1

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

* Re: [PATCH 1/3] add a new option "testonly"
       [not found]     ` <20140115201608.GA13541-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2014-01-16  2:06       ` Dave Young
       [not found]         ` <20140116020647.GD3807-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
  2014-01-20  2:28       ` Baoquan He
  1 sibling, 1 reply; 8+ messages in thread
From: Dave Young @ 2014-01-16  2:06 UTC (permalink / raw)
  To: Vivek Goyal
  Cc: Baoquan He, initramfs-u79uwXL29TY76Z2rM5mHXA,
	harald-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA

On 01/15/14 at 03:16pm, Vivek Goyal wrote:
> Bao,
> 
> This is harald's call but personally to me this testonly options look
> little odd.
> 
> I am looking at old discussion here.
> 
> http://thread.gmane.org/gmane.linux.kernel.initramfs/3370
> 
> So harald's suggestion of using systemd looks fine. It is just a matter of
> figuring out who should load watchdog modules in initramfs.
> 
> I personally feel it should be watchdog module but if harald does not
> like it, we can atleast for the time being keep that logic in kdump
> module. But trying to create this testonly mode feels odd to me.
> 
> Harald, can you please let us know your preference on this. Modify
> 04watchdog module to include relevant drivers in hostonly mode or
> push this logic into kdump module for now.
> 

Adding wdt stuff in dracut would also help diskless system and NFS root system.

Thanks
Dave

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

* Re: [PATCH 1/3] add a new option "testonly"
       [not found]         ` <20140116020647.GD3807-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
@ 2014-01-16  2:12           ` Dave Young
  0 siblings, 0 replies; 8+ messages in thread
From: Dave Young @ 2014-01-16  2:12 UTC (permalink / raw)
  To: Vivek Goyal
  Cc: Baoquan He, initramfs-u79uwXL29TY76Z2rM5mHXA,
	harald-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA

On 01/16/14 at 10:06am, Dave Young wrote:
> On 01/15/14 at 03:16pm, Vivek Goyal wrote:
> > Bao,
> > 
> > This is harald's call but personally to me this testonly options look
> > little odd.
> > 
> > I am looking at old discussion here.
> > 
> > http://thread.gmane.org/gmane.linux.kernel.initramfs/3370
> > 
> > So harald's suggestion of using systemd looks fine. It is just a matter of
> > figuring out who should load watchdog modules in initramfs.
> > 
> > I personally feel it should be watchdog module but if harald does not
> > like it, we can atleast for the time being keep that logic in kdump
> > module. But trying to create this testonly mode feels odd to me.
> > 
> > Harald, can you please let us know your preference on this. Modify
> > 04watchdog module to include relevant drivers in hostonly mode or
> > push this logic into kdump module for now.
> > 
> 
> Adding wdt stuff in dracut would also help diskless system and NFS root system.

NFS root can use watchdog in real root. so correct myself, it only benifits the
initramfs-only system.

Thanks
Dave

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

* Re: [PATCH 1/3] add a new option "testonly"
       [not found]     ` <20140115201608.GA13541-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2014-01-16  2:06       ` Dave Young
@ 2014-01-20  2:28       ` Baoquan He
       [not found]         ` <20140120022848.GA18942-je1gSBvt1TeLcxizHhUEZR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Baoquan He @ 2014-01-20  2:28 UTC (permalink / raw)
  To: Vivek Goyal
  Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA,
	dyoung-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA

On 01/15/14 at 03:16pm, Vivek Goyal wrote:
> Bao,
> 
> This is harald's call but personally to me this testonly options look
> little odd.

Yeah, it does look odd. But I don't want this to affect the existed test
cases. 

> 
> I am looking at old discussion here.
> 
> http://thread.gmane.org/gmane.linux.kernel.initramfs/3370
> 
> So harald's suggestion of using systemd looks fine. It is just a matter of
> figuring out who should load watchdog modules in initramfs.
> 
> I personally feel it should be watchdog module but if harald does not
> like it, we can atleast for the time being keep that logic in kdump
> module. But trying to create this testonly mode feels odd to me.

Yeah, agree. For the time being, only iTCO_wdt need load module and
satisfacory. However, there are many kinds of watchdog with different
implementation. Finally, a independent dracut module may be needed, it
can be put into dracut as a independent folder, e.g 06wdt which is
different then 04watchdog. 

> 
> Harald, can you please let us know your preference on this. Modify
> 04watchdog module to include relevant drivers in hostonly mode or
> push this logic into kdump module for now.
> 
> Thanks
> Vivek
> 
> On Wed, Jan 15, 2014 at 08:53:48PM +0800, Baoquan He wrote:

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

* Re: [PATCH 1/3] add a new option "testonly"
       [not found]         ` <20140120022848.GA18942-je1gSBvt1TeLcxizHhUEZR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
@ 2014-01-20 18:51           ` Vivek Goyal
  0 siblings, 0 replies; 8+ messages in thread
From: Vivek Goyal @ 2014-01-20 18:51 UTC (permalink / raw)
  To: Baoquan He
  Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA,
	dyoung-H+wXaHxf7aLQT0dZR+AlfA, chaowang-H+wXaHxf7aLQT0dZR+AlfA

On Mon, Jan 20, 2014 at 10:28:48AM +0800, Baoquan He wrote:

[..]

> > I personally feel it should be watchdog module but if harald does not
> > like it, we can atleast for the time being keep that logic in kdump
> > module. But trying to create this testonly mode feels odd to me.
> 
> Yeah, agree. For the time being, only iTCO_wdt need load module and
> satisfacory. However, there are many kinds of watchdog with different
> implementation. Finally, a independent dracut module may be needed, it
> can be put into dracut as a independent folder, e.g 06wdt which is
> different then 04watchdog. 

I think creating another watchdog module 06wdt does not make much sense.
Eiter this logic needs to be merged into existing watchdog module 04wdt
or we modify kdump module to load watchdog drivers in kdump initramfs
as a short term approach till we can convince harald that keeping this
logic in 04watchdog is a good idea.

Thanks
Vivek

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

end of thread, other threads:[~2014-01-20 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 12:53 [PATCH 1/3] add a new option "testonly" Baoquan He
     [not found] ` <1389790430-17808-1-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-01-15 12:53   ` [PATCH 2/3] set testonly for the relevant test cases Baoquan He
2014-01-15 12:53   ` [PATCH 3/3] insert wdt kernel modules when watchdog is active Baoquan He
2014-01-15 20:16   ` [PATCH 1/3] add a new option "testonly" Vivek Goyal
     [not found]     ` <20140115201608.GA13541-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-01-16  2:06       ` Dave Young
     [not found]         ` <20140116020647.GD3807-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2014-01-16  2:12           ` Dave Young
2014-01-20  2:28       ` Baoquan He
     [not found]         ` <20140120022848.GA18942-je1gSBvt1TeLcxizHhUEZR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2014-01-20 18:51           ` Vivek Goyal

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.