Skip to content

Commit

Permalink
Updates to processMrw to fix Chiplet Ids
Browse files Browse the repository at this point in the history
Update the process functions to correctly determine the appropriate
chiplet id and set it for each target.

Change-Id: Ice68d9424a8a3a3f2ef64e9c6a303ee289aa2768
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70118
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: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
Matt Raybuck authored and dcrowell77 committed Jan 9, 2019
1 parent 468aed3 commit 529e81c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/usr/targeting/common/processMrw.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2015,2018
# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -1377,6 +1377,16 @@ sub processMcs
$targetObj->setAttribute( $target, "MEMVPD_POS",
$chip_unit + ($proc_num * MAX_MCS_PER_PROC) );
# CHIPLET_ID is relative to the CHIP_UNIT of the MCS. To prevent invalid
# CHIPLET_ID's set them here. There are 4 MCS units ranging from 0-3. To
# generate the correct CHIPLET_ID we take the base offset and add 0 or 1
# to arrive at the correct value for that MCS unit. Units 0 and 1 add 0
# and units 2 and 3 add 1.
{
use integer;
$targetObj->setAttribute( $target, "CHIPLET_ID",
Targets::PERVASIVE_PARENT_MCS_OFFSET + ($chip_unit / 2) );
}
}
Expand Down

0 comments on commit 529e81c

Please sign in to comment.