diff options
author | Sumit Kumar <sumit_kumar@in.ibm.com> | 2019-05-30 12:34:23 -0500 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-08-16 09:36:51 -0500 |
commit | f1074af217829f4a678032f44e5bc29c26298a6a (patch) | |
tree | 0683958a5b17cc7f215346655715a09664b3f4ba /src/import/hwpf/fapi2/tools | |
parent | 7b8bfcc23ac6ce0f228bd5db5d3eaf4f173e42e4 (diff) | |
download | talos-hostboot-f1074af217829f4a678032f44e5bc29c26298a6a.tar.gz talos-hostboot-f1074af217829f4a678032f44e5bc29c26298a6a.zip |
Fapi_Infra:Add new member to structure ErrorInfoCDG
Enabling addition of new member - gardType to the structure
to pass on the type of gard when target gets garded.
Change-Id: I4c14f8bab585bfbee71b43ee4353b9b243bf7469
CQ: SW462950
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78076
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Reviewed-by: Manish K. Chowdhary <manichow@in.ibm.com>
Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78093
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/tools')
-rwxr-xr-x | src/import/hwpf/fapi2/tools/parseErrorInfo.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl index 782a5a38a..75c3fe2fd 100755 --- a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -1267,6 +1267,10 @@ foreach my $argnum ( 0 .. $#ARGV ) # Add the Target to cdgTargetHash to be processed with any # callout and deconfigure requests $cdgTargetHash{ $gard->{target} }{gard} = 1; + if ( exists $gard->{gardType} ) + { + $cdgTargetHash{ $gard->{target} }{gardType} = $gard->{gardType}; + } $elementsFound++; } if ( exists $gard->{childTargets} ) @@ -1324,6 +1328,7 @@ foreach my $argnum ( 0 .. $#ARGV ) my $priority = 'NONE'; my $deconf = 0; my $gard = 0; + my $gardType = 'GARD_Fatal'; if ( exists $cdgTargetHash{$cdg}->{callout} ) { @@ -1340,6 +1345,11 @@ foreach my $argnum ( 0 .. $#ARGV ) if ( exists $cdgTargetHash{$cdg}->{gard} ) { $gard = 1; + + if ( exists $cdgTargetHash{$cdg}->{gardType} ) + { + $gardType = $cdgTargetHash{$cdg}->{gardType}; + } } # Add the Target to the objectlist if it doesn't already exist @@ -1356,6 +1366,8 @@ foreach my $argnum ( 0 .. $#ARGV ) $eiEntryStr .= " l_entries[$eiEntryCount].target_cdg.iv_gard = $gard; \\\n"; $eiEntryStr .= " l_entries[$eiEntryCount].target_cdg.iv_calloutPriority = fapi2::CalloutPriorities::$priority; \\\n"; + $eiEntryStr .= + " l_entries[$eiEntryCount].target_cdg.iv_gardType = fapi2::GardTypes::$gardType; \\\n"; $eiEntryCount++; } |