aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorGanesh Goudar <[email protected]>2019-09-04 13:29:49 +0530
committerMichael Ellerman <[email protected]>2019-09-18 00:03:51 +1000
commite7ca44ed3ba77fc26cf32650bb71584896662474 (patch)
treee7ba3627c079e272068c76af5582ca2999f9ed9f /lib/test_overflow.c
parentad9b48c52296ddb7620e3f2b66a7479b78632dff (diff)
powerpc: dump kernel log before carrying out fadump or kdump
Since commit 4388c9b3a6ee ("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: 4388c9b3a6ee ("powerpc: Do not send system reset request through the oops path") Reviewed-by: Mahesh Salgaonkar <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Signed-off-by: Ganesh Goudar <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions