Skip to content

Commit 50a901b

Browse files
Prachi Guptawghoffa
authored andcommitted
ZEPPELIN BUP: fix VPD_REC_NUM for membuf target
HWSV populates VPD in pnor per riser card. Each riser card has 4 centaurs on it and it's not physically possible to have less centaurs present. Therefore, increment VPD_REC_NUM per riser card position. Change-Id: I409e2f3b1e3ac3b8785ed709f0493a443e9f9683 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50392 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
1 parent beeeedc commit 50a901b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/usr/targeting/common/Targets.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,6 @@ sub processMc
13001300

13011301
## Find connected membufs
13021302
my $membuf_dmi = $self->{data}->{TARGETS}{$dmi}{CONNECTION}{DEST}[0];
1303-
13041303
if (defined($membuf_dmi))
13051304
{
13061305
## found membuf connected
@@ -1327,7 +1326,6 @@ sub processMc
13271326
$self->setAttribute($membuf, "ORDINAL_ID", $membuf_ordinal_id);
13281327
$self->setAttribute($membuf, "REL_POS", $membufnum);
13291328
$self->setAttribute($membuf, "POSITION", $membufnum);
1330-
$self->setAttribute($membuf, "VPD_REC_NUM", $membufnum);
13311329

13321330
# It's okay to hard code these here because the code fixes it as needed
13331331
# This is hardcoded for proc target as well.
@@ -1337,6 +1335,10 @@ sub processMc
13371335
$self->setAttributeField($membuf, "SCOM_SWITCHES", "useInbandScom", "0");
13381336
$self->setAttributeField($membuf, "SCOM_SWITCHES", "useXscom", "0");
13391337

1338+
my $riser_card_conn = $self->getTargetParent($self->getTargetParent($membuf));
1339+
my $riser_card_pos = $self->getAttribute($riser_card_conn,"POSITION");
1340+
$self->setAttribute($membuf, "VPD_REC_NUM", $riser_card_pos);
1341+
13401342
## get the dmi bus
13411343
my $dmi_bus = $self->{data}->{TARGETS}{$dmi}{CONNECTION}{BUS}[0];
13421344

0 commit comments

Comments
 (0)