blob: c6f4a1c0d1a007bdd6c7265d08e2b44d435ce3e6 [file] [log] [blame]
Jim Yuanf5da1de2019-03-25 09:49:24 -07001From 9d8e17897f398f1f750c87c4dcf58fe9e64ffed9 Mon Sep 17 00:00:00 2001
2From: Jim Yuan <jim.yuan@supermicro.com>
3Date: Thu, 7 Jul 2016 15:53:31 -0700
4Subject: [PATCH 09/14] Hardcode DIMM pairing for RAS. Fix the issue that MBA0
5 Memory UE on Cenatur Chip4 brought all dimms under Proc2 offline.
6
7Signed-off-by: Jim Yuan <jim.yuan@supermicro.com>
8---
9 src/usr/hwas/common/deconfigGard.C | 19 ++++++++++++++++++-
10 1 file changed, 18 insertions(+), 1 deletion(-)
11
12diff --git a/src/usr/hwas/common/deconfigGard.C b/src/usr/hwas/common/deconfigGard.C
13index fa266c881..bd4e4fe4c 100644
14--- a/src/usr/hwas/common/deconfigGard.C
15+++ b/src/usr/hwas/common/deconfigGard.C
16@@ -980,8 +980,25 @@ Target * findPartnerForMcs(const Target *i_startMcs)
17 // Declare partner MCS CHIP_UNIT
18 ATTR_CHIP_UNIT_type partnerMcsUnit = 0;
19
20+ // Add temp code to handle different MCS pairing
21+ if (startMcsUnit == 0)
22+ {
23+ partnerMcsUnit = 4;
24+ }
25+ else if (startMcsUnit == 1)
26+ {
27+ partnerMcsUnit = 5;
28+ }
29+ else if (startMcsUnit == 4)
30+ {
31+ partnerMcsUnit = 0;
32+ }
33+ else if (startMcsUnit == 5)
34+ {
35+ partnerMcsUnit = 1;
36+ }
37 // If CHIP_UNIT is even, its partner will be the next MCS
38- if (!(startMcsUnit % 2))
39+ else if (!(startMcsUnit % 2))
40 {
41 partnerMcsUnit = startMcsUnit + 1;
42 }
43--
442.16.2.windows.1
45