summaryrefslogtreecommitdiffstats
path: root/src/import/chips
diff options
context:
space:
mode:
authorPrasad Bg Ranganath <prasadbgr@in.ibm.com>2017-12-13 10:15:16 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-12-20 10:56:26 -0500
commit93c73a3eac40a47e40ff949acc6279e87d772d45 (patch)
tree888cb8f880db5d17939f8553a5e7b744c5ad16de /src/import/chips
parent4864902e62b1935a164fc9538f1429446f932b75 (diff)
downloadtalos-hostboot-93c73a3eac40a47e40ff949acc6279e87d772d45.tar.gz
talos-hostboot-93c73a3eac40a47e40ff949acc6279e87d772d45.zip
Proc VPD:POUND W Version 3-F support
This commit adds support for versions 3-F to use the #W version 2 format. If a new revision (0x10+) is added,this procedure will have to be updated 0x01 = supported 0x02-0x0F = supported with current version2 format 0x10 = next major revision, i.e. the next format change must jump up to 0x10 Change-Id: If2dbd1186bcb232bbfb780a45af5b6dbf7172fff Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50864 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50870 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.C9
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.H1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.C
index 26b638489..40a2b03de 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.C
@@ -99,12 +99,19 @@ fapi2::ReturnCode p9_pm_get_poundw_bucket_attr(
//VDM Data for bucket 5: varies by version
//#V Bucket ID #6: 0x1 byte
//VDM Data for bucket 6: varies by version
+
+ // Note on bucket versions
+ // Version 1 - orignal format
+ // Version 2-F - will all use version 2 format
+ // Version 0x10 - next major revision
+
if( *l_fullVpdData == POUNDW_VERSION_1)
{
//Set the size of the bucket
l_bucketSize = POUNDW_BUCKETID_SIZE + PW_VER_1_VDMDATA_SIZE;
}
- else if( *l_fullVpdData == POUNDW_VERSION_2)
+ else if( (*l_fullVpdData >= POUNDW_VERSION_2) &&
+ (*l_fullVpdData <= POUNDW_VERSION_F) )
{
//Set the size of the bucket
l_bucketSize = POUNDW_BUCKETID_SIZE + PW_VER_2_VDMDATA_SIZE;
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.H
index b7f97caea..6e425ba3b 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.H
@@ -46,6 +46,7 @@ enum poundwBucketParms
{
POUNDW_VERSION_1 = 0x01,
POUNDW_VERSION_2 = 0x02,
+ POUNDW_VERSION_F = 0x0F,
POUNDW_VERSION_SIZE = 0x01, // version is uint8_t
POUNDW_BUCKETID_SIZE = 0x01, // bucket ID is uint8_t
PW_VER_1_VDMDATA_SIZE = 0x28,
OpenPOWER on IntegriCloud