summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/explorer/explorer_ocmb.rule
blob: c1e5c15a88e9bc973fafce7255016334ecd8b5ff (plain)
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
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/usr/diag/prdf/common/plat/explorer/explorer_ocmb.rule $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2018,2019
# [+] 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

chip explorer_ocmb
{
    name        "EXPLORER OCMB target";
    targettype  TYPE_OCMB_CHIP;
    sigoff      0x9000;
    dump        DUMP_CONTENT_HW;
    scomlen     64;

 #############################################################################
 #                                                                           #
 #  ######                                                                   #
 #  #     #  ######   ####     ###    ####    #####  ######  #####    ####   #
 #  #     #  #       #    #     #    #          #    #       #    #  #       #
 #  ######   #####   #          #     ####      #    #####   #    #   ####   #
 #  #   #    #       #  ###     #         #     #    #       #####        #  #
 #  #    #   #       #    #     #    #    #     #    #       #   #   #    #  #
 #  #     #  ######   ####     ###    ####      #    ######  #    #   ####   #
 #                                                                           #
 #############################################################################

    ############################################################################
    # OCMB Chiplet FIR
    ############################################################################

    register OCMB_CHIPLET_CS_FIR
    {
        name        "OCMB Chiplet Checkstop FIR";
        scomaddr    0x08040000;
        capture     group default;
    };

    register OCMB_CHIPLET_RE_FIR
    {
        name        "OCMB Chiplet Recoverable FIR";
        scomaddr    0x08040001;
        capture     group default;
    };

    register OCMB_CHIPLET_FIR_MASK
    {
        name        "OCMB Chiplet FIR MASK";
        scomaddr    0x08040002;
        capture     group default;
    };

    ############################################################################
    # OCMB Chiplet Special Attention FIR
    ############################################################################

    register OCMB_CHIPLET_SPA_FIR
    {
        name        "OCMB Chiplet Special Attention FIR";
        scomaddr    0x08040004;
        capture     group default;
    };

    register OCMB_CHIPLET_SPA_FIR_MASK
    {
        name        "OCMB Chiplet Special Attention FIR MASK";
        scomaddr    0x08040007;
        capture     group default;
    };

    ############################################################################
    # Explorer chip OCMB_LFIR
    ############################################################################

    register OCMB_LFIR
    {
        name        "Explorer chip OCMB_LFIR";
        scomaddr    0x0804000a;
        reset       (&, 0x0804000b);
        mask        (|, 0x0804000f);
        capture     group default;
    };

    register OCMB_LFIR_MASK
    {
        name        "Explorer chip OCMB_LFIR MASK";
        scomaddr    0x0804000d;
        capture     group default;
    };

    register OCMB_LFIR_ACT0
    {
        name        "Explorer chip OCMB_LFIR ACT0";
        scomaddr    0x08040010;
        capture     group default;
        capture     req nonzero("OCMB_LFIR");
    };

    register OCMB_LFIR_ACT1
    {
        name        "Explorer chip OCMB_LFIR ACT1";
        scomaddr    0x08040011;
        capture     group default;
        capture     req nonzero("OCMB_LFIR");
    };

    ############################################################################
    # Explorer chip MMIOFIR
    ############################################################################

    register MMIOFIR
    {
        name        "Explorer chip MMIOFIR";
        scomaddr    0x08010870;
        reset       (&, 0x08010871);
        mask        (|, 0x08010875);
        capture     group default;
    };

    register MMIOFIR_MASK
    {
        name        "Explorer chip MMIOFIR MASK";
        scomaddr    0x08010873;
        capture     group default;
    };

    register MMIOFIR_ACT0
    {
        name        "Explorer chip MMIOFIR ACT0";
        scomaddr    0x08010876;
        capture     group default;
        capture     req nonzero("MMIOFIR");
    };

    register MMIOFIR_ACT1
    {
        name        "Explorer chip MMIOFIR ACT1";
        scomaddr    0x08010877;
        capture     group default;
        capture     req nonzero("MMIOFIR");
    };

    ############################################################################
    # Explorer chip SRQFIR
    ############################################################################

    register SRQFIR
    {
        name        "Explorer chip SRQFIR";
        scomaddr    0x08011400;
        reset       (&, 0x08011401);
        mask        (|, 0x08011405);
        capture     group default;
    };

    register SRQFIR_MASK
    {
        name        "Explorer chip SRQFIR MASK";
        scomaddr    0x08011403;
        capture     group default;
    };

    register SRQFIR_ACT0
    {
        name        "Explorer chip SRQFIR ACT0";
        scomaddr    0x08011406;
        capture     group default;
        capture     req nonzero("SRQFIR");
    };

    register SRQFIR_ACT1
    {
        name        "Explorer chip SRQFIR ACT1";
        scomaddr    0x08011407;
        capture     group default;
        capture     req nonzero("SRQFIR");
    };

    ############################################################################
    # Explorer chip MCBISTFIR
    ############################################################################

    register MCBISTFIR
    {
        name        "Explorer chip MCBISTFIR";
        scomaddr    0x08011800;
        reset       (&, 0x08011801);
        mask        (|, 0x08011805);
        capture     group default;
    };

    register MCBISTFIR_MASK
    {
        name        "Explorer chip MCBISTFIR MASK";
        scomaddr    0x08011803;
        capture     group default;
    };

    register MCBISTFIR_ACT0
    {
        name        "Explorer chip MCBISTFIR ACT0";
        scomaddr    0x08011806;
        capture     group default;
        capture     req nonzero("MCBISTFIR");
    };

    register MCBISTFIR_ACT1
    {
        name        "Explorer chip MCBISTFIR ACT1";
        scomaddr    0x08011807;
        capture     group default;
        capture     req nonzero("MCBISTFIR");
    };

    ############################################################################
    # Explorer chip RDFFIR
    ############################################################################

    register RDFFIR
    {
        name        "Explorer chip RDFFIR";
        scomaddr    0x08011c00;
        reset       (&, 0x08011c01);
        mask        (|, 0x08011c05);
        capture     group default;
    };

    register RDFFIR_MASK
    {
        name        "Explorer chip RDFFIR MASK";
        scomaddr    0x08011c03;
        capture     group default;
    };

    register RDFFIR_ACT0
    {
        name        "Explorer chip RDFFIR ACT0";
        scomaddr    0x08011c06;
        capture     group default;
        capture     req nonzero("RDFFIR");
    };

    register RDFFIR_ACT1
    {
        name        "Explorer chip RDFFIR ACT1";
        scomaddr    0x08011c07;
        capture     group default;
        capture     req nonzero("RDFFIR");
    };

    ############################################################################
    # Explorer chip TLXFIR
    ############################################################################

    register TLXFIR
    {
        name        "Explorer chip TLXFIR";
        scomaddr    0x08012400;
        reset       (&, 0x08012401);
        mask        (|, 0x08012405);
        capture     group default;
    };

    register TLXFIR_MASK
    {
        name        "Explorer chip TLXFIR MASK";
        scomaddr    0x08012403;
        capture     group default;
    };

    register TLXFIR_ACT0
    {
        name        "Explorer chip TLXFIR ACT0";
        scomaddr    0x08012406;
        capture     group default;
        capture     req nonzero("TLXFIR");
    };

    register TLXFIR_ACT1
    {
        name        "Explorer chip TLXFIR ACT1";
        scomaddr    0x08012407;
        capture     group default;
        capture     req nonzero("TLXFIR");
    };

    ############################################################################
    # Explorer chip OMIDLFIR
    ############################################################################

    register OMIDLFIR
    {
        name        "Explorer chip OMIDLFIR";
        scomaddr    0x08012800;
        reset       (&, 0x08012801);
        mask        (|, 0x08012805);
        capture     group default;
    };

    register OMIDLFIR_MASK
    {
        name        "Explorer chip OMIDLFIR MASK";
        scomaddr    0x08012803;
        capture     group default;
    };

    register OMIDLFIR_ACT0
    {
        name        "Explorer chip OMIDLFIR ACT0";
        scomaddr    0x08012806;
        capture     group default;
        capture     req nonzero("OMIDLFIR");
    };

    register OMIDLFIR_ACT1
    {
        name        "Explorer chip OMIDLFIR ACT1";
        scomaddr    0x08012807;
        capture     group default;
        capture     req nonzero("OMIDLFIR");
    };

# Include registers not defined by the xml
.include "explorer_ocmb_regs.rule";

};

 ##############################################################################
 #                                                                            #
 # ####                                 #                                     #
 # #   # #   # #    #####  ###      #  # #    ##  ##### ###  ###  #   #  ###  #
 # #   # #   # #    #     #        #  #   #  #  #   #    #  #   # ##  # #     #
 # ####  #   # #    ####   ###    #  ####### #      #    #  #   # # # #  ###  #
 # #  #  #   # #    #         #  #   #     # #  #   #    #  #   # #  ##     # #
 # #   #  ###  #### #####  ###  #    #     #  ##    #   ###  ###  #   #  ###  #
 #                                                                            #
 ##############################################################################

