diff options
author | Bill Hoffa <wghoffa@us.ibm.com> | 2016-01-27 15:32:41 -0600 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:38 -0600 |
commit | cd597b664421723dc236d517e79f78dbfa0edecf (patch) | |
tree | ba30702f7ad2f82f9fa1ae3755d576e86a3241d6 /src/usr | |
parent | a6a9f46cfaad37fb62253eaa70d27b3d24ea6d1c (diff) | |
download | blackbird-hostboot-cd597b664421723dc236d517e79f78dbfa0edecf.tar.gz blackbird-hostboot-cd597b664421723dc236d517e79f78dbfa0edecf.zip |
Update processor MRW processing to use socket position
Change-Id: I02e2856329ff309d6f90f3f70ae0029ebf5b8d4f
Forwardport: yes
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23920
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/targeting/common/processMrw.pl | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl index 0130cbb4a..4f877377d 100644 --- 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 +# Contributors Listed Below - COPYRIGHT 2015,2016 # [+] International Business Machines Corp. # # @@ -451,7 +451,15 @@ sub processProcessor $targetObj->getTargetParent($target); $targetObj->copyAttribute($module_target,$target,"LOCATION_CODE"); + ## Copy all attributes from module + foreach my $attr (sort (keys + %{ $targetObj->getTarget($module_target)->{TARGET}->{attribute} })) + { + $targetObj->copyAttribute($module_target,$target,$attr); + } + ## Copy PCIE attributes from socket + ## Copy Position attribute from socket foreach my $attr (sort (keys %{ $targetObj->getTarget($socket_target)->{TARGET}->{attribute} })) { @@ -459,13 +467,10 @@ sub processProcessor { $targetObj->copyAttribute($socket_target,$target,$attr); } - } - - ## Copy all attributes from module - foreach my $attr (sort (keys - %{ $targetObj->getTarget($module_target)->{TARGET}->{attribute} })) - { - $targetObj->copyAttribute($module_target,$target,$attr); + elsif ($attr =~/POSITION/) + { + $targetObj->copyAttribute($socket_target,$target,$attr); + } } $targetObj->log($target, "Processing PROC"); |