summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-01-09 16:46:08 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-01-12 09:11:13 -0500
commit1593ea839e23be94e1746bc2d89f5a7520e48cdf (patch)
treec671f038dc3f02aebc3bc94b1e5b8fbb6cfbdf91 /src/usr/hwas
parent16bb17deab2441e0368313f0aa77c442f5a2d3ef (diff)
downloadtalos-hostboot-1593ea839e23be94e1746bc2d89f5a7520e48cdf.tar.gz
talos-hostboot-1593ea839e23be94e1746bc2d89f5a7520e48cdf.zip
Adding support for mini EC levels
The real HW EC is only a 2 digit number (Major.Minor). However, for P9 we need to support some mini-EC values that go out another digit. This commit lays the groundwork for HDAT to consume a new attribute (ATTR_HDAT_EC) to push up to PHYP. Change-Id: Ieedeeabe19bc66a1e3d30a29518f81f9ee2a53bc Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34623 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/hwasPlat.C5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/hwas/hwasPlat.C b/src/usr/hwas/hwasPlat.C
index 36bab192b..38618e3e7 100644
--- a/src/usr/hwas/hwasPlat.C
+++ b/src/usr/hwas/hwasPlat.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2016 */
+/* Contributors Listed Below - COPYRIGHT 2012,2017 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -158,6 +158,9 @@ errlHndl_t platReadIDEC(const TargetHandle_t &i_target)
((id_ec & 0x00F0000000000000ull) >> 52));
i_target->setAttr<ATTR_EC>(ec);
+ // until we read ECID, HDAT_EC==EC
+ i_target->setAttr<ATTR_HDAT_EC>(ec);
+
// ID - nibbles 1,5,3,4
// 01234567
uint32_t id = (((id_ec & 0x0F00000000000000ull) >> 44) |
OpenPOWER on IntegriCloud