################################################################################
# OCMB Chiplet FIR
################################################################################

rule rOCMB_CHIPLET_FIR
{
  UNIT_CS:
     OCMB_CHIPLET_CS_FIR       & ~OCMB_CHIPLET_FIR_MASK & `1fffffffffffffff`;
  RECOVERABLE:
    (OCMB_CHIPLET_RE_FIR >> 2) & ~OCMB_CHIPLET_FIR_MASK & `1fffffffffffffff`;
};

# NOTE: RDFFIR[14|34] are possible side effects of OCMB_LFIR[38], as such,
#       OCMB_LFIR must be analyzed first for correct handling. If changes are
#       made so the RDFFIR is analyzed first, additional changes to the handling
#       of those bits will be required.
group gOCMB_CHIPLET_FIR attntype UNIT_CS, RECOVERABLE
    filter singlebit
{
    /** OCMB_CHIPLET_FIR[3]
     *  Attention from OCMB_LFIR
     */
    (rOCMB_CHIPLET_FIR, bit(3)) ? analyzeOCMB_LFIR;

    /** OCMB_CHIPLET_FIR[4]
     *  Attention from MMIOFIR
     */
    (rOCMB_CHIPLET_FIR, bit(4)) ? analyzeMMIOFIR;

    /** OCMB_CHIPLET_FIR[7]
     *  Attention from SRQFIR
     */
    (rOCMB_CHIPLET_FIR, bit(7)) ? analyzeSRQFIR;

    /** OCMB_CHIPLET_FIR[8]
     *  Attention from MCBISTFIR
     */
    (rOCMB_CHIPLET_FIR, bit(8)) ? analyzeMCBISTFIR;

    /** OCMB_CHIPLET_FIR[9]
     *  Attention from RDFFIR
     */
    (rOCMB_CHIPLET_FIR, bit(9)) ? analyzeRDFFIR;

    /** OCMB_CHIPLET_FIR[11]
     *  Attention from TLXFIR
     */
    (rOCMB_CHIPLET_FIR, bit(11)) ? analyzeTLXFIR;

    /** OCMB_CHIPLET_FIR[12]
     *  Attention from OMIDLFIR
     */
    (rOCMB_CHIPLET_FIR, bit(12)) ? analyzeOMIDLFIR;

};

################################################################################
# OCMB Chiplet Special Attention FIR
################################################################################

rule rOCMB_CHIPLET_SPA_FIR
{
  HOST_ATTN:
    OCMB_CHIPLET_SPA_FIR & ~OCMB_CHIPLET_SPA_FIR_MASK;
};

