aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuai Xue <xueshuai@linux.alibaba.com>2022-11-28 21:55:23 +0800
committerTony Luck <tony.luck@intel.com>2022-11-28 08:09:50 -0800
commit2624df117af1b4d05f2d9bab14fbfc8f85c514d3 (patch)
tree9b9d18b6154d9918e747e6295179b1087aed59c3
parent26393ed44ba02b7855ef3a1c58e3ea3b1473767b (diff)
downloadras-tools-2624df117af1b4d05f2d9bab14fbfc8f85c514d3.tar.gz
einj_mem_uc: relax vendor id check
Some firmwares support advanced RAS but does not fill in the vendor id, e.g. Kunpeng BIOS v1.91. Users complain that they can not use ras-tools directly. Therefore, relax vendor id check and just print an warning. Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--einj_mem_uc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/einj_mem_uc.c b/einj_mem_uc.c
index 8cdc6d7..a98d426 100644
--- a/einj_mem_uc.c
+++ b/einj_mem_uc.c
@@ -367,10 +367,11 @@ static int is_advanced_ras(void)
exit(1);
switch (v.vendor_id) {
- case 0x1ded:
+ case 0x1ded: /* Alibaba (China) Co., Ltd. */
return 1;
default:
- return 0;
+ fprintf(stderr, "%s: warning: unknown vendor, cpu may not support recovery\n", progname);
+ return 1;
}
}