From: Mahesh J Salgaonkar <mahesh@linux.ibm.com>
To: Ganesh Goudar <ganeshgr@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/mce: log the error for all unrecoverable errors
Date: Thu, 8 Dec 2022 20:32:22 +0530 [thread overview]
Message-ID: <20221208150222.25c5kjlb42gxlkvq@in.ibm.com> (raw)
In-Reply-To: <20221114075607.30631-1-ganeshgr@linux.ibm.com>
On 2022-11-14 13:26:07 Mon, Ganesh Goudar wrote:
> machine_check_log_err() is not getting called for all
> unrecoverable errors, And we are missing to log the error.
>
> Raise irq work in save_mce_event() for unrecoverable errors,
> So that we log the error from MCE event handling block in
> timer handler.
Thanks for fixing this.
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
>
> Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
> ---
> arch/powerpc/kernel/mce.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c
> index 6c5d30fba766..a1cb2172eb7b 100644
> --- a/arch/powerpc/kernel/mce.c
> +++ b/arch/powerpc/kernel/mce.c
> @@ -131,6 +131,13 @@ void save_mce_event(struct pt_regs *regs, long handled,
> if (mce->error_type == MCE_ERROR_TYPE_UE)
> mce->u.ue_error.ignore_event = mce_err->ignore_event;
>
> + /*
> + * Raise irq work, So that we don't miss to log the error for
> + * unrecoverable errors.
> + */
> + if (mce->disposition == MCE_DISPOSITION_NOT_RECOVERED)
> + mce_irq_work_queue();
> +
> if (!addr)
> return;
>
> @@ -235,7 +242,6 @@ static void machine_check_ue_event(struct machine_check_event *evt)
> evt, sizeof(*evt));
>
> /* Queue work to process this event later. */
> - mce_irq_work_queue();
> }
With your patch now we can see RTAS event logged for other
unrecoverable errors as well.
[ 573.006337] Disabling lock debugging due to kernel taint
[ 573.006357] MCE: CPU27: machine check (Severe) Real address Load/Store (foreign/control memory) [Not recovered]
[ 573.006362] MCE: CPU27: PID: 10580 Comm: inject-ra-err NIP: [0000000010000df4]
[ 573.006366] MCE: CPU27: Initiator CPU
[ 573.006369] MCE: CPU27: Unknown
[ 573.006426] RTAS: event: 1, Type: Platform Error (224), Severity: 3
Tested-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Thanks,
-Mahesh.
prev parent reply other threads:[~2022-12-08 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 7:56 [PATCH] powerpc/mce: log the error for all unrecoverable errors Ganesh Goudar
2022-12-08 15:02 ` Mahesh J Salgaonkar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221208150222.25c5kjlb42gxlkvq@in.ibm.com \
--to=mahesh@linux.ibm.com \
--cc=ganeshgr@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).