group gOCMB_CHIPLET_SPA_FIR attntype HOST_ATTN
    filter singlebit
{
    /** OCMB_CHIPLET_SPA_FIR[1]
     *  Attention from MMIOFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(1)) ? analyzeMMIOFIR;

    /** OCMB_CHIPLET_SPA_FIR[4]
     *  Attention from SRQFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(4)) ? analyzeSRQFIR;

    /** OCMB_CHIPLET_SPA_FIR[5]
     *  Attention from MCBISTFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(5)) ? analyzeMCBISTFIR;

    /** OCMB_CHIPLET_SPA_FIR[6]
     *  Attention from RDFFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(6)) ? analyzeRDFFIR;

    /** OCMB_CHIPLET_SPA_FIR[8]
     *  Attention from TLXFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(8)) ? analyzeTLXFIR;

    /** OCMB_CHIPLET_SPA_FIR[9]
     *  Attention from OMIDLFIR
     */
    (rOCMB_CHIPLET_SPA_FIR, bit(9)) ? analyzeOMIDLFIR;

};

################################################################################
# Explorer chip OCMB_LFIR
################################################################################

rule rOCMB_LFIR
{
  UNIT_CS:
    OCMB_LFIR & ~OCMB_LFIR_MASK & ~OCMB_LFIR_ACT0 & ~OCMB_LFIR_ACT1;
  RECOVERABLE:
    OCMB_LFIR & ~OCMB_LFIR_MASK & ~OCMB_LFIR_ACT0 &  OCMB_LFIR_ACT1;
};

group gOCMB_LFIR
    filter singlebit,
           cs_root_cause
{
    /** OCMB_LFIR[0]
     *  CFIR access PCB error
     */
    (rOCMB_LFIR, bit(0)) ? self_th_32perDay;

    /** OCMB_LFIR[1]
     *  CFIR internal parity error
     */
    (rOCMB_LFIR, bit(1)) ? self_th_32perDay;

    /** OCMB_LFIR[2]
     *  LFIR internal parity error
     */
    (rOCMB_LFIR, bit(2)) ? self_th_32perDay;

    /** OCMB_LFIR[3]
     *  Debug scom satellite error
     */
    (rOCMB_LFIR, bit(3)) ? defaultMaskedError;

    /** OCMB_LFIR[4]
     *  PSCOM Logic: PCB Access Error
     */
    (rOCMB_LFIR, bit(4)) ? defaultMaskedError;

    /** OCMB_LFIR[5]
     *  PSCOM Logic: Summarized internal errors
     */
    (rOCMB_LFIR, bit(5)) ? defaultMaskedError;

    /** OCMB_LFIR[6]
     *  Trace Logic : Scom Satellite Error - Trace0
     */
    (rOCMB_LFIR, bit(6)) ? defaultMaskedError;

    /** OCMB_LFIR[7]
     *  Trace Logic : Scom Satellite Error - Trace1
     */
    (rOCMB_LFIR, bit(7)) ? defaultMaskedError;

    /** OCMB_LFIR[8]
     *  PIB2GIF parity error on FSM or Registers
     */
    (rOCMB_LFIR, bit(8)) ? self_th_32perDay;

    /** OCMB_LFIR[9]
     *  MSG access PCB error
     */
    (rOCMB_LFIR, bit(9)) ? defaultMaskedError;

    /** OCMB_LFIR[10:18]
     *  unused
     */
    (rOCMB_LFIR, bit(10|11|12|13|14|15|16|17|18)) ? defaultMaskedError;

    /** OCMB_LFIR[19]
     *  DLL IRQ
     */
    (rOCMB_LFIR, bit(19)) ? defaultMaskedError;

    /** OCMB_LFIR[20]
     *  Watchdog timer interrupt
     */
    (rOCMB_LFIR, bit(20)) ? self_th_1;

    /** OCMB_LFIR[21]
     *  internal temp sensor tripped a threshold
     */
    (rOCMB_LFIR, bit(21)) ? defaultMaskedError;

    /** OCMB_LFIR[22]
     *  GPBC_FATAL_ERROR
     */
    (rOCMB_LFIR, bit(22)) ? self_th_1;

    /** OCMB_LFIR[23]
     *  GPBC_NON_FATAL_ERROR
     */
    (rOCMB_LFIR, bit(23)) ? self_th_1;

    /** OCMB_LFIR[24]
     *  early power off warning
     */
    (rOCMB_LFIR, bit(24)) ? defaultMaskedError;

    /** OCMB_LFIR[25]
     *  TOP fatal interrupts
     */
    (rOCMB_LFIR, bit(25)) ? self_th_1;

    /** OCMB_LFIR[26]
     *  TOP non fatal interrupts
     */
    (rOCMB_LFIR, bit(26)) ? level2_M_self_L_th_1;

    /** OCMB_LFIR[27:34]
     *  Interrupt from OPSe to OCMB
     */
    (rOCMB_LFIR, bit(27|28|29|30|31|32|33|34)) ? defaultMaskedError;

    /** OCMB_LFIR[35]
     *  DDR thermal event
     */
    (rOCMB_LFIR, bit(35)) ? defaultMaskedError;

    /** OCMB_LFIR[36]
     *  DDR4 PHY fatal
     */
    (rOCMB_LFIR, bit(36)) ? self_th_1;

    /** OCMB_LFIR[37]
     *  DDR4 PHY non fatal
     */
    (rOCMB_LFIR, bit(37)) ? self_th_32perDay;

    /** OCMB_LFIR[38]
     *  DDR4 PHY interrupt
     */
    (rOCMB_LFIR, bit(38)) ? ddr4_phy_interrupt;

    /** OCMB_LFIR[39:46]
     *  foxhound fatal
     */
    (rOCMB_LFIR, bit(39|40|41|42|43|44|45|46)) ? foxhound_fatal;

    /** OCMB_LFIR[47:54]
     *  foxhound non fatal
     */
    (rOCMB_LFIR, bit(47|48|49|50|51|52|53|54)) ? defaultMaskedError;

    /** OCMB_LFIR[55:62]
     *  foxhound serdes interrupt
     */
    (rOCMB_LFIR, bit(55|56|57|58|59|60|61|62)) ? defaultMaskedError;

    /** OCMB_LFIR[63]
     *  GIF2PCB parity error on FSM or Registers
     */
    (rOCMB_LFIR, bit(63)) ? self_th_32perDay;

};

################################################################################
# Explorer chip MMIOFIR
################################################################################

