summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/genHwsvMrwXml.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/targeting/common/genHwsvMrwXml.pl')
-rwxr-xr-xsrc/usr/targeting/common/genHwsvMrwXml.pl12
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;
}
OpenPOWER on IntegriCloud