Skip to content

Commit

Permalink
rasdaemon: add DE error type for AMD
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ruidong Tian committed Dec 4, 2024
1 parent e6cc13e commit 1677233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ras-events.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
3 changes: 3 additions & 0 deletions ras-mc-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1677233

Please sign in to comment.