rule rMMIOFIR
{
  UNIT_CS:
    MMIOFIR & ~MMIOFIR_MASK & ~MMIOFIR_ACT0 & ~MMIOFIR_ACT1;
  RECOVERABLE:
    MMIOFIR & ~MMIOFIR_MASK & ~MMIOFIR_ACT0 &  MMIOFIR_ACT1;
  HOST_ATTN:
    MMIOFIR & ~MMIOFIR_MASK &  MMIOFIR_ACT0 & ~MMIOFIR_ACT1;
};

group gMMIOFIR
    filter singlebit,
           cs_root_cause
{
    /** MMIOFIR[0]
     *  AFU desc unimp
     */
    (rMMIOFIR, bit(0)) ? defaultMaskedError;

    /** MMIOFIR[1]
     *  MMIO err
     */
    (rMMIOFIR, bit(1)) ? defaultMaskedError;

    /** MMIOFIR[2]
     *  SCOM err
     */
    (rMMIOFIR, bit(2)) ? self_th_32perDay;

    /** MMIOFIR[3]
     *  FSM perr
     */
    (rMMIOFIR, bit(3)) ? self_th_1;

    /** MMIOFIR[4]
     *  FIFO overflow
     */
    (rMMIOFIR, bit(4)) ? self_th_1;

    /** MMIOFIR[5]
     *  Ctl reg parity err
     */
    (rMMIOFIR, bit(5)) ? self_th_1;

    /** MMIOFIR[6]
     *  Info reg parity error
     */
    (rMMIOFIR, bit(6)) ? self_th_1;

    /** MMIOFIR[7]
     *  SNSC both starts err
     */
    (rMMIOFIR, bit(7)) ? defaultMaskedError;

    /** MMIOFIR[8]
     *  SNSC mult seq parity err
     */
    (rMMIOFIR, bit(8)) ? defaultMaskedError;

    /** MMIOFIR[9]
     *  SNSC FSM parity err
     */
    (rMMIOFIR, bit(9)) ? defaultMaskedError;

    /** MMIOFIR[10]
     *  SNSC reg parity err
     */
    (rMMIOFIR, bit(10)) ? defaultMaskedError;

    /** MMIOFIR[11]
     *  acTAG PASID cfg err
     */
    (rMMIOFIR, bit(11)) ? defaultMaskedError;

};

################################################################################
# Explorer chip SRQFIR
################################################################################

rule rSRQFIR
{
  UNIT_CS:
    SRQFIR & ~SRQFIR_MASK & ~SRQFIR_ACT0 & ~SRQFIR_ACT1;
  RECOVERABLE:
    SRQFIR & ~SRQFIR_MASK & ~SRQFIR_ACT0 &  SRQFIR_ACT1;
  HOST_ATTN:
    SRQFIR & ~SRQFIR_MASK &  SRQFIR_ACT0 & ~SRQFIR_ACT1;
};

group gSRQFIR
    filter singlebit,
           cs_root_cause(18)
{
    /** SRQFIR[0]
     *  SRQ recoverable error
     */
    (rSRQFIR, bit(0)) ? mem_port_th_1;

    /** SRQFIR[1]
     *  SRQ nonrecoverable error
     */
    (rSRQFIR, bit(1)) ? mem_port_th_1;

    /** SRQFIR[2]
     *  Refresh overrun
     */
    (rSRQFIR, bit(2)) ? mem_port_th_32perDay;

    /** SRQFIR[3]
     *  WAT error
     */
    (rSRQFIR, bit(3)) ? defaultMaskedError;

    /** SRQFIR[4]
     *  RCD parity error
     */
    (rSRQFIR, bit(4)) ? srq_rcd_parity_error;

    /** SRQFIR[5]
     *  MCB logic error
     */
    (rSRQFIR, bit(5)) ? mem_port_th_1;

    /** SRQFIR[6]
     *  Emergency throttle
     */
    (rSRQFIR, bit(6)) ? defaultMaskedError;

    /** SRQFIR[7]
     *  NCF MCB parity error
     */
    (rSRQFIR, bit(7)) ? mem_port_th_1;

    /** SRQFIR[8]
     *  DDR MBA event n
     */
    (rSRQFIR, bit(8)) ? defaultMaskedError;

    /** SRQFIR[9]
     *  WRQ RRQ hang err
     */
    (rSRQFIR, bit(9)) ? mem_port_th_1;

    /** SRQFIR[10]
     *  SM one hot error
     */
    (rSRQFIR, bit(10)) ? mem_port_th_1;

    /** SRQFIR[11]
     *  Reg parity error
     */
    (rSRQFIR, bit(11)) ? mem_port_th_1;

    /** SRQFIR[12]
     *  Cmd parity error
     */
    (rSRQFIR, bit(12)) ? mem_port_th_1;

    /** SRQFIR[13]
     *  Port fail
     */
    (rSRQFIR, bit(13)) ? mem_port_failure;

    /** SRQFIR[14]
     *  informational register parity error bit
     */
    (rSRQFIR, bit(14)) ? threshold_and_mask_mem_port;

    /** SRQFIR[15]
     *  Debug parity error
     */
    (rSRQFIR, bit(15)) ? threshold_and_mask_mem_port;

    /** SRQFIR[16]
     *  WDF unrecoverable mainline error
     */
    (rSRQFIR, bit(16)) ? mem_port_th_1;

    /** SRQFIR[17]
     *  WDF mmio error
     */
    (rSRQFIR, bit(17)) ? mem_port_th_1;

    /** SRQFIR[18]
     *  WDF array UE on mainline operations (SUE put in mem)
     */
    (rSRQFIR, bit(18)) ? mem_port_th_1_UERE;

    /** SRQFIR[19]
     *  WDF mainline dataflow error (SUE not reliably put in mem)
     */
    (rSRQFIR, bit(19)) ? mem_port_th_1;

    /** SRQFIR[20]
     *  WDF scom register parity err, affecting mainline config
     */
    (rSRQFIR, bit(20)) ? mem_port_th_1;

    /** SRQFIR[21]
     *  WDF scom register parity err, affecting scom ops only
     */
    (rSRQFIR, bit(21)) ? mem_port_th_1;

    /** SRQFIR[22]
     *  WDF SCOM fsm parity error
     */
    (rSRQFIR, bit(22)) ? mem_port_th_1;

    /** SRQFIR[23]
     *  WDF write buffer array CE
     */
    (rSRQFIR, bit(23)) ? mem_port_th_32perDay;

    /** SRQFIR[24]
     *  NCF UE
     */
    (rSRQFIR, bit(24)) ? mem_port_th_1;

    /** SRQFIR[25]
     *  TBD
     */
    (rSRQFIR, bit(25)) ? defaultMaskedError;

    /** SRQFIR[26]
     *  NCF logic error
     */
    (rSRQFIR, bit(26)) ? mem_port_th_1;

    /** SRQFIR[27]
     *  NCF parity error
     */
    (rSRQFIR, bit(27)) ? mem_port_th_1;

    /** SRQFIR[28]
     *  NCF correctable error
     */
    (rSRQFIR, bit(28)) ? mem_port_th_32perDay;

    /** SRQFIR[29]
     *  Internal scom error
     */
    (rSRQFIR, bit(29)) ? defaultMaskedError;

    /** SRQFIR[30]
     *  Internal scom error copy
     */
    (rSRQFIR, bit(30)) ? defaultMaskedError;

};

