diff options
author | Matt Raybuck <mraybuc@us.ibm.com> | 2019-01-04 15:23:03 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-01-09 12:42:54 -0600 |
commit | 529e81cd709b1126892fab6df0826498165c30e9 (patch) | |
tree | 8e16886b5eb13e6bfd9f1477f6d1ca1e1340df69 /src/usr/targeting | |
parent | 468aed31ffbed5d33e14de5959c66230ed50ee05 (diff) | |
download | talos-hostboot-529e81cd709b1126892fab6df0826498165c30e9.tar.gz talos-hostboot-529e81cd709b1126892fab6df0826498165c30e9.zip |
Updates to processMrw to fix Chiplet Ids
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>
Diffstat (limited to 'src/usr/targeting')
-rwxr-xr-x | src/usr/targeting/common/processMrw.pl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl index cf19ec266..24f2acf57 100755 --- a/src/usr/targeting/common/processMrw.pl +++ b/src/usr/targeting/common/processMrw.pl @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2015,2018 +# Contributors Listed Below - COPYRIGHT 2015,2019 # [+] International Business Machines Corp. # # @@ -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) ); + } } |