]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: dump kernel log before carrying out fadump or kdump
authorGanesh Goudar <ganeshgr@linux.ibm.com>
Wed, 4 Sep 2019 07:59:49 +0000 (13:29 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Sep 2019 14:03:51 +0000 (00:03 +1000)
commita38e1c9fce1c7787be2cc5d6de88c98d79f486dd
treee7ba3627c079e272068c76af5582ca2999f9ed9f
parent750debf0dfc151e7b8833cdfacc4b507dd2da873
powerpc: dump kernel log before carrying out fadump or kdump

Since commit b92cee803405 ("powerpc: Do not send system reset request
through the oops path"), pstore dmesg file is not updated when dump is
triggered from HMC. This commit modified system reset (sreset) handler
to invoke fadump or kdump (if configured), without pushing dmesg to
pstore. This leaves pstore to have old dmesg data which won't be much
of a help if kdump fails to capture the dump. This patch fixes that by
calling kmsg_dump() before heading to fadump ot kdump.

Fixes: b92cee803405 ("powerpc: Do not send system reset request through the oops path")
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190904075949.15607-1-ganeshgr@linux.ibm.com
arch/powerpc/kernel/traps.c