################################################################################
# Explorer chip MCBISTFIR
################################################################################

rule rMCBISTFIR
{
  UNIT_CS:
    MCBISTFIR & ~MCBISTFIR_MASK & ~MCBISTFIR_ACT0 & ~MCBISTFIR_ACT1;
  RECOVERABLE:
    MCBISTFIR & ~MCBISTFIR_MASK & ~MCBISTFIR_ACT0 &  MCBISTFIR_ACT1;
  HOST_ATTN:
    MCBISTFIR & ~MCBISTFIR_MASK &  MCBISTFIR_ACT0 & ~MCBISTFIR_ACT1;
};

group gMCBISTFIR
    filter singlebit,
           cs_root_cause
{
    /** MCBISTFIR[0]
     *  Invalid maint address
     */
    (rMCBISTFIR, bit(0)) ? defaultMaskedError;

    /** MCBISTFIR[1]
     *  Command address timeout
     */
    (rMCBISTFIR, bit(1)) ? self_th_1;

    /** MCBISTFIR[2]
     *  Internal FSM error
     */
    (rMCBISTFIR, bit(2)) ? self_th_1;

    /** MCBISTFIR[3]
     *  MCBIST broadcast out of sync
     */
    (rMCBISTFIR, bit(3)) ? self_th_1;

    /** MCBISTFIR[4]
     *  MCBIST data error
     */
    (rMCBISTFIR, bit(4)) ? defaultMaskedError;

    /** MCBISTFIR[5]
     *  Hard NCE ETE attn
     */
    (rMCBISTFIR, bit(5)) ? defaultMaskedError;

    /** MCBISTFIR[6]
     *  Soft NCE ETE attn
     */
    (rMCBISTFIR, bit(6)) ? defaultMaskedError;

    /** MCBISTFIR[7]
     *  Int NCE ETE attn
     */
    (rMCBISTFIR, bit(7)) ? defaultMaskedError;

    /** MCBISTFIR[8]
     *  RCE ETE attn
     */
    (rMCBISTFIR, bit(8)) ? defaultMaskedError;

    /** MCBISTFIR[9]
     *  ICE (IMPE) ETE attn
     */
    (rMCBISTFIR, bit(9)) ? defaultMaskedError;

    /** MCBISTFIR[10]
     *  MCBIST program complete
     */
    (rMCBISTFIR, bit(10)) ? mcbist_program_complete;

    /** MCBISTFIR[11]
     *  MCBIST CCS subtest done
     */
    (rMCBISTFIR, bit(11)) ? defaultMaskedError;

    /** MCBISTFIR[12]
     *  WAT debug bus attn
     */
    (rMCBISTFIR, bit(12)) ? defaultMaskedError;

    /** MCBISTFIR[13]
     *  SCOM recoverable register parity error
     */
    (rMCBISTFIR, bit(13)) ? self_th_1;

    /** MCBISTFIR[14]
     *  SCOM fatal reg parity error
     */
    (rMCBISTFIR, bit(14)) ? self_th_1;

    /** MCBISTFIR[15]
     *  SCOM WAT and debug reg parity error
     */
    (rMCBISTFIR, bit(15)) ? defaultMaskedError;

    /** MCBISTFIR[16]
     *  Reserved
     */
    (rMCBISTFIR, bit(16)) ? defaultMaskedError;

    /** MCBISTFIR[17]
     *  Reserved
     */
    (rMCBISTFIR, bit(17)) ? defaultMaskedError;

    /** MCBISTFIR[18]
     *  Internal SCOM error
     */
    (rMCBISTFIR, bit(18)) ? defaultMaskedError;

    /** MCBISTFIR[19]
     *  Internal SCOM error clone
     */
    (rMCBISTFIR, bit(19)) ? defaultMaskedError;

};

################################################################################
# Explorer chip RDFFIR
################################################################################

rule rRDFFIR
{
  UNIT_CS:
    RDFFIR & ~RDFFIR_MASK & ~RDFFIR_ACT0 & ~RDFFIR_ACT1;
  RECOVERABLE:
    RDFFIR & ~RDFFIR_MASK & ~RDFFIR_ACT0 &  RDFFIR_ACT1;
  HOST_ATTN:
    RDFFIR & ~RDFFIR_MASK &  RDFFIR_ACT0 & ~RDFFIR_ACT1;
};

