Your message dated Thu, 12 Feb 2015 16:48:52 +0000
with message-id <[email protected]>
and subject line Bug#776574: fixed in makedumpfile 1:1.5.7-5
has caused the Debian Bug report #776574,
regarding makedumpfile: Please enable firmware assisted dump
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
776574: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776574
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: makedumpfile
Version: 1:1.5.7-4
Severity: normal

Dear Maintainer,

Starting from POWER6, the firmware now has a capability to preserve the
partition memory dump during system crash and boot into a fresh copy of the
kernel with fully-reset system. This feature adds the necessary support to
exploit the dump capture capability provided by Power firmware. With this
feature support, the production kernel will register for firmware-assisted dump
using RTAS (Runtime Abstraction Service) calls and builds required ELF header
which then gets exported through '/proc/vmcore' in the second kernel after
crash. This feature improves Power serviceability by making it more robust
compared to current kdump mechanism on Linux

The proposed patch from Ubuntu enable the capture of firmware assisted dumps


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages makedumpfile depends on:
ii  libbz2-1.0  1.0.6-5
ii  libc6       2.19-1
ii  libdw1      0.159-4.1
ii  libelf1     0.159-4.1
ii  perl        5.18.2-4
ii  zlib1g      1:1.2.8.dfsg-1

Versions of packages makedumpfile recommends:
ii  crash        7.0.8-1
ii  kexec-tools  1:2.0.7-5

makedumpfile suggests no packages.

-- no debconf information
diff -Nru makedumpfile-1.5.7/debian/changelog makedumpfile-1.5.7/debian/changelog
--- makedumpfile-1.5.7/debian/changelog	2014-12-05 03:12:02.000000000 -0600
+++ makedumpfile-1.5.7/debian/changelog	2015-01-28 21:02:52.000000000 -0600
@@ -1,3 +1,10 @@
+makedumpfile (1:1.5.7-4ubuntu1) vivid; urgency=medium
+
+  [ Hari Bathini <[email protected]> ]
+  * Add powerpc firmware-assisted dump (fadump) for kdump-config
+
+ -- Chris J Arges <[email protected]>  Wed, 28 Jan 2015 21:00:17 -0600
+
 makedumpfile (1:1.5.7-4) experimental; urgency=medium
 
   * Enable kdump-tools to work as a systemd service
diff -Nru makedumpfile-1.5.7/debian/kdump-config makedumpfile-1.5.7/debian/kdump-config
--- makedumpfile-1.5.7/debian/kdump-config	2014-12-05 05:17:00.000000000 -0600
+++ makedumpfile-1.5.7/debian/kdump-config	2015-01-28 21:04:38.000000000 -0600
@@ -55,8 +55,19 @@
 # Constants
 vmcore_file=/proc/vmcore
 sys_kexec_crash=/sys/kernel/kexec_crash_loaded
+sys_fadump_enabled=/sys/kernel/fadump_enabled
+sys_fadump_registered=/sys/kernel/fadump_registered
 kexec_cmd_file=$KDUMP_COREDIR/kexec_cmd
 
+# DUMP_MODE = kdump/fadump
+# The default dump mode is kdump.
+DUMP_MODE="kdump"
+
+# If /sys/kernel/fadump_enabled is set to `1`, use fadump as dump mechanism
+if [ -e $sys_fadump_enabled ] && [ `cat $sys_fadump_enabled` -eq 1 ]; then
+	DUMP_MODE="fadump"
+fi
+
 # Utility Functions
 #
 function kdump_help()
@@ -65,14 +76,19 @@
 Usage:
 kdump-config {help|test|show|status|load|unload|savecore|propagate}"
   help      - print this page
-  test      - Do a dry-run of the load command.  Show the kernels and
-              parameters that will be used and echo the kexec command.
-              The kexec command will not be executed.
-  show      - Show kdump status, kexec command, and any current parameters.
-  status    - evaluate /sys/kernel/kexec_crash_loaded and print a message
+  test      - Do a dry-run of kdump kernel load command by showing
+              the kernels and parameters that will be used and echo'ing
+              the kexec command. The kexec command will not be executed.
+              If using fadump, check if required sysfs directories exist.
+  show      - Show dump mode, status, any current parameters.
+              Show kexec command for kdump.
+  status    - evaluate /sys/kernel/{kexec_crash_loaded,fadump_registered}
+              depending on dump mode. Print appropriate message
   load      - Locate the kdump kernel, debug kernel, and establish links for
               makedumpfile.  Then load the kdump kernel using kexec
+              If using fadump, register.
   unload    - unload the kdump kernel using kexec
+              If using fadump, unregister.
   savecore  - use previously made links to save /proc/vmcore
   propagate - Send public ssh key to remote host for passwordless connection
 
