1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/plat/prdfRasServices_common.C $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
/** @file prdfRasServices_common.C
* @brief Utility code to parse an SDC and produce the appropriate error log.
*/
#include <prdfRasServices.H>
#include <prdfPfa5Data.h>
#include <time.h>
#include <iipServiceDataCollector.h>
#include <prdf_service_codes.H>
#include <prdfGlobal.H>
#include <prdfErrlUtil.H>
#include <prdfCallouts.H>
//#include <prdfMemoryMru.H> TODO: RTC 149314
#include <prdfPlatServices.H>
//#include <prdfCenMbaCaptureData.H> TODO: RTC 136126
// For compression routines
#define PRDF_COMPRESSBUFFER_COMPRESS_FUNCTIONS
#include <prdfCompressBuffer.H>
#include <utilmem.H> //For UtilMem stream class (outputting PfaData).
#include <utilfile.H>
#include <vector>
#include <algorithm>
#include <iipSystem.h> //For RemoveStoppedChips
#ifdef __HOSTBOOT_MODULE
#include <stdio.h>
#ifdef __HOSTBOOT_RUNTIME
// #include <prdfCenMbaDynMemDealloc_rt.H> TODO: RTC 136129
#else // Hostboot only
#ifdef CONFIG_ENABLE_CHECKSTOP_ANALYSIS
#include <prdfPnorFirDataReader.H>
#endif
#endif
#else
#include <srcisrc.H>
#include <utilreg.H> //For registry functions
#include <evenmgt.H>
#include <rmgrBaseClientLib.H> //for rmgrSyncFile
#include <prdfSdcFileControl.H>
// #include <prdfCenMbaDynMemDealloc_rt.H> TODO: RTC 136129
#endif
using namespace TARGETING;
namespace PRDF
{
using namespace PlatServices;
//------------------------------------------------------------------------------
// Local Globals
//------------------------------------------------------------------------------
RasServices thisServiceGenerator;
//------------------------------------------------------------------------------
ServiceGeneratorClass & ServiceGeneratorClass::ThisServiceGenerator(void)
{
return thisServiceGenerator;
}
//------------------------------------------------------------------------------
void ErrDataService::Initialize()
{
iv_serviceActionCounter = 0;
}
//------------------------------------------------------------------------------
errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
ServiceDataCollector & io_sdc,
bool & o_initiateHwudump,
TargetHandle_t & o_dumpTrgt,
errlHndl_t & o_dumpErrl,
uint32_t & o_dumpErrlActions)
{
#define PRDF_FUNC "[ErrDataService::GenerateSrcPfa] "
o_initiateHwudump = false;
o_dumpTrgt = NULL;
o_dumpErrl = NULL;
o_dumpErrlActions = 0;
// First, check if an error log should be committed. Note that there should
// always be an error log if there was a system or unit checkstop.
if ( io_sdc.queryDontCommitErrl() &&
MACHINE_CHECK != i_attnType && !io_sdc.IsUnitCS() )
{
// User did not want this error log committed. No need to continue. So
// delete it and exit.
delete iv_errl; iv_errl = NULL;
return NULL;
}
#ifdef __HOSTBOOT_MODULE
using namespace ERRORLOG;
using namespace HWAS;
#else
uint8_t sdcSaveFlags = SDC_NO_SAVE_FLAGS;
size_t sz_uint8 = sizeof(uint8_t);
uint8_t sdcBuffer[sdcBufferSize]; //buffer to use for SDC flatten
#endif
epubProcedureID thisProcedureID;
bool ForceTerminate = false;
bool iplDiagMode = false;
++iv_serviceActionCounter;
uint16_t PRD_Reason_Code = 0;
//**************************************************************
// Initial set up by Attention Type
//**************************************************************
////////////////////////////////////////////////////////////////
// Machine Check ATTN (CHECKSTOP)
////////////////////////////////////////////////////////////////
if (i_attnType == MACHINE_CHECK)
{
#ifdef __HOSTBOOT_MODULE
// Do nothing. Saved SDCs only supported on FSP.
#ifdef __HOSTBOOT_RUNTIME
PRDF_ERR( PRDF_FUNC "HBRT should NOT have any CS attns!" );
#endif
#else
// Check for SUE-CS condition flags.
if ((!io_sdc.IsUERE() ) &&
( io_sdc.IsSUE() ) )
{
//Read current SDC state flags from registry
errlHndl_t errorLog = UtilReg::read ( "prdf/RasServices",
&sdcSaveFlags, sz_uint8 );
if (errorLog)
{
PRDF_ERR( PRDF_FUNC "Failure in SDC flag Registry read" );
PRDF_COMMIT_ERRL(errorLog, ERRL_ACTION_REPORT);
}
else if (sdcSaveFlags & SDC_SAVE_UE_FLAG) //check if UE log stored
{ // then use it.
bool l_rc = SdcRetrieve(SDC_SAVE_UE_FLAG, sdcBuffer);
if (l_rc)
{
PRDF_ERR( PRDF_FUNC "Failure in UE SDC Retrieve Function" );
}
else
{
ServiceDataCollector origSdc = io_sdc; // Save original SDC
io_sdc = sdcBuffer; // Set the new SDC
// Add the original signature to the new SDC's
// multi-signature list.
io_sdc.AddSignatureList( *(origSdc.GetErrorSignature()) );
// This is a checkstop attention so some values will need
// to be overridden.
io_sdc.setPrimaryAttnType( origSdc.getPrimaryAttnType() );
if ( origSdc.Terminate() )
io_sdc.setFlag(ServiceDataCollector::TERMINATE);
}
}
else if (sdcSaveFlags & SDC_SAVE_SUE_FLAG ) //else check if SUE log
{ // stored then use it.
bool l_rc = SdcRetrieve(SDC_SAVE_SUE_FLAG, sdcBuffer);
if (l_rc)
{
PRDF_ERR( PRDF_FUNC "Failure in SUE SDC Retrieve Function" );
}
else
{
ServiceDataCollector origSdc = io_sdc; // Save original SDC
io_sdc = sdcBuffer; // Set the new SDC
// Add the original signature to the new SDC's
// multi-signature list.
io_sdc.AddSignatureList( *(origSdc.GetErrorSignature()) );
// This is a checkstop attention so some values will need
// to be overridden.
io_sdc.setPrimaryAttnType( origSdc.getPrimaryAttnType() );
if ( origSdc.Terminate() )
io_sdc.setFlag(ServiceDataCollector::TERMINATE);
}
}
}
#endif // if not __HOSTBOOT_HOSTBOOT
}
////////////////////////////////////////////////////////////////
// Recoverable ATTN or Unit CheckStop
////////////////////////////////////////////////////////////////
else if (i_attnType == RECOVERABLE || i_attnType == UNIT_CS )
{
#ifndef __HOSTBOOT_MODULE
if //Ue-Re RECOVERABLE condition.
((io_sdc.IsUERE() ) &&
(!io_sdc.IsSUE() ) &&
(!io_sdc.IsUsingSavedSdc() ) ) // Don't save File if we are Re-Syncing an SDC
{
bool l_rc = SdcSave(SDC_SAVE_UE_FLAG, io_sdc);
if (l_rc)
{
PRDF_ERR( PRDF_FUNC "Failure in UE SDC Save Function" );
}
}
else if //Sue-Re RECOVERABLE condition.
((!io_sdc.IsUERE() ) &&
(io_sdc.IsSUE() ) &&
(!io_sdc.IsUsingSavedSdc() ) ) // Don't save File if we are Re-Syncing an SDC
{
bool l_rc = SdcSave(SDC_SAVE_SUE_FLAG, io_sdc);
if (l_rc)
{
PRDF_ERR( PRDF_FUNC "Failure in SUE SDC Save Function" );
}
}
#endif // if not __HOSTBOOT_MODULE
}
//**************************************************************
// Callout loop to set up Reason code and SRC word 9
//**************************************************************
// Must go thru callout list to look for RIOPORT procedure callouts,
// since they require the port info to be in SRC Word 9
bool HW = false;
bool SW = false;
bool SW_High = false;
bool SecondLevel = false;
uint32_t SrcWord7 = 0;
uint32_t SrcWord9 = 0;
// Should not gard hardware if there is a hardware callout at LOW priority
// and a symbolic FRU indicating a possibility of a software error at MED or
// HIGH priority.
bool sappSwNoGardReq = false, sappHwNoGardReq = false;
const SDC_MRU_LIST & mruList = io_sdc.getMruList();
int32_t calloutsPlusDimms = mruList.size();
for ( SDC_MRU_LIST::const_iterator it = mruList.begin();
it < mruList.end(); ++it )
{
PRDcallout thiscallout = it->callout;
if ( PRDcalloutData::TYPE_SYMFRU == thiscallout.getType() )
{
if ( (EPUB_PRC_SP_CODE == thiscallout.flatten()) ||
(EPUB_PRC_PHYP_CODE == thiscallout.flatten()) )
{
SW = true;
if ( MRU_LOW != it->priority )
{
sappSwNoGardReq = true;
}
if ( MRU_MED == it->priority )
{
SW_High = true;
}
}
else if ( EPUB_PRC_LVL_SUPP == thiscallout.flatten())
{
SecondLevel = true;
if ( MRU_LOW != it->priority )
{
sappSwNoGardReq = true;
}
}
}
else if ( PRDcalloutData::TYPE_MEMMRU == thiscallout.getType() )
{
/* TODO RTC 136125
MemoryMru memMru (thiscallout.flatten());
SrcWord9 = memMru.toUint32(); // Get MemMru value
TargetHandleList partList = memMru.getCalloutList();
uint32_t partCount = partList.size();
calloutsPlusDimms = calloutsPlusDimms + partCount -1;
HW = true; //hardware callout
if ( MRU_LOW == it->priority )
{
sappHwNoGardReq = true;
}
*/
}
else // PRDcalloutData::TYPE_TARGET
{
HW = true; // Hardware callout
// Determines if all the hardware callouts have low priority.
if ( MRU_LOW == it->priority )
{
sappHwNoGardReq = true;
}
}
}
////////////////////////////////////////////////////////////////
//Set the PRD Reason Code based on the flags set in the above callout loop.
////////////////////////////////////////////////////////////////
if (HW == true && SW == true)
{
if (SW_High == true)
PRD_Reason_Code = PRDF_DETECTED_FAIL_SOFTWARE_PROBABLE;
else
PRD_Reason_Code = PRDF_DETECTED_FAIL_HARDWARE_PROBABLE;
}
else if (HW == true && SW == false && SecondLevel == true)
PRD_Reason_Code = PRDF_DETECTED_FAIL_HARDWARE_PROBABLE;
else if (HW == true && SW == false && SecondLevel == false)
PRD_Reason_Code = PRDF_DETECTED_FAIL_HARDWARE;
else if (HW == false && SW == true)
PRD_Reason_Code = PRDF_DETECTED_FAIL_SOFTWARE;
else
{
// If we get here both HW and SW flags were false. Callout may be
// Second Level Support only, or a procedure not checked in the SW
// flag code.
PRD_Reason_Code = PRDF_DETECTED_FAIL_HARDWARE_PROBABLE;
}
SrcWord7 = io_sdc.getPrimaryAttnType() << 8;
SrcWord7 |= io_sdc.getSecondaryAttnType();
//--------------------------------------------------------------------------
// Check for IPL Diag Mode
//--------------------------------------------------------------------------
#if defined(__HOSTBOOT_MODULE) && !defined(__HOSTBOOT_RUNTIME)
iplDiagMode = PlatServices::isInMdiaMode();
#endif
//**************************************************************
// Update Error Log with SRC
//**************************************************************
ErrorSignature * esig = io_sdc.GetErrorSignature();
updateSrc( esig->getChipId(), SrcWord7, esig->getSigId(),
SrcWord9, PRD_Reason_Code);
//**************************************************************
// Add SDC Capture data to Error Log User Data here only if
// there are 4 or more callouts,
// (including Dimm callouts in the MemoryMru).
//**************************************************************
bool capDataAdded = false;
if (calloutsPlusDimms > 3)
{
AddCapData( io_sdc.GetCaptureData(), iv_errl );
AddCapData( io_sdc.getTraceArrayData(), iv_errl );
capDataAdded = true;
}
//--------------------------------------------------------------------------
// Set the error log severity and get the error log action flags.
//--------------------------------------------------------------------------
// Let's assume the default is the action for a system checkstop.
#ifdef __HOSTBOOT_MODULE
errlSeverity_t errlSev = ERRL_SEV_UNRECOVERABLE;
#else
errlSeverity errlSev = ERRL_SEV_UNRECOVERABLE;
#endif
uint32_t errlAct = ERRL_ACTION_SA | // Service action required.
ERRL_ACTION_REPORT | // Report to HMC and hypervisor.
ERRL_ACTION_CALL_HOME; // Call home.
if ( MACHINE_CHECK != i_attnType ) // Anything other that a system checkstop
{
if ( io_sdc.queryServiceCall() ) // still a serviceable event
{
errlSev = ERRL_SEV_PREDICTIVE;
}
else // not a serviceable event
{
errlSev = io_sdc.queryLogging()
? ERRL_SEV_RECOVERED // should still be logged
: ERRL_SEV_INFORMATIONAL; // can be ignored
errlAct = ERRL_ACTION_HIDDEN;
}
}
// This needs to be done after setting the SRCs otherwise it will be
// overridden.
iv_errl->setSev( errlSev );
//--------------------------------------------------------------------------
// Get the global gard policy.
//--------------------------------------------------------------------------
HWAS::GARD_ErrorType gardPolicy = HWAS::GARD_NULL;
// Gard only if the error is a serviceable event.
if ( io_sdc.queryServiceCall() )
{
// We will not Resource Recover on a checkstop attention.
gardPolicy = ( MACHINE_CHECK == i_attnType ) ? HWAS::GARD_Fatal
: HWAS::GARD_Predictive;
}
// Apply special policies for OPAL.
if ( isHyprConfigOpal() && // OPAL is used
!isMfgAvpEnabled() && !isMfgHdatAvpEnabled() ) // No AVPs running
{
// OPAL has requested that we disable garding for predictive errors
// found at runtime.
if ( HWAS::GARD_Predictive == gardPolicy )
{
#if !defined(__HOSTBOOT_MODULE) // FSP only
if ( isHyprRunning() ) gardPolicy = HWAS::GARD_NULL;
#elif defined(__HOSTBOOT_RUNTIME) // HBRT only
gardPolicy = HWAS::GARD_NULL;
#endif
}
// OPAL has requested that we diable garding for fatal errors (system
// checkstops) that could have been caused by a software generated
// attention at runtime. This will be determined if there is a software
// callout with higher priority than a hardware callout.
else if ( HWAS::GARD_Fatal == gardPolicy &&
sappSwNoGardReq && sappHwNoGardReq ) // Gard requirements met
{
#if !defined(__HOSTBOOT_MODULE) // FSP only
if ( isHyprRunning() ) gardPolicy = HWAS::GARD_NULL;
#elif !defined(__HOSTBOOT_RUNTIME) // Hostboot only
#ifdef CONFIG_ENABLE_CHECKSTOP_ANALYSIS
// Checkstop analysis is only done at the beginning of the IPL,
// regardless if the checkstop actually occurred during the IPL
// or at runtime. We will need to check the IPL state in FIR
// data to determine when the checkstop occurred.
// Get access to IPL state info from the FIR data in the PNOR.
if ( !(PnorFirDataReader::getPnorFirDataReader().isIplState()) )
gardPolicy = HWAS::GARD_NULL;
#endif
#endif
}
}
//--------------------------------------------------------------------------
// Get the global deconfig policy (must be done after setting gard policy).
//--------------------------------------------------------------------------
HWAS::DeconfigEnum deconfigPolicy = HWAS::NO_DECONFIG;
bool deferDeconfig = false;
if ( HWAS::GARD_NULL != gardPolicy )
{
#if !defined(__HOSTBOOT_MODULE) // FSP only
// Change the deconfig state based the gard type. This is only required
// to control what the FSP does during the reconfig loop.
deconfigPolicy = HWSV::SvrError::isInHwReconfLoop() ? HWAS::DECONFIG
: HWAS::NO_DECONFIG;
#elif !defined(__HOSTBOOT_RUNTIME) // Hostboot only
// Deferred Deconfig should be used throughout all of Hostboot (both
// checkForIplAttns() and MDIA).
deconfigPolicy = HWAS::DECONFIG;
deferDeconfig = true;
#endif
}
//--------------------------------------------------------------------------
// Get the HCDB diagnostics policy.
//--------------------------------------------------------------------------
HWSV::hwsvDiagUpdate l_diagUpdate = HWSV::HWSV_DIAG_NEEDED;
if ( ERRL_ACTION_HIDDEN == errlAct )
{
// Diagnostics is not needed in the next IPL cycle for non-visible logs.
l_diagUpdate = HWSV::HWSV_DIAG_NOT_NEEDED;
}
//--------------------------------------------------------------------------
// Initialize the PFA data
//--------------------------------------------------------------------------
PfaData pfaData;
initPfaData( io_sdc, i_attnType, deferDeconfig, errlAct, errlSev,
gardPolicy, pfaData, o_dumpTrgt );
//--------------------------------------------------------------------------
// Add each mru/callout to the error log.
//--------------------------------------------------------------------------
for ( SDC_MRU_LIST::const_iterator it = mruList.begin();
it < mruList.end(); ++it )
{
PRDcallout thiscallout = it->callout;
PRDpriority thispriority = it->priority;
// Use the global gard/deconfig policies as default.
HWAS::GARD_ErrorType thisGard = gardPolicy;
HWAS::DeconfigEnum thisDeconfig = deconfigPolicy;
// Change the gard/deconfig actions if this MRU should not be garded.
if ( NO_GARD == it->gardState )
{
thisGard = HWAS::GARD_NULL;
thisDeconfig = HWAS::NO_DECONFIG;
}
// Add the callout to the PFA data
addCalloutToPfaData( pfaData, thiscallout, thispriority, thisGard );
// Add callout based on callout type.
if( PRDcalloutData::TYPE_TARGET == thiscallout.getType() )
{
PRDF_HW_ADD_CALLOUT(thiscallout.getTarget(),
thispriority,
thisDeconfig,
iv_errl,
thisGard,
errlSev,
l_diagUpdate);
}
else if(PRDcalloutData::TYPE_PROCCLK == thiscallout.getType() ||
PRDcalloutData::TYPE_PCICLK == thiscallout.getType())
{
PRDF_ADD_CLOCK_CALLOUT(iv_errl,
thiscallout.getTarget(),
thiscallout.getType(),
thispriority,
thisDeconfig,
thisGard);
}
else if ( PRDcalloutData::TYPE_MEMMRU == thiscallout.getType() )
{
/* TODO RTC 136125
MemoryMru memMru (thiscallout.flatten());
TargetHandleList partList = memMru.getCalloutList();
for ( TargetHandleList::iterator it = partList.begin();
it != partList.end(); it++ )
{
PRDF_HW_ADD_CALLOUT( *it,
thispriority,
thisDeconfig,
iv_errl,
thisGard,
errlSev,
l_diagUpdate );
}
*/
}
else if ( PRDcalloutData::TYPE_SYMFRU == thiscallout.getType() )
{
thisProcedureID = epubProcedureID(thiscallout.flatten());
PRDF_DTRAC( PRDF_FUNC "thisProcedureID: %x, thispriority: %x, "
"errlSev: %x", thisProcedureID, thispriority,errlSev );
PRDF_HW_ADD_PROC_CALLOUT(thisProcedureID,
thispriority,
iv_errl,
errlSev);
// Use the flags set earlier to determine if the callout is just Software (SP code or Phyp Code).
// Add a Second Level Support procedure callout Low, for this case.
if (HW == false && SW == true && SecondLevel == false)
{
PRDF_DTRAC( PRDF_FUNC "thisProcedureID= %x, thispriority=%x, "
"errlSev=%x", EPUB_PRC_LVL_SUPP, MRU_LOW, errlSev );
PRDF_HW_ADD_PROC_CALLOUT(EPUB_PRC_LVL_SUPP,
MRU_LOW,
iv_errl,
errlSev);
SecondLevel = true;
}
}
}
// Send the dynamic memory Dealloc message for DIMMS for Predictive
// callouts.
// We can not check for ERRL severity here as there are some cases
// e.g. DD02 where we create a Predictive error log but callouts
// are not predictive.
if ( HWAS::GARD_Predictive == gardPolicy )
{
deallocateDimms( mruList );
}
//**************************************************************
// Check for Terminating the system for non mnfg conditions.
//**************************************************************
ForceTerminate = checkForceTerm( io_sdc, o_dumpTrgt, pfaData );
//*************************************************************
// Check for Manufacturing Mode terminate here and then do
// the needed overrides on ForceTerminate flag.
//*************************************************************
if ( PlatServices::mnfgTerminate() && !ForceTerminate )
{
ForceTerminate = true;
if ( !((errlSev == ERRL_SEV_RECOVERED) ||
(errlSev == ERRL_SEV_INFORMATIONAL)) &&
iplDiagMode &&
!HW )
{
//Terminate in Manufacturing Mode, in IPL mode, for visible log, with no HW callouts.
PRDF_SRC_WRITE_TERM_STATE_ON(iv_errl, SRCI_TERM_STATE_MNFG);
}
// Do not terminate if recoverable or informational.
// Do not terminate if deferred deconfig.
else if ( deferDeconfig ||
(errlSev == ERRL_SEV_RECOVERED ) ||
(errlSev == ERRL_SEV_INFORMATIONAL) )
{
ForceTerminate = false;
errlAct |= ERRL_ACTION_DONT_TERMINATE;
}
else
{
PRDF_SRC_WRITE_TERM_STATE_ON(iv_errl, SRCI_TERM_STATE_MNFG);
}
pfaData.errlActions = errlAct;
}
// Needed to move the errl add user data sections here because of some updates
// of the data required in the Aysnc section for the SMA dual reporting fix.
//**************************************************************
// Add the PFA data to Error Log User Data
//**************************************************************
UtilMem l_membuf;
l_membuf << pfaData;
PRDF_ADD_FFDC( iv_errl, (const char*)l_membuf.base(), l_membuf.size(),
ErrlVer1, ErrlSectPFA5_1 );
//**************************************************************
// Add SDC Capture data to Error Log User Data
//**************************************************************
// Pulled some code out to incorporate into AddCapData
// Check to make sure Capture Data wasn't added earlier.
if (!capDataAdded)
{
AddCapData( io_sdc.GetCaptureData(), iv_errl );
AddCapData( io_sdc.getTraceArrayData(), iv_errl );
}
//**************************************************************************
// Add extended MemoryMru error log sections (if needed).
//**************************************************************************
for ( SDC_MRU_LIST::const_iterator it = mruList.begin();
it < mruList.end(); ++it )
{
// Operate only on MemoryMru callouts.
if ( PRDcalloutData::TYPE_MEMMRU != it->callout.getType() ) continue;
/* TODO RTC 136125
// Only add single DIMM callouts. Otherwise, the parsed data is
// redundant.
MemoryMru memMru ( it->callout.flatten() );
if ( !memMru.getSymbol().isValid() ) continue;
// Add the MemoryMru to the capture data.
CenMbaCaptureData::addExtMemMruData( memMru, iv_errl );
*/
}
// Note moved the code from here, that was associated with checking for the last
// functional core to be before the PFA data is placed in error log.
// Collect PRD trace
// NOTE: Each line of trace is on average 36 bytes so 768 bytes should get
// us around 21 lines of trace output.
PRDF_COLLECT_TRACE(iv_errl, 768);
//**************************************************************
// Commit the error log.
// This will also perform Gard and Deconfig actions.
// Do the Unit Dumps if needed.
//**************************************************************
// Add the MNFG trace information.
MnfgTrace( io_sdc.GetErrorSignature(), pfaData );
// If this is not a terminating condition, commit the error log. If the
// error log is not committed, the error log will be passed back to
// PRDF::main() and eventually ATTN.
if ( MACHINE_CHECK != pfaData.priAttnType && !ForceTerminate &&
!pfaData.TERMINATE )
{
// Handle any unit checkstop conditions, if needed (i.e. runtime
// deconfiguration, dump/FFDC collection, etc.
if ( io_sdc.IsUnitCS() && !io_sdc.IsUsingSavedSdc() )
{
handleUnitCS( io_sdc, o_dumpTrgt, o_initiateHwudump );
}
if ( true == o_initiateHwudump )
{
// the dump log will be deleted later in PRDF::main
// after the hwudump is initiated there.
o_dumpErrl = iv_errl;
iv_errl = NULL;
o_dumpErrlActions = errlAct;
PRDF_TRAC( PRDF_FUNC "for target: 0x%08x, i_errl: 0x%08x, "
"i_errlActions: 0x%08x", getHuid(o_dumpTrgt),
ERRL_GETRC_SAFE(o_dumpErrl), o_dumpErrlActions );
}
else
{
// Commit the error log.
commitErrLog( iv_errl, pfaData );
}
}
#ifndef __HOSTBOOT_MODULE
errlHndl_t reg_errl = UtilReg::read ("prdf/RasServices", &sdcSaveFlags, sz_uint8);
if (reg_errl)
{
PRDF_ERR( PRDF_FUNC "Failure in SDC Sync flag Registry read" );
PRDF_COMMIT_ERRL(reg_errl, ERRL_ACTION_REPORT);
}
else
{
//Turn off indicator that there is saved Sdc Analysis info
sdcSaveFlags &= ( ~SDC_ANALYSIS_SAVE_FLAG );
reg_errl = UtilReg::write ("prdf/RasServices", &sdcSaveFlags, sz_uint8);
if (reg_errl)
{
PRDF_ERR( PRDF_FUNC "Failure in SDC Sync flag Registry write" );
PRDF_COMMIT_ERRL(reg_errl, ERRL_ACTION_REPORT);
}
}
#endif
PRDF_INF( PRDF_FUNC "PRD called to analyze an error: 0x%08x 0x%08x",
esig->getChipId(), esig->getSigId() );
// Reset iv_errl to NULL. This is done to catch logical bug in our code.
// It enables us to assert in createInitialErrl function if iv_errl is
// not NULL which should catch any logical bug in initial stages of testing.
errlHndl_t o_errl = iv_errl;
iv_errl = NULL;
return o_errl;
#undef PRDF_FUNC
}
//------------------------------------------------------------------------------
void ErrDataService::initPfaData( const ServiceDataCollector & i_sdc,
uint32_t i_attnType, bool i_deferDeconfig,
uint32_t i_errlAct, uint32_t i_errlSev,
uint32_t i_gardPolicy,
PfaData & o_pfa, TargetHandle_t & o_dumpTrgt )
{
// Dump info
o_pfa.msDumpLabel[0] = 0x4D532020; // Start of MS Dump flags
o_pfa.msDumpLabel[1] = 0x44554D50; // 'MS DUMP'
hwTableContent dumpContent;
i_sdc.GetDumpRequest( dumpContent, o_dumpTrgt );
// TODO: RTC 116213 proc_mpipl_check_eligibility() is completely broken so
// reverting this bug fix to the original 810 and 820 behavior (per
// request from Kevin) until proc_mpipl_check_eligibility() is fixed
// in FW830.
//checkMpIplEligibility( i_attnType, o_dumpTrgt, dumpContent );
o_pfa.msDumpInfo.content = dumpContent;
o_pfa.msDumpInfo.id = getHuid(o_dumpTrgt);
// Error log actions and severity
o_pfa.errlActions = i_errlAct;
o_pfa.errlSeverity = i_errlSev;
// PRD Service Data Collector Flags (1:true, 0:false)
o_pfa.DUMP = i_sdc.IsDump() ? 1 : 0;
o_pfa.UERE = i_sdc.IsUERE() ? 1 : 0;
o_pfa.SUE = i_sdc.IsSUE() ? 1 : 0;
o_pfa.AT_THRESHOLD = i_sdc.IsAtThreshold() ? 1 : 0;
o_pfa.DEGRADED = i_sdc.IsDegraded() ? 1 : 0;
o_pfa.SERVICE_CALL = i_sdc.queryServiceCall() ? 1 : 0;
o_pfa.TRACKIT = i_sdc.IsMfgTracking() ? 1 : 0;
o_pfa.TERMINATE = i_sdc.Terminate() ? 1 : 0;
o_pfa.LOGIT = i_sdc.queryLogging() ? 1 : 0;
o_pfa.UNIT_CHECKSTOP = i_sdc.IsUnitCS() ? 1 : 0;
o_pfa.LAST_CORE_TERMINATE = 0; // Will be set later, if needed.
o_pfa.USING_SAVED_SDC = i_sdc.IsUsingSavedSdc() ? 1 : 0;
o_pfa.DEFER_DECONFIG = i_deferDeconfig ? 1 : 0;
o_pfa.SECONDARY_ERROR = i_sdc.isSecondaryErrFound() ? 1 : 0;
// Thresholding
o_pfa.errorCount = i_sdc.GetHits();
o_pfa.threshold = i_sdc.GetThreshold();
// Misc
o_pfa.serviceActionCounter = iv_serviceActionCounter;
o_pfa.globalGardPolicy = i_gardPolicy;
// Attention types
o_pfa.priAttnType = i_attnType;
o_pfa.secAttnType = i_sdc.getSecondaryAttnType();
// Initialize the MRU count to 0. Callouts will be added to the PFA data
// when callouts are added to the error log.
o_pfa.mruListCount = 0;
// Build the signature list into PFA data
const PRDF_SIGNATURES & sigList = i_sdc.getSignatureList();
uint32_t i = 0;
for ( i = 0; i < sigList.size() && i < SigListLIMIT; i++ )
{
o_pfa.sigList[i].chipId = getHuid(sigList[i].target);
o_pfa.sigList[i].signature = sigList[i].signature;
}
o_pfa.sigListCount = i;
}
//------------------------------------------------------------------------------
void ErrDataService::addCalloutToPfaData( PfaData & io_pfa,
PRDcallout i_callout,
PRDpriority i_priority,
HWAS::GARD_ErrorType i_gardType )
{
uint32_t cnt = io_pfa.mruListCount;
if ( MruListLIMIT > cnt )
{
io_pfa.mruList[cnt].callout = i_callout.flatten();
io_pfa.mruList[cnt].type = i_callout.getType();
io_pfa.mruList[cnt].priority = i_priority;
io_pfa.mruList[cnt].gardState = i_gardType;
io_pfa.mruListCount++;
}
}
//------------------------------------------------------------------------------
void ErrDataService::AddCapData( CaptureData & i_cd, errlHndl_t i_errHdl)
{
// As CaptureDataClass has large array inside, allocate it on heap
CaptureDataClass *l_CapDataBuf = new CaptureDataClass() ;
for(uint32_t ii = 0; ii < CaptureDataSize; ++ii)
{
l_CapDataBuf->CaptureData[ii] = 0xFF;
}
uint32_t thisCapDataSize = i_cd.Copy( l_CapDataBuf->CaptureData,
CaptureDataSize );
do
{
if( 0 == thisCapDataSize )
{
// Nothing to add
break;
}
l_CapDataBuf->PfaCaptureDataSize = htonl( thisCapDataSize );
thisCapDataSize = thisCapDataSize +
sizeof(l_CapDataBuf->PfaCaptureDataSize);
//Compress the Capture data
size_t l_compressBufSize =
PrdfCompressBuffer::compressedBufferMax( thisCapDataSize );
uint8_t * l_compressCapBuf = new uint8_t[l_compressBufSize];
PrdfCompressBuffer::compressBuffer( ( ( uint8_t * ) l_CapDataBuf ),
(size_t) thisCapDataSize ,
l_compressCapBuf,
l_compressBufSize);
//Actual size of compressed data is returned in l_compressBufSize
//Add the Compressed Capture data to Error Log User Data
PRDF_ADD_FFDC( i_errHdl, (const char*)l_compressCapBuf,
(size_t) l_compressBufSize, ErrlVer2, ErrlCapData_1 );
delete [] l_compressCapBuf;
}while (0);
delete l_CapDataBuf;
}
//------------------------------------------------------------------------------
#ifndef __HOSTBOOT_MODULE
bool ErrDataService::SdcSave( sdcSaveFlagsEnum i_saveFlag,
ServiceDataCollector & i_saveSdc )
{
#define PRDF_FUNC "SdcRetrieve() "
errlHndl_t errorLog = NULL;
bool rc = false;
uint8_t sdcSaveFlags = SDC_NO_SAVE_FLAGS;
size_t sz_uint8 = sizeof(uint8_t);
const char * UeSdcKeys[] = {"fstp/P1_Root","prdf/UeSdcDataPath"};
const char * SueSdcKeys[] = {"fstp/P1_Root","prdf/SueSdcDataPath"};
char * SdcFilename = NULL;
uint32_t l_size = 0;
do
{
//Need path to the File
if (i_saveFlag == SDC_SAVE_UE_FLAG)
errorLog = UtilReg::path(UeSdcKeys,2,NULL,SdcFilename,l_size);
else if (i_saveFlag == SDC_SAVE_SUE_FLAG)
errorLog = UtilReg::path(SueSdcKeys,2,NULL,SdcFilename,l_size);
else
{
//Should not get here - code error
PRDF_ERR( PRDF_FUNC "Failure - incorrect SDC save flag" );
rc = true;
break;
}
if (errorLog)
{
PRDF_ERR( PRDF_FUNC "Failure in getting SDC file path" );
PRDF_COMMIT_ERRL(errorLog, ERRL_ACTION_REPORT);
rc = true;
break;
}
rc = SdcWrite(SdcFilename, i_saveSdc);
if (rc)
{
break;
}
//Read current SDC state flags from registry
errorLog = UtilReg::read ("prdf/RasServices", &sdcSaveFlags, sz_uint8);
if (errorLog)
{
PRDF_ERR( PRDF_FUNC "Failure in SDC flag Registry read" );
PRDF_COMMIT_ERRL(errorLog, ERRL_ACTION_REPORT);
rc = true;
break;
}
//Update Sdc registry flag
sdcSaveFlags = (sdcSaveFlags | i_saveFlag);
errorLog = UtilReg::write ("prdf/RasServices", &sdcSaveFlags, sz_uint8);
if (errorLog)
{
PRDF_ERR( PRDF_FUNC "Failure in SDC flag Registry write" );
PRDF_COMMIT_ERRL(errorLog, ERRL_ACTION_REPORT);
rc = true;
break;
}
}
while(0);
if (SdcFilename != NULL)
{ //need to free the pathname
free(SdcFilename);
SdcFilename = NULL;
}
return rc;
#undef PRDF_FUNC
}
//------------------------------------------------------------------------------
bool ErrDataService::SdcRetrieve(sdcSaveFlagsEnum i_saveFlag, void * o_buffer)
{
#define PRDF_FUNC "SdcRetrieve() "
errlHndl_t errorLog = NULL;
bool rc = false;
const char * UeSdcKeys[] = {"fstp/P1_Root","prdf/UeSdcDataPath"};
const char * SueSdcKeys[] = {"fstp/P1_Root","prdf/SueSdcDataPath"};
char * SdcFilename = NULL;
uint32_t l_size = 0;
do
{
//Need path to the File
if (i_saveFlag == SDC_SAVE_UE_FLAG)
errorLog = UtilReg::path(UeSdcKeys,2,NULL,SdcFilename,l_size);
else if (i_saveFlag == SDC_SAVE_SUE_FLAG)
errorLog = UtilReg::path(SueSdcKeys,2,NULL,SdcFilename,l_size);
else
{
//Should not get here - code error
PRDF_ERR(PRDF_FUNC "Failure - incorrect SDC save flag" );
rc = true;
break;
}
if (errorLog)
{
PRDF_ERR( PRDF_FUNC "Failure in getting SDC file path" );
PRDF_COMMIT_ERRL(errorLog, ERRL_ACTION_REPORT);
rc = true;
break;
}
rc = SdcRead (SdcFilename, o_buffer);
}
while(0);
if (SdcFilename != NULL)
{ //need to free the pathname
free(SdcFilename);
SdcFilename = NULL;
}
return rc;
#undef PRDF_FUNC
}
#endif // if not __HOSTBOOT_MODULE
//------------------------------------------------------------------------------
void ErrDataService::deallocateDimms( const SDC_MRU_LIST & i_mruList )
{
#define PRDF_FUNC "[ErrDataService::deallocateDimms] "
/* TODO: RTC 136129
#if !defined(__HOSTBOOT_MODULE) || defined(__HOSTBOOT_RUNTIME) // RT only
do
{
// First check if Dynamic Memory Deallocation is supported. Then check
// if it is enabled for predictive callouts.
if ( !DEALLOC::isEnabled() || !isPredDynDeallocEnabled() ) break;
TargetHandleList dimmList;
for ( SDC_MRU_LIST::const_iterator it = i_mruList.begin();
it != i_mruList.end(); ++it )
{
PRDcallout thiscallout = it->callout;
if ( PRDcalloutData::TYPE_TARGET == thiscallout.getType() )
{
TargetHandle_t calloutTgt = thiscallout.getTarget();
TYPE tgtType = getTargetType( calloutTgt );
if ( TYPE_L4 == tgtType )
{
calloutTgt = getConnectedParent( calloutTgt, TYPE_MEMBUF );
tgtType = TYPE_MEMBUF;
}
if ( (TYPE_MEMBUF == tgtType) ||
(TYPE_MBA == tgtType) ||
(TYPE_MCS == tgtType) )
{
TargetHandleList dimms = getConnected( calloutTgt,
TYPE_DIMM );
dimmList.insert( dimmList.end(), dimms.begin(),
dimms.end() );
}
else if ( TYPE_DIMM == tgtType )
{
dimmList.push_back( calloutTgt );
}
}
else if ( PRDcalloutData::TYPE_MEMMRU == thiscallout.getType() )
{
MemoryMru memMru (thiscallout.flatten());
TargetHandleList dimms = memMru.getCalloutList();
for ( TargetHandleList::iterator dimm = dimms.begin();
dimm != dimms.end(); ++dimm )
{
if ( TYPE_DIMM == getTargetType(*dimm) )
dimmList.push_back(*dimm);
}
}
}
if( 0 == dimmList.size() ) break;
int32_t rc = DEALLOC::dimmListGard( dimmList );
if ( SUCCESS != rc )
{
PRDF_ERR( PRDF_FUNC "dimmListGard failed" );
break;
}
} while(0);
#endif
*/
#undef PRDF_FUNC
}
//------------------------------------------------------------------------------
// RasServices class
//------------------------------------------------------------------------------
RasServices::RasServices() :
iv_eds(NULL)
{
iv_eds = new ErrDataService();
}
//------------------------------------------------------------------------------
RasServices::~RasServices()
{
if ( NULL != iv_eds )
{
delete iv_eds;
iv_eds = NULL;
}
}
//------------------------------------------------------------------------------
void RasServices::Initialize()
{
iv_eds->Initialize();
}
//------------------------------------------------------------------------------
void RasServices::setErrDataService( ErrDataService & i_eds )
{
if ( NULL != iv_eds )
{
delete iv_eds;
iv_eds = NULL;
}
iv_eds = &i_eds;
}
//------------------------------------------------------------------------------
errlHndl_t RasServices::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
ServiceDataCollector & io_sdc,
bool & o_initiateHwudump,
TargetHandle_t & o_dumpTrgt,
errlHndl_t & o_dumpErrl,
uint32_t & o_dumpErrlActions )
{
return iv_eds->GenerateSrcPfa( i_attnType, io_sdc, o_initiateHwudump,
o_dumpTrgt, o_dumpErrl, o_dumpErrlActions );
}
//------------------------------------------------------------------------------
void RasServices::createInitialErrl( ATTENTION_TYPE i_attnType )
{
iv_eds->createInitialErrl( i_attnType );
}
//------------------------------------------------------------------------------
errlHndl_t RasServices::getErrl() const
{
return iv_eds->getErrl();
}
} // end namespace PRDF
/******************************************************************************/
// Servicability tags for PRDF Ras Services.
// They are located here because their position in the code is not relevant.
/******************************************************************************/
/*@
* @errortype
* @reasoncode PRDF_DETECTED_FAIL_HARDWARE
* @subsys EPUB_PROCESSOR_SUBSYS
* @subsys EPUB_PROCESSOR_FRU
* @subsys EPUB_PROCESSOR_CHIP_CACHE
* @subsys EPUB_PROCESSOR_UNIT
* @subsys EPUB_PROCESSOR_BUS_CTL
* @subsys EPUB_MEMORY_SUBSYS
* @subsys EPUB_MEMORY_CONTROLLER
* @subsys EPUB_MEMORY_DIMM
* @subsys EPUB_MEMORY_FRU
* @subsys EPUB_EXTERNAL_CACHE
* @subsys EPUB_CEC_HDW_SUBSYS
* @subsys EPUB_CEC_HDW_CLK_CTL
* @subsys EPUB_CEC_HDW_TOD_HDW
* @subsys EPUB_CEC_HDW_SP_PHYP_INTF
* @subsys EPUB_MISC_SUBSYS
* @subsys EPUB_MISC_UNKNOWN
* @subsys EPUB_MISC_INFORMATIONAL
* @subsys EPUB_FIRMWARE_SUBSYS
* @subsys EPUB_FIRMWARE_SP
* @subsys EPUB_FIRMWARE_PHYP
* @subsys EPUB_FIRMWARE_HMC
* @subsys EPUB_EXT_ENVIRO_USER
* @moduleid PRDF_MAIN
* @userdata1 PRD Chip Signature
* @userdata2 PRD Attention Type and Cause Attention Type
* @userdata3 PRD Signature
* @devdesc CEC hardware failure detected.
* @procedure EPUB_PRC_ALL_PROCS
* @procedure EPUB_PRC_REBOOT
* @procedure EPUB_PRC_TOD_CLOCK_ERR
*/
/*@
* @errortype
* @reasoncode PRDF_DETECTED_FAIL_HARDWARE_PROBABLE
* @subsys EPUB_PROCESSOR_SUBSYS
* @subsys EPUB_PROCESSOR_FRU
* @subsys EPUB_PROCESSOR_CHIP_CACHE
* @subsys EPUB_PROCESSOR_UNIT
* @subsys EPUB_PROCESSOR_BUS_CTL
* @subsys EPUB_MEMORY_SUBSYS
* @subsys EPUB_MEMORY_CONTROLLER
* @subsys EPUB_MEMORY_DIMM
* @subsys EPUB_MEMORY_FRU
* @subsys EPUB_EXTERNAL_CACHE
* @subsys EPUB_CEC_HDW_SUBSYS
* @subsys EPUB_CEC_HDW_CLK_CTL
* @subsys EPUB_CEC_HDW_TOD_HDW
* @subsys EPUB_CEC_HDW_SP_PHYP_INTF
* @subsys EPUB_MISC_SUBSYS
* @subsys EPUB_MISC_UNKNOWN
* @subsys EPUB_MISC_INFORMATIONAL
* @subsys EPUB_FIRMWARE_SUBSYS
* @subsys EPUB_FIRMWARE_SP
* @subsys EPUB_FIRMWARE_PHYP
* @subsys EPUB_FIRMWARE_HMC
* @subsys EPUB_EXT_ENVIRO_USER
* @moduleid PRDF_MAIN
* @userdata1 PRD Chip Signature
* @userdata2 PRD Attention Type and Cause Attention Type
* @userdata3 PRD Signature
* @devdesc CEC hardware failure detected. Cause is most likely hardware,
* but there are other callouts including Software or Next Level
* Support.
* @procedure EPUB_PRC_SP_CODE
* @procedure EPUB_PRC_PHYP_CODE
* @procedure EPUB_PRC_LVL_SUPP
* @procedure EPUB_PRC_ALL_PROCS
* @procedure EPUB_PRC_REBOOT
* @procedure EPUB_PRC_TOD_CLOCK_ERR
*/
/*@
* @errortype
* @reasoncode PRDF_DETECTED_FAIL_SOFTWARE_PROBABLE
* @subsys EPUB_PROCESSOR_SUBSYS
* @subsys EPUB_PROCESSOR_FRU
* @subsys EPUB_PROCESSOR_CHIP_CACHE
* @subsys EPUB_PROCESSOR_UNIT
* @subsys EPUB_PROCESSOR_BUS_CTL
* @subsys EPUB_MEMORY_SUBSYS
* @subsys EPUB_MEMORY_CONTROLLER
* @subsys EPUB_MEMORY_DIMM
* @subsys EPUB_MEMORY_FRU
* @subsys EPUB_EXTERNAL_CACHE
* @subsys EPUB_CEC_HDW_SUBSYS
* @subsys EPUB_CEC_HDW_CLK_CTL
* @subsys EPUB_CEC_HDW_TOD_HDW
* @subsys EPUB_CEC_HDW_SP_PHYP_INTF
* @subsys EPUB_MISC_SUBSYS
* @subsys EPUB_MISC_UNKNOWN
* @subsys EPUB_MISC_INFORMATIONAL
* @subsys EPUB_FIRMWARE_SUBSYS
* @subsys EPUB_FIRMWARE_SP
* @subsys EPUB_FIRMWARE_PHYP
* @subsys EPUB_FIRMWARE_HMC
* @subsys EPUB_EXT_ENVIRO_USER
* @moduleid PRDF_MAIN
* @userdata1 PRD Chip Signature
* @userdata2 PRD Attention Type and Cause Attention Type
* @userdata3 PRD Signature
* @devdesc CEC hardware failure detected. Cause is most likley Software,
* but there are also Hardware callouts.
* @procedure EPUB_PRC_SP_CODE
* @procedure EPUB_PRC_PHYP_CODE
* @procedure EPUB_PRC_LVL_SUPP
* @procedure EPUB_PRC_ALL_PROCS
* @procedure EPUB_PRC_REBOOT
* @procedure EPUB_PRC_TOD_CLOCK_ERR
*/
/*@
* @errortype
* @reasoncode PRDF_DETECTED_FAIL_SOFTWARE
* @subsys EPUB_MISC_SUBSYS
* @subsys EPUB_MISC_UNKNOWN
* @subsys EPUB_FIRMWARE_SUBSYS
* @subsys EPUB_FIRMWARE_SP
* @subsys EPUB_FIRMWARE_PHYP
* @subsys EPUB_FIRMWARE_HMC
* @moduleid PRDF_MAIN
* @userdata1 PRD Chip Signature
* @userdata2 PRD Attention Type and Cause Attention Type
* @userdata3 PRD Signature
* @devdesc CEC hardware failure detected. Cause is most likely Software.
* @procedure EPUB_PRC_SP_CODE
* @procedure EPUB_PRC_PHYP_CODE
* @procedure EPUB_PRC_LVL_SUPP
* @procedure EPUB_PRC_ALL_PROCS
* @procedure EPUB_PRC_REBOOT
* @procedure EPUB_PRC_TOD_CLOCK_ERR
*/
|