group gRDFFIR
    filter singlebit,
           cs_root_cause(14,15,17,35,37)
{
    /** RDFFIR[0]
     *  Mainline read MPE on rank 0
     */
    (rRDFFIR, bit(0)) ? verify_chip_mark_0;

    /** RDFFIR[1]
     *  Mainline read MPE on rank 1
     */
    (rRDFFIR, bit(1)) ? verify_chip_mark_1;

    /** RDFFIR[2]
     *  Mainline read MPE on rank 2
     */
    (rRDFFIR, bit(2)) ? verify_chip_mark_2;

    /** RDFFIR[3]
     *  Mainline read MPE on rank 3
     */
    (rRDFFIR, bit(3)) ? verify_chip_mark_3;

    /** RDFFIR[4]
     *  Mainline read MPE on rank 4
     */
    (rRDFFIR, bit(4)) ? verify_chip_mark_4;

    /** RDFFIR[5]
     *  Mainline read MPE on rank 5
     */
    (rRDFFIR, bit(5)) ? verify_chip_mark_5;

    /** RDFFIR[6]
     *  Mainline read MPE on rank 6
     */
    (rRDFFIR, bit(6)) ? verify_chip_mark_6;

    /** RDFFIR[7]
     *  Mainline read MPE on rank 7
     */
    (rRDFFIR, bit(7)) ? verify_chip_mark_7;

    /** RDFFIR[8]
     *  Mainline read NCE
     */
    (rRDFFIR, bit(8)) ? mainline_nce_tce_handling;

    /** RDFFIR[9]
     *  Mainline read TCE
     */
    (rRDFFIR, bit(9)) ? mainline_nce_tce_handling;

    /** RDFFIR[10]
     *  Mainline read SCE
     */
    (rRDFFIR, bit(10)) ? defaultMaskedError;

    /** RDFFIR[11]
     *  Mainline read MCE
     */
    (rRDFFIR, bit(11)) ? defaultMaskedError;

    /** RDFFIR[12]
     *  Mainline read SUE
     */
    (rRDFFIR, bit(12)) ? defaultMaskedError;

    /** RDFFIR[13]
     *  Mainline read AUE
     */
    (rRDFFIR, bit(13)) ? mainline_aue_iaue_handling;

    /** RDFFIR[14]
     *  Mainline read UE
     */
    (rRDFFIR, bit(14)) ? mainline_ue_handling_UERE;

    /** RDFFIR[15]
     *  Mainline read RCD
     */
    (rRDFFIR, bit(15)) ? rdf_rcd_parity_error_UERE;

    /** RDFFIR[16]
     *  Mainline read IAUE
     */
    (rRDFFIR, bit(16)) ? mainline_aue_iaue_handling;

    /** RDFFIR[17]
     *  Mainline read IUE
     */
    (rRDFFIR, bit(17)) ? mainline_iue_handling;

    /** RDFFIR[18]
     *  Mainline read IRCD
     */
    (rRDFFIR, bit(18)) ? defaultMaskedError;

    /** RDFFIR[19]
     *  Mainline read IMPE
     */
    (rRDFFIR, bit(19)) ? memory_impe_handling;

    /** RDFFIR[20:27]
     *  Maintenance MPE
     */
    (rRDFFIR, bit(20|21|22|23|24|25|26|27)) ? defaultMaskedError;

    /** RDFFIR[28]
     *  Maintenance NCE
     */
    (rRDFFIR, bit(28)) ? defaultMaskedError;

    /** RDFFIR[29]
     *  Maintenance TCE
     */
    (rRDFFIR, bit(29)) ? defaultMaskedError;

    /** RDFFIR[30]
     *  Maintenance SCE
     */
    (rRDFFIR, bit(30)) ? defaultMaskedError;

    /** RDFFIR[31]
     *  Maintenance MCE
     */
    (rRDFFIR, bit(31)) ? defaultMaskedError;

    /** RDFFIR[32]
     *  Maintenance SUE
     */
    (rRDFFIR, bit(32)) ? defaultMaskedError;

    /** RDFFIR[33]
     *  Maintenance AUE
     */
    (rRDFFIR, bit(33)) ? maintenance_aue_handling;

    /** RDFFIR[34]
     *  Maintenance UE
     */
    (rRDFFIR, bit(34)) ? defaultMaskedError;

    /** RDFFIR[35]
     *  Maintenance RCD
     */
    (rRDFFIR, bit(35)) ? rdf_rcd_parity_error_UERE;

    /** RDFFIR[36]
     *  Maintenance IAUE
     */
    (rRDFFIR, bit(36)) ? maintenance_iaue_handling;

    /** RDFFIR[37]
     *  Maintenance IUE
     */
    (rRDFFIR, bit(37)) ? maintenance_iue_handling;

    /** RDFFIR[38]
     *  Maintenance  IRCD
     */
    (rRDFFIR, bit(38)) ? defaultMaskedError;

    /** RDFFIR[39]
     *  Maintenance IMPE
     */
    (rRDFFIR, bit(39)) ? memory_impe_handling;

    /** RDFFIR[40]
     *  RDDATA valid error
     */
    (rRDFFIR, bit(40)) ? mem_port_th_32perDay;

    /** RDFFIR[41]
     *  SCOM status register parity error
     */
    (rRDFFIR, bit(41)) ? threshold_and_mask_mem_port;

    /** RDFFIR[42]
     *  SCOM recoverable register parity error
     */
    (rRDFFIR, bit(42)) ? mem_port_th_1;

    /** RDFFIR[43]
     *  SCOM unrecoverable register parity error
     */
    (rRDFFIR, bit(43)) ? mem_port_th_1;

    /** RDFFIR[44]
     *  ECC corrector internal parity error
     */
    (rRDFFIR, bit(44)) ? mem_port_th_1;

    /** RDFFIR[45]
     *  Rd Buff ECC CHK Cor CE DW0 Detected
     */
    (rRDFFIR, bit(45)) ? mem_port_th_32perDay;

    /** RDFFIR[46]
     *  Rd Buff ECC CHK Cor CE DW1 Detected
     */
    (rRDFFIR, bit(46)) ? mem_port_th_32perDay;

    /** RDFFIR[47]
     *  Rd Buff ECC CHK Cor UE DW0 Detected
     */
    (rRDFFIR, bit(47)) ? mem_port_th_1;

    /** RDFFIR[48]
     *  Rd Buff ECC CHK Cor UE DW1 Detected
     */
    (rRDFFIR, bit(48)) ? mem_port_th_1;

    /** RDFFIR[49:59]
     *  Reserved
     */
    (rRDFFIR, bit(49|50|51|52|53|54|55|56|57|58|59)) ? defaultMaskedError;

    /** RDFFIR[60]
     *  SCOM register parity error for debug/wat control
     */
    (rRDFFIR, bit(60)) ? defaultMaskedError;

    /** RDFFIR[61]
     *  Reserved
     */
    (rRDFFIR, bit(61)) ? defaultMaskedError;

    /** RDFFIR[62]
     *  Internal SCOM error
     */
    (rRDFFIR, bit(62)) ? defaultMaskedError;

    /** RDFFIR[63]
     *  Internal SCOM error copy
     */
    (rRDFFIR, bit(63)) ? defaultMaskedError;

};