@@ -81,10 +97,13 @@
 
 function kdump_show()
 {
+	echo "DUMP_MODE:        $DUMP_MODE"
 	echo "USE_KDUMP:        $USE_KDUMP"
 	echo "KDUMP_SYSCTL:     $KDUMP_SYSCTL"
 	echo "KDUMP_COREDIR:    $KDUMP_COREDIR"
-	echo "crashkernel addr: $IOMEM_ADDR"
+	if [ "$DUMP_MODE" == "kdump" ]; then
+		echo "crashkernel addr: $IOMEM_ADDR"
+	fi
 
 	if [ -n "$SSH" ];then
 		echo "SSH:              $SSH"
@@ -100,6 +119,16 @@
 		echo "HOSTTAG:          $HOSTTAG"
 	fi
 
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		if [ -e $sys_fadump_registered ] &&
+			[ `cat $sys_fadump_registered` -eq 1 ] ; then
+			echo "current state:    ready to fadump";
+		else
+			echo "current state:    Not ready to fadump";
+		fi
+		return 0
+	fi
+
 	if [ -e $sys_kexec_crash -a `cat $sys_kexec_crash` -eq 1 ] ; then
 		echo "current state:    ready to kdump";
 	else
@@ -130,6 +159,29 @@
 	echo "  $KEXEC_CMD"
 }
 
+# check_fadump_support:  Other miscellaneous checks go here:
+# 1: if USE_KDUMP is 0, don't set up fadump.
+# 2: -e /sys/kernel/fadump_registered indicates that this kernel
+#    thinks it supports fadump
+#
+# Returns: none. prints warnings or exit
+function check_fadump_support()
+{
+	if [ -z "$USE_KDUMP" -o "$USE_KDUMP" == "0" ] ; then
+		log_failure_msg "$KDUMP_DEFAULTS: USE_KDUMP is not set or zero"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
+	if [ ! -e $sys_fadump_registered ]; then
+		log_failure_msg "fadump is not configured in this kernel."
+		log_failure_msg "Try passing \"fadump=on\" to enable fadump"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
+        if [ -n "$NFS" ] && [ -n "$SSH" ];then
+		log_failure_msg "\$SSH and \$NFS cannot be defined concurrently"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
+}
+
 # check_kdump_support:  Other miscellaneous checks go here:
 # 1: if USE_KDUMP is 0, don't set up kdump.
 # 2: -e /sys/kernel/kexec_crash loaded indicates that this kernel
@@ -241,6 +293,43 @@
 	return 0;
 }
 
+# Register firmware-assisted dump as the dump mechanism
+# Returns: none. prints warnings or exit
+function fadump_register()
+{
+	# set fadump registered sys node to `1` to register fadump
+	echo 1 > $sys_fadump_registered
+	rc=`cat $sys_fadump_registered`
+	if [ $rc -ne 1 ] ; then
+		log_failure_msg "fadump registering failed"
+		logger -t $NAME "fadump registering failed"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
+
+	log_success_msg "fadump registered successfully"
+	logger -t $NAME "fadump registered successfully"
+
+	# Last step: make sure panic_on_oops is enabled
+	if [ -x /sbin/sysctl -a "$KDUMP_SYSCTL" != " " ] ; then
+		sysctl -w $KDUMP_SYSCTL >/dev/null
+	fi
+}
+
+# Returns: none. prints warnings or exit
+function fadump_unregister()
+{
+	# set fadump registered sys node to `0` to un-register fadump
+	echo 0 > $sys_fadump_registered
+	rc=`cat $sys_fadump_registered`
+	if [ $rc -ne 0 ] ; then
+		log_failure_msg "fadump un-registering failed"
+		logger -t $NAME "fadump un-registering failed"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
+
+	log_success_msg "fadump un-registered successfully"
+	logger -t $NAME "fadump un-registered successfully"
+}
 
 #
 # Load the already determined kdump kernel and kdump initrd using kexec
@@ -579,30 +668,56 @@
 case "$1" in
   test)
 	DRY_RUN="true"
-	check_kdump_support;
-	locate_kdump_kernel;
-	kdump_load;
-	kdump_test
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		check_fadump_support
+	else
+		check_kdump_support;
+		locate_kdump_kernel;
+		kdump_load;
+		kdump_test
+	fi
 	;;
   show)
 	DRY_RUN="true"
-	check_kdump_support;
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		check_fadump_support;
+	else
+		check_kdump_support;
+	fi
 	kdump_show
 	;;
   load)
-	check_kdump_support;
-	locate_kdump_kernel;
-	kdump_load;
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		check_fadump_support;
+		fadump_register
+	else
+		check_kdump_support;
+		locate_kdump_kernel;
+		kdump_load
+	fi
 	;;
   unload)
-	kdump_unload;
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		fadump_unregister
+	else
+		kdump_unload
+	fi
 	;;
   status)
-	check_kdump_support;
-	if [ `cat $sys_kexec_crash` -eq 1 ] ; then
-		echo "current state   : ready to kdump";
+	if [ "$DUMP_MODE" == "fadump" ]; then
+		check_fadump_support
+		if [ `cat $sys_fadump_registered` -eq 1 ] ; then
+			echo "current state   : ready to fadump";
+		else
+			echo "current state   : Not ready to fadump";
+		fi
 	else
-		echo "current state   : Not ready to kdump";
+		check_kdump_support;
+		if [ `cat $sys_kexec_crash` -eq 1 ] ; then
+			echo "current state   : ready to kdump";
+		else
+			echo "current state   : Not ready to kdump";
+		fi
 	fi
 	exit 0;
 	;;

