Skip to content

Commit

Permalink
Update genHwsvMrwXml.pl to include the attributes for PCIE config
Browse files Browse the repository at this point in the history
    -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>
  • Loading branch information
rjknight authored and dcrowell77 committed Jun 27, 2018
1 parent 9886d8d commit a729adb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/usr/targeting/common/genHwsvMrwXml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
}
Expand Down

0 comments on commit a729adb

Please sign in to comment.