################################################################################
# Explorer chip TLXFIR
################################################################################

rule rTLXFIR
{
  UNIT_CS:
    TLXFIR & ~TLXFIR_MASK & ~TLXFIR_ACT0 & ~TLXFIR_ACT1;
  RECOVERABLE:
    TLXFIR & ~TLXFIR_MASK & ~TLXFIR_ACT0 &  TLXFIR_ACT1;
  HOST_ATTN:
    TLXFIR & ~TLXFIR_MASK &  TLXFIR_ACT0 & ~TLXFIR_ACT1;
};

group gTLXFIR
    filter singlebit,
           cs_root_cause
{
    /** TLXFIR[0]
     *  Info reg parity error
     */
    (rTLXFIR, bit(0)) ? threshold_and_mask_self;

    /** TLXFIR[1]
     *  Ctrl reg parity error
     */
    (rTLXFIR, bit(1)) ? self_th_1;

    /** TLXFIR[2]
     *  TLX VC0 return credit counter overflow
     */
    (rTLXFIR, bit(2)) ? omi_bus_th_1;

    /** TLXFIR[3]
     *  TLX VC1 return credit counter overflow
     */
    (rTLXFIR, bit(3)) ? omi_bus_th_1;

    /** TLXFIR[4]
     *  TLX dcp0 return credit counter overflow
     */
    (rTLXFIR, bit(4)) ? omi_bus_th_1;

    /** TLXFIR[5]
     *  TLX dcp1 return credit counter overflow
     */
    (rTLXFIR, bit(5)) ? omi_bus_th_1;

    /** TLXFIR[6]
     *  TLX credit management block error
     */
    (rTLXFIR, bit(6)) ? self_th_1;

    /** TLXFIR[7]
     *  TLX credit management block parity error
     */
    (rTLXFIR, bit(7)) ? self_th_1;

    /** TLXFIR[8]
     *  TLXT fatal parity error
     */
    (rTLXFIR, bit(8)) ? self_th_1;

    /** TLXFIR[9]
     *  TLXT recoverable error
     */
    (rTLXFIR, bit(9)) ? analyzeTLXERR1;

    /** TLXFIR[10]
     *  TLXT configuration error
     */
    (rTLXFIR, bit(10)) ? level2_M_self_L_th_1;

    /** TLXFIR[11]
     *  TLXT informational parity error
     */
    (rTLXFIR, bit(11)) ? self_th_1;

    /** TLXFIR[12]
     *  TLXT hard error
     */
    (rTLXFIR, bit(12)) ? self_th_1;

    /** TLXFIR[13:15]
     *  Reserved
     */
    (rTLXFIR, bit(13|14|15)) ? defaultMaskedError;

    /** TLXFIR[16]
     *  Corrupted pad mem pattern
     */
    (rTLXFIR, bit(16)) ? defaultMaskedError;

    /** TLXFIR[17]
     *  Downstream OC parity error
     */
    (rTLXFIR, bit(17)) ? defaultMaskedError;

    /** TLXFIR[18]
     *  OC malformed
     */
    (rTLXFIR, bit(18)) ? omi_bus_th_1;

    /** TLXFIR[19]
     *  OC protocol error
     */
    (rTLXFIR, bit(19)) ? omi_th_1;

    /** TLXFIR[20]
     *  Address translate error
     */
    (rTLXFIR, bit(20)) ? self_th_1;

    /** TLXFIR[21]
     *  Metadata unc or data parity error
     */
    (rTLXFIR, bit(21)) ? self_th_1;

    /** TLXFIR[22]
     *  OC unsupported group 2
     */
    (rTLXFIR, bit(22)) ? omi_bus_th_1;

    /** TLXFIR[23]
     *  OC unsupported group 1
     */
    (rTLXFIR, bit(23)) ? omi_bus_th_1;

    /** TLXFIR[24]
     *  Bit flip control error
     */
    (rTLXFIR, bit(24)) ? self_th_1;

    /** TLXFIR[25]
     *  Control HW error
     */
    (rTLXFIR, bit(25)) ? self_th_1;

    /** TLXFIR[26]
     *  ECC corrected and others
     */
    (rTLXFIR, bit(26)) ? self_th_32perDay;

    /** TLXFIR[27]
     *  Trace stop
     */
    (rTLXFIR, bit(27)) ? defaultMaskedError;

    /** TLXFIR[28]
     *  Internal SCOM error
     */
    (rTLXFIR, bit(28)) ? defaultMaskedError;

    /** TLXFIR[29]
     *  Internal SCOM error clone
     */
    (rTLXFIR, bit(29)) ? defaultMaskedError;

};

rule rTLX_ERR1_REPORT
{
  RECOVERABLE:
    TLX_ERR1_REPORT & ~TLX_ERR1_REPORT_MASK;
};

group gTLX_ERR1_REPORT
    filter singlebit,
           cs_root_cause
{
    /** TLX_ERR1_REPORT[37]
     *  TLXT FIFO CE
     */
    (rTLXFIR, bit(37)) ? self_th_32perDay;

    /** TLX_ERR1_REPORT[39]
     *  Unexpected Interrupt Response
     */
    (rTLXFIR, bit(39)) ? parent_proc_th_32perDay;

    /** TLX_ERR1_REPORT[40]
     *  BDI Poisoned
     */
    (rTLXFIR, bit(40)) ? self_th_1;

    /** TLX_ERR1_REPORT[41]
     *  TLXT Metadata UE
     */
    (rTLXFIR, bit(41)) ? self_th_1;
};

