Subject: Re: [PATCH v2] powerpc: dump kernel log before carrying out fadump or kdump

From: Michael Ellerman <[email-masked]>
Date: Thu, 19 Sep 2019 20:25:48 +1000 (AEST)

On Wed, 2019-09-04 at 07:59:49 UTC, Ganesh Goudar wrote:
> 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-masked]>
> Reviewed-by: Nicholas Piggin <[email-masked]>
> Signed-off-by: Ganesh Goudar <[email-masked]>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/e7ca44ed3ba77fc26cf32650bb71584896662474

cheers