diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2018-05-17 19:11:45 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-06-27 16:30:55 -0400 |
commit | a729adbb19660b65ce613392d25309c3b2eb840f (patch) | |
tree | c025a665968b0fb6469dfcae1e781df6f2f395ce /src/usr/targeting/common | |
parent | 9886d8d502e87d7568779fce855de6dc24222bda (diff) | |
download | talos-hostboot-a729adbb19660b65ce613392d25309c3b2eb840f.tar.gz talos-hostboot-a729adbb19660b65ce613392d25309c3b2eb840f.zip |
Update genHwsvMrwXml.pl to include the attributes for PCIE config
-In order to support bifurcation of slot P1-C3 in the shark
platform changes were needed to the xml parsing so that
several key attributres would be populated.
Change-Id: Id0792cbf15a0cb844b63f8821f7c0a60bdfd5ea2
RTC:192871
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60101
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rwxr-xr-x | src/usr/targeting/common/genHwsvMrwXml.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/targeting/common/genHwsvMrwXml.pl b/src/usr/targeting/common/genHwsvMrwXml.pl index ef6c6b80d..e0cf8f6f5 100755 --- a/src/usr/targeting/common/genHwsvMrwXml.pl +++ b/src/usr/targeting/common/genHwsvMrwXml.pl @@ -4783,12 +4783,21 @@ sub generate_pec # PCIE Hack to set PEC PCIE_LANE_MASK and PCIE_IOP_SWAP attributes my %pciOtherAttr; + + #set PROC_PCIE_LANE_MASK to the default lane mask as defined + #in the workbook - this value will be used to restore the slot to the default + #lane configuration if it was once altered by the HX keyword if ($pec == 0) { + $pciOtherAttr{"PEC_IS_BIFURCATABLE"} = 0x0; + $pciOtherAttr{"PROC_PCIE_LANE_MASK"} = "0xFFFF, 0x0000, 0x0000, 0x0000"; + $pciOtherAttr{"PROC_PCIE_IOP_SWAP"} = 0x0; } elsif ($pec == 1) { + $pciOtherAttr{"PEC_IS_BIFURCATABLE"} = 0x1; + if ($proc == 0) { $pciOtherAttr{"PROC_PCIE_LANE_MASK"} = "0xFF00, 0x0000, 0x00FF, 0x0000"; @@ -4802,8 +4811,11 @@ sub generate_pec } elsif ($pec == 2) { + $pciOtherAttr{"PEC_IS_BIFURCATABLE"} = 0x1; + if ($proc == 0) { + # lane is bifurcated by default $pciOtherAttr{"PROC_PCIE_LANE_MASK"} = "0xFF00, 0x0000, 0x00FF, 0x0000"; $pciOtherAttr{"PROC_PCIE_IOP_SWAP"} = 0x6; } |