[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250217063335.22257-3-xueshuai@linux.alibaba.com>
Date: Mon, 17 Feb 2025 14:33:32 +0800
From: Shuai Xue <xueshuai@...ux.alibaba.com>
To: tony.luck@...el.com,
bp@...en8.de,
nao.horiguchi@...il.com
Cc: tglx@...utronix.de,
mingo@...hat.com,
dave.hansen@...ux.intel.com,
x86@...nel.org,
hpa@...or.com,
linmiaohe@...wei.com,
akpm@...ux-foundation.org,
peterz@...radead.org,
jpoimboe@...nel.org,
linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
baolin.wang@...ux.alibaba.com,
tianruidong@...ux.alibaba.com
Subject: [PATCH v2 2/5] x86/mce: dump error msg from severities
The message in severities is useful for identifying the type of MCE that
has occurred; dump it if it is valid.
Signed-off-by: Shuai Xue <xueshuai@...ux.alibaba.com>
---
arch/x86/kernel/cpu/mce/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c
index f2e730d4acc5..c1b945dbccdf 100644
--- a/arch/x86/kernel/cpu/mce/core.c
+++ b/arch/x86/kernel/cpu/mce/core.c
@@ -1456,6 +1456,8 @@ static void queue_task_work(struct mce_hw_err *err, char *msg, void (*func)(stru
if (count > 1)
return;
+ if (msg)
+ pr_err("%s\n", msg);
task_work_add(current, ¤t->mce_kill_me, TWA_RESUME);
}
--
2.39.3
Powered by blists - more mailing lists