--- End Message ---
--- Begin Message ---
Source: makedumpfile
Source-Version: 1:1.5.7-5

We believe that the bug you reported is fixed in the latest version of
makedumpfile, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Louis Bouchard <[email protected]> (supplier of updated makedumpfile 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 30 Jan 2015 14:04:47 +0100
Source: makedumpfile
Binary: makedumpfile kdump-tools
Architecture: all amd64 source
Version: 1:1.5.7-5
Distribution: experimental
Urgency: medium
Maintainer: Louis Bouchard <[email protected]>
Changed-By: Louis Bouchard <[email protected]>
Closes: 776574 776582
Description: 
 kdump-tools - scripts and tools for automating kdump (Linux crash dumps)
 makedumpfile - VMcore extraction tool
Changes:
 makedumpfile (1:1.5.7-5) experimental; urgency=medium
 .
   * Fix panic_on_oops erratic handling
     Closes: #776582
 .
   [ Hari Bathini <[email protected]> ]
   * Add firmware assisted dump support
     Closes: #776574, LP: #1415562
Checksums-Sha1: 
 5479ed1d6addf94dc084812b355083f1df465680 2083 makedumpfile_1.5.7-5.dsc
 16427d952ce7d0426c8b4aecc92f2960cf7926d3 154008 makedumpfile_1.5.7.orig.tar.gz
 191c008e5a851670306b85d1855ff7e5cfc642fd 17188 
makedumpfile_1.5.7-5.debian.tar.xz
 48033d9fc61a4c558cdadff889440dc66cc3329d 132462 makedumpfile_1.5.7-5_amd64.deb
 d50178511c7e194fd5f2efbd4549d7d158195755 20576 kdump-tools_1.5.7-5_all.deb
Checksums-Sha256: 
 d35f1974aad5bb0fa151d3e5196617cdf3ea99bea1607f9a4571dd7e581cf5fd 2083 
makedumpfile_1.5.7-5.dsc
 acc79a22dfbccf334f8845beb4f86a01d570d0cdd883a2763aca62bf14f40318 154008 
makedumpfile_1.5.7.orig.tar.gz
 3d2f361f8bcd02bfa8f1319669b05be9295eaec4eea3fbca40d16deb23d5c2af 17188 
makedumpfile_1.5.7-5.debian.tar.xz
 1190304544c90052ccc49f6543a202dd36b97383c0f511cd711c61c165c5e8e8 132462 
makedumpfile_1.5.7-5_amd64.deb
 dd8a20e32b4b580fc5bd9d5d84928ba902006f482d2b8ea526434204dd3b468e 20576 
kdump-tools_1.5.7-5_all.deb
Files: 
 3b06ad94f4eeb1154655699691ac4890 2083 devel optional makedumpfile_1.5.7-5.dsc
 31668a6dfb8823dd0b7ac09d06fb902e 154008 devel optional 
makedumpfile_1.5.7.orig.tar.gz
 ae9d064545621b746b9e3f191118fe95 17188 devel optional 
makedumpfile_1.5.7-5.debian.tar.xz
 73a6f8c917796ede31a89ff8a91e9297 132462 devel optional 
makedumpfile_1.5.7-5_amd64.deb
 c85520cdf74a1b4311330adff3caeb39 20576 devel optional 
kdump-tools_1.5.7-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJU3NcCAAoJEIs9hnyCPnph0ioP/RYC4/yqmx/tjhfhBFapPsNi
b3KWV+ipqD+mO5Red0KCjtxUhvcgwCgLNbeoZIzpNvHsBBr48FN8nyW97ocee9D0
XHMjDZvHg4KEHXIZzzcR9Z4Y9JIrpougB0ExhcdqrEULL6vU75NSD+pFfeQWnDkU
LIVmhB9D9qJKzqW8NyMS4K0nM+8x2s3ARUC3FXI3bd1PdWUUi2W2CsVQi2AiWmG3
9rl3yHWmUmrx++l6Ohbdc6IVXbiHyLxfOMgXArSMzNReL50BbT2rEUhzddrhOS7/
TxBTCjrUruMp2WMG+3uoNMmRl2p6F68bwXNuZ2zgUQ6rt0jNWFrvuNLv77vfzsIf
jYDBJ2cwHDtLu6gNq4eu9y4tzxR0QcqIpJVEcWHNQwaGh/yTERyJQNn+e7I2zW4k
dcNUbTQkNR5gkcpc4KYCdhZB8BMejr5wxzgJA+vSIe9e9Em7C+VJAO0jID+nePB3
UPbCa8yyl6RQuA6d4khGWJlSyiNfESiL4R7n3YmJvaE9PmxSShXx1AEBk/Mdpz01
1fRyZSD1AjR9shefzS3DIB/umZTFRF/S6cVd8py63Rkpw5Hq5uuohajY99pzQV1w
UYwHF1BrTpQZAmwKCF3qtj+ZFsujJnK4rqC/6alHCXfrNzROvmQlLry+WSXxqnPS
F8p96S1y8xi5XG2zivjK
=/pgM
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to