################################################################################
# Explorer chip OMIDLFIR
################################################################################

rule rOMIDLFIR
{
  UNIT_CS:
    OMIDLFIR & ~OMIDLFIR_MASK & ~OMIDLFIR_ACT0 & ~OMIDLFIR_ACT1;
  RECOVERABLE:
    OMIDLFIR & ~OMIDLFIR_MASK & ~OMIDLFIR_ACT0 &  OMIDLFIR_ACT1;
  HOST_ATTN:
    OMIDLFIR & ~OMIDLFIR_MASK &  OMIDLFIR_ACT0 & ~OMIDLFIR_ACT1;
};

group gOMIDLFIR
    filter singlebit,
           cs_root_cause
{
    /** OMIDLFIR[0]
     *  OMI-DL0 fatal error
     */
    (rOMIDLFIR, bit(0)) ? dl_fatal_error;

    /** OMIDLFIR[1]
     *  OMI-DL0 UE on data flit
     */
    (rOMIDLFIR, bit(1)) ? self_th_1;

    /** OMIDLFIR[2]
     *  OMI-DL0 CE on TL flit
     */
    (rOMIDLFIR, bit(2)) ? self_th_32perDay;

    /** OMIDLFIR[3]
     *  OMI-DL0 detected a CRC error
     */
    (rOMIDLFIR, bit(3)) ? defaultMaskedError;

    /** OMIDLFIR[4]
     *  OMI-DL0 received a nack
     */
    (rOMIDLFIR, bit(4)) ? defaultMaskedError;

    /** OMIDLFIR[5]
     *  OMI-DL0 running in degraded mode
     */
    (rOMIDLFIR, bit(5)) ? omi_bus_th_1;

    /** OMIDLFIR[6]
     *  OMI-DL0 parity error detection on a lane
     */
    (rOMIDLFIR, bit(6)) ? defaultMaskedError;

    /** OMIDLFIR[7]
     *  OMI-DL0 retrained due to no forward progress
     */
    (rOMIDLFIR, bit(7)) ? omi_bus_th_32perDay;

    /** OMIDLFIR[8]
     *  OMI-DL0 remote side initiated a retrain
     */
    (rOMIDLFIR, bit(8)) ? defaultMaskedError;

    /** OMIDLFIR[9]
     *  OMI-DL0 retrain due to internal error or software initiated
     */
    (rOMIDLFIR, bit(9)) ? omi_bus_th_32perDay;

    /** OMIDLFIR[10]
     *  OMI-DL0 threshold reached
     */
    (rOMIDLFIR, bit(10)) ? omi_bus_th_32perDay;

    /** OMIDLFIR[11]
     *  OMI-DL0 trained
     */
    (rOMIDLFIR, bit(11)) ? defaultMaskedError;

    /** OMIDLFIR[12]
     *  OMI-DL0 endpoint error bit 0
     */
    (rOMIDLFIR, bit(12)) ? defaultMaskedError;

    /** OMIDLFIR[13]
     *  OMI-DL0 endpoint error bit 1
     */
    (rOMIDLFIR, bit(13)) ? defaultMaskedError;

    /** OMIDLFIR[14]
     *  OMI-DL0 endpoint error bit 2
     */
    (rOMIDLFIR, bit(14)) ? defaultMaskedError;

    /** OMIDLFIR[15]
     *  OMI-DL0 endpoint error bit 3
     */
    (rOMIDLFIR, bit(15)) ? defaultMaskedError;

    /** OMIDLFIR[16]
     *  OMI-DL0 endpoint error bit 4
     */
    (rOMIDLFIR, bit(16)) ? defaultMaskedError;

    /** OMIDLFIR[17]
     *  OMI-DL0 endpoint error bit 5
     */
    (rOMIDLFIR, bit(17)) ? defaultMaskedError;

    /** OMIDLFIR[18]
     *  OMI-DL0 endpoint error bit 6
     */
    (rOMIDLFIR, bit(18)) ? defaultMaskedError;

    /** OMIDLFIR[19]
     *  OMI-DL0 endpoint error bit 7
     */
    (rOMIDLFIR, bit(19)) ? defaultMaskedError;

    /** OMIDLFIR[20:39]
     *  OMI-DL1 reserved
     */
    (rOMIDLFIR, bit(20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39)) ? defaultMaskedError;

    /** OMIDLFIR[40:59]
     *  OMI-DL2 reserved
     */
    (rOMIDLFIR, bit(40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59)) ? defaultMaskedError;

    /** OMIDLFIR[60]
     *  Performance monitor wrapped
     */
    (rOMIDLFIR, bit(60)) ? defaultMaskedError;

    /** OMIDLFIR[61]
     *  reserved
     */
    (rOMIDLFIR, bit(61)) ? defaultMaskedError;

    /** OMIDLFIR[62]
     *  LFIR internal parity error
     */
    (rOMIDLFIR, bit(62)) ? defaultMaskedError;

    /** OMIDLFIR[63]
     *  SCOM Satellite Error
     */
    (rOMIDLFIR, bit(63)) ? defaultMaskedError;

};

 ##############################################################################
 #                                                                            #
 #    #                                  ###                                  #
 #   # #    ##  ##### ###  ###  #   #   #   # #     #    ###   ###  ###  ###  #
 #  #   #  #  #   #    #  #   # ##  #   #     #    # #  #     #     #   #     #
 # ####### #      #    #  #   # # # #   #     #   #####  ###   ###  ##   ###  #
 # #     # #  #   #    #  #   # #  ##   #   # #   #   #     #     # #       # #
 # #     #  ##    #   ###  ###  #   #    ###  ### #   #  ###   ###  ###  ###  #
 #                                                                            #
 ##############################################################################

# Include the actions defined for this target
.include "explorer_ocmb_actions.rule";

OpenPOWER on IntegriCloud