Add p8dtu platform
This contains the p8dtu platform from SuperMicro.
It has previously lived out of tree.
Like other POWER8 platforms, several Hostboot patches are required.
Since Hostboot does not have the ability to have per-platform code,
this comes in as patches.
Signed-off-by: Jim Yuan <jim.yuan@supermicro.com>
[stewart: cleanup and longer commit message]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
diff --git a/openpower/patches/p8dtu-patches/hostboot-p8/0009-Hardcode-DIMM-pairing-for-RAS.-Fix-the-issue-that-MB.patch b/openpower/patches/p8dtu-patches/hostboot-p8/0009-Hardcode-DIMM-pairing-for-RAS.-Fix-the-issue-that-MB.patch
new file mode 100644
index 0000000..c6f4a1c
--- /dev/null
+++ b/openpower/patches/p8dtu-patches/hostboot-p8/0009-Hardcode-DIMM-pairing-for-RAS.-Fix-the-issue-that-MB.patch
@@ -0,0 +1,45 @@
+From 9d8e17897f398f1f750c87c4dcf58fe9e64ffed9 Mon Sep 17 00:00:00 2001
+From: Jim Yuan <jim.yuan@supermicro.com>
+Date: Thu, 7 Jul 2016 15:53:31 -0700
+Subject: [PATCH 09/14] Hardcode DIMM pairing for RAS. Fix the issue that MBA0
+ Memory UE on Cenatur Chip4 brought all dimms under Proc2 offline.
+
+Signed-off-by: Jim Yuan <jim.yuan@supermicro.com>
+---
+ src/usr/hwas/common/deconfigGard.C | 19 ++++++++++++++++++-
+ 1 file changed, 18 insertions(+), 1 deletion(-)
+
+diff --git a/src/usr/hwas/common/deconfigGard.C b/src/usr/hwas/common/deconfigGard.C
+index fa266c881..bd4e4fe4c 100644
+--- a/src/usr/hwas/common/deconfigGard.C
++++ b/src/usr/hwas/common/deconfigGard.C
+@@ -980,8 +980,25 @@ Target * findPartnerForMcs(const Target *i_startMcs)
+ // Declare partner MCS CHIP_UNIT
+ ATTR_CHIP_UNIT_type partnerMcsUnit = 0;
+
++ // Add temp code to handle different MCS pairing
++ if (startMcsUnit == 0)
++ {
++ partnerMcsUnit = 4;
++ }
++ else if (startMcsUnit == 1)
++ {
++ partnerMcsUnit = 5;
++ }
++ else if (startMcsUnit == 4)
++ {
++ partnerMcsUnit = 0;
++ }
++ else if (startMcsUnit == 5)
++ {
++ partnerMcsUnit = 1;
++ }
+ // If CHIP_UNIT is even, its partner will be the next MCS
+- if (!(startMcsUnit % 2))
++ else if (!(startMcsUnit % 2))
+ {
+ partnerMcsUnit = startMcsUnit + 1;
+ }
+--
+2.16.2.windows.1
+