提交 d12a969e 编写于 作者: Y Yazen Ghannam 提交者: Borislav Petkov

EDAC, amd64: Add Deferred Error type

Currently, deferred errors are classified as correctable in EDAC. Add a
new error type for deferred errors so that they are correctly reported
to the user.
Signed-off-by: NYazen Ghannam <Yazen.Ghannam@amd.com>
Cc: Aravind Gopalakrishnan <aravindksg.lkml@gmail.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1479423463-8536-7-git-send-email-Yazen.Ghannam@amd.comSigned-off-by: NBorislav Petkov <bp@suse.de>
上级 e70984d9
...@@ -2165,6 +2165,8 @@ static void __log_ecc_error(struct mem_ctl_info *mci, struct err_info *err, ...@@ -2165,6 +2165,8 @@ static void __log_ecc_error(struct mem_ctl_info *mci, struct err_info *err,
err_type = HW_EVENT_ERR_CORRECTED; err_type = HW_EVENT_ERR_CORRECTED;
else if (ecc_type == 1) else if (ecc_type == 1)
err_type = HW_EVENT_ERR_UNCORRECTED; err_type = HW_EVENT_ERR_UNCORRECTED;
else if (ecc_type == 3)
err_type = HW_EVENT_ERR_DEFERRED;
else { else {
WARN(1, "Something is rotten in the state of Denmark.\n"); WARN(1, "Something is rotten in the state of Denmark.\n");
return; return;
......
...@@ -134,6 +134,7 @@ enum dev_type { ...@@ -134,6 +134,7 @@ enum dev_type {
enum hw_event_mc_err_type { enum hw_event_mc_err_type {
HW_EVENT_ERR_CORRECTED, HW_EVENT_ERR_CORRECTED,
HW_EVENT_ERR_UNCORRECTED, HW_EVENT_ERR_UNCORRECTED,
HW_EVENT_ERR_DEFERRED,
HW_EVENT_ERR_FATAL, HW_EVENT_ERR_FATAL,
HW_EVENT_ERR_INFO, HW_EVENT_ERR_INFO,
}; };
...@@ -145,6 +146,8 @@ static inline char *mc_event_error_type(const unsigned int err_type) ...@@ -145,6 +146,8 @@ static inline char *mc_event_error_type(const unsigned int err_type)
return "Corrected"; return "Corrected";
case HW_EVENT_ERR_UNCORRECTED: case HW_EVENT_ERR_UNCORRECTED:
return "Uncorrected"; return "Uncorrected";
case HW_EVENT_ERR_DEFERRED:
return "Deferred";
case HW_EVENT_ERR_FATAL: case HW_EVENT_ERR_FATAL:
return "Fatal"; return "Fatal";
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册