aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2017-08-15 17:10:29 -0700
committerTony Luck <tony.luck@intel.com>2017-08-15 17:10:29 -0700
commitd9c4582d24ae259009da7e0321c5a06b80386e23 (patch)
tree5119ba22c3725bdc8aeaf30130950d88f8c42080
parent7e0703b76e9c8c5b8d161850290b4ebab89cda3a (diff)
downloadras-tools-d9c4582d24ae259009da7e0321c5a06b80386e23.tar.gz
einj_mem_uc: Update check for cpu models that can recover
Skylake (Xeon-SP) doesn't use the "E7-" model name convention. Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--einj_mem_uc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/einj_mem_uc.c b/einj_mem_uc.c
index 547a701..888abe2 100644
--- a/einj_mem_uc.c
+++ b/einj_mem_uc.c
@@ -82,6 +82,15 @@ static void inject_llc(unsigned long long addr, int notrigger)
wfile(EINJ_DOIT, 1);
}
+static int is_advanced_ras(char *model)
+{
+ if (strstr(model, "E7-"))
+ return 1;
+ if (strstr(model, "Platinum"))
+ return 1;
+ return 0;
+}
+
static void check_configuration(void)
{
char model[512];
@@ -109,7 +118,7 @@ static void check_configuration(void)
exit(1);
}
lcpus_persocket = ncpus / nsockets;
- if (!force_flag && strstr(model, "E7-") == NULL) {
+ if (!force_flag && !is_advanced_ras(model)) {
fprintf(stderr, "%s: warning: cpu may not support recovery\n", progname);
exit(1);
}