From 1677233a579ac5a4b6b4ee74293c015b76869c20 Mon Sep 17 00:00:00 2001 From: Ruidong Tian Date: Wed, 4 Dec 2024 10:52:09 +0800 Subject: [PATCH] rasdaemon: add DE error type for AMD hw_event_mc_err_type in kernel include HW_EVENT_ERR_DEFERRED for AMD, add this error type in rasdaemon. Signed-off-by: Ruidong Tian --- ras-events.h | 1 + ras-mc-handler.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ras-events.h b/ras-events.h index 87522e1..83d41df 100644 --- a/ras-events.h +++ b/ras-events.h @@ -76,6 +76,7 @@ struct pthread_data { enum hw_event_mc_err_type { HW_EVENT_ERR_CORRECTED, HW_EVENT_ERR_UNCORRECTED, + HW_EVENT_ERR_DEFERRED, HW_EVENT_ERR_FATAL, HW_EVENT_ERR_INFO, }; diff --git a/ras-mc-handler.c b/ras-mc-handler.c index d8e5d0d..fdd85a9 100644 --- a/ras-mc-handler.c +++ b/ras-mc-handler.c @@ -153,6 +153,9 @@ int ras_mc_event_handler(struct trace_seq *s, case HW_EVENT_ERR_UNCORRECTED: ev.error_type = "Uncorrected"; break; + case HW_EVENT_ERR_DEFERRED: + ev.error_type = "Deferred"; + break; case HW_EVENT_ERR_FATAL: ev.error_type = "Fatal"; break;