|
|
f27859 |
commit 2a1d217660351c08eb2f8bccebf939abba2f7e69
|
|
|
f27859 |
Author: Brian WoodsGhannam, Yazen <brian.woods@amd.comYazen.Ghannam@amd.com>
|
|
|
f27859 |
Date: Fri Nov 1 15:48:13 2019 +0100
|
|
|
f27859 |
|
|
|
f27859 |
rasdaemon: rename CPU_NAPLES cputype
|
|
|
f27859 |
|
|
|
f27859 |
Change CPU_NAPLES to CPU_AMD_SMCA to reflect that it isn't just NAPLES
|
|
|
f27859 |
that is supported, but AMD's Scalable Machine Check Architecture (SMCA).
|
|
|
f27859 |
|
|
|
f27859 |
[ Yazen: change family check to feature check, and change CPU name. ]
|
|
|
f27859 |
|
|
|
f27859 |
CC: "mchehab+samsung@kernel.org" <mchehab+samsung@kernel.org>, "Namburu, Chandu-babu" <chandu@amd.com> # Thread-Topic: [PATCH 1/2] rasdaemon: rename CPU_NAPLES cputype
|
|
|
f27859 |
Signed-off-by: Brian Woods <brian.woods@amd.com>
|
|
|
f27859 |
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
|
|
|
f27859 |
Cc: Chandu-babu Namburu <chandu@amd.com>
|
|
|
f27859 |
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|
|
|
f27859 |
|
|
|
f27859 |
---
|
|
|
f27859 |
ras-mce-handler.c | 10 ++++++----
|
|
|
f27859 |
ras-mce-handler.h | 2 +-
|
|
|
f27859 |
2 files changed, 7 insertions(+), 5 deletions(-)
|
|
|
f27859 |
|
|
|
f27859 |
--- rasdaemon-0.6.1.orig/ras-mce-handler.c 2021-05-26 15:16:24.699096556 -0400
|
|
|
f27859 |
+++ rasdaemon-0.6.1/ras-mce-handler.c 2021-05-26 15:18:06.543162745 -0400
|
|
|
f27859 |
@@ -55,7 +55,7 @@ [CPU_XEON75XX] = "Intel Xeon 7500 series
|
|
|
f27859 |
[CPU_KNIGHTS_LANDING] = "Knights Landing",
|
|
|
f27859 |
[CPU_KNIGHTS_MILL] = "Knights Mill",
|
|
|
f27859 |
[CPU_SKYLAKE_XEON] = "Skylake server",
|
|
|
f27859 |
- [CPU_NAPLES] = "AMD Family 17h Zen1"
|
|
|
f27859 |
+ [CPU_AMD_SMCA] = "AMD Scalable MCA",
|
|
|
f27859 |
};
|
|
|
f27859 |
|
|
|
f27859 |
static enum cputype select_intel_cputype(struct ras_events *ras)
|
|
|
f27859 |
@@ -191,8 +191,10 @@ ret = 0;
|
|
|
f27859 |
if (!strcmp(mce->vendor, "AuthenticAMD")) {
|
|
|
f27859 |
if (mce->family == 15)
|
|
|
f27859 |
mce->cputype = CPU_K8;
|
|
|
f27859 |
- if (mce->family == 23)
|
|
|
f27859 |
- mce->cputype = CPU_NAPLES;
|
|
|
f27859 |
+ if (strstr(mce->processor_flags, "smca")) {
|
|
|
f27859 |
+ mce->cputype = CPU_AMD_SMCA;
|
|
|
f27859 |
+ goto ret;
|
|
|
f27859 |
+ }
|
|
|
f27859 |
if (mce->family > 23) {
|
|
|
f27859 |
log(ALL, LOG_INFO,
|
|
|
f27859 |
"Can't parse MCE for this AMD CPU yet %d\n",
|
|
|
f27859 |
@@ -435,7 +437,7 @@ if (pevent_get_field_val(s, event, "ipid
|
|
|
f27859 |
case CPU_K8:
|
|
|
f27859 |
rc = parse_amd_k8_event(ras, &e);
|
|
|
f27859 |
break;
|
|
|
f27859 |
- case CPU_NAPLES:
|
|
|
f27859 |
+ case CPU_AMD_SMCA:
|
|
|
f27859 |
rc = parse_amd_smca_event(ras, &e);
|
|
|
f27859 |
break;
|
|
|
f27859 |
default: /* All other CPU types are Intel */
|
|
|
f27859 |
--- rasdaemon-0.6.1.orig/ras-mce-handler.h 2021-05-26 15:17:15.409631590 -0400
|
|
|
f27859 |
+++ rasdaemon-0.6.1/ras-mce-handler.h 2021-05-26 15:18:20.102038424 -0400
|
|
|
f27859 |
@@ -50,7 +50,7 @@ enum cputype {
|
|
|
f27859 |
CPU_KNIGHTS_LANDING,
|
|
|
f27859 |
CPU_KNIGHTS_MILL,
|
|
|
f27859 |
CPU_SKYLAKE_XEON,
|
|
|
f27859 |
- CPU_NAPLES,
|
|
|
f27859 |
+ CPU_AMD_SMCA,
|
|
|
f27859 |
};
|
|
|
f27859 |
|
|
|
f27859 |
struct mce_event {
|