summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/pegasus/Mcs.rule
blob: a831d2bc584396382e90e276e596791380f57277 (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
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/usr/diag/prdf/common/plat/pegasus/Mcs.rule $
#
# IBM CONFIDENTIAL
#
# COPYRIGHT International Business Machines Corp. 2012,2014
#
# p1
#
# Object Code Only (OCO) source materials
# Licensed Internal Code Source Materials
# IBM HostBoot Licensed Internal Code
#
# The source code for this program is not published or otherwise
# divested of its trade secrets, irrespective of what has been
# deposited with the U.S. Copyright Office.
#
# Origin: 30
#
# IBM_PROLOG_END_TAG

################################################################################
#
# Scope:
#   Registers and actions for the following chiplets:
#       Note that only addresses for MC0/MCS0 will be used.
#
# Chiplet  Register Addresses       Description
# =======  =======================  ============================================
#   MCS    0x02011800 - 0x0201187F  MC0/MCS0
#   MCS    0x02011880 - 0x020118FF  MC0/MCS1
#   MCS    0x02011900 - 0x0201197F  MC1/MCS0
#   MCS    0x02011980 - 0x020119FF  MC1/MCS1
#   MCS    0x02011A00 - 0x02011A3E  DMI0 - DMI3
#   MCS    0x02011C00 - 0x02011C7F  MC2/MCS0
#   MCS    0x02011C80 - 0x02011CFF  MC2/MCS1
#   MCS    0x02011D00 - 0x02011D7F  MC3/MCS0
#   MCS    0x02011D80 - 0x02011DFF  MC3/MCS1
#   MCS    0x02011E00 - 0x02011E3E  DMI4 - DMI7
#
################################################################################

chip Mcs
{
    name        "Power8 MCS Chiplet";
    targettype  TYPE_MCS;
    sigoff      0x8000;
    dump        DUMP_CONTENT_HW;
    scomlen     64;

.include "prdfP8McsExtraSig.H";

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

    ############################################################################
    # PB Chiplet MCIFIR
    ############################################################################

    register MCIFIR
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRQ";
        scomaddr    0x02011840;
        reset       (&, 0x02011841);
        mask        (|, 0x02011845);
        capture     group default;
        capture     group FirRegs;
    };

    register MCIFIR_AND
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRQ AND";
        scomaddr    0x02011841;
        capture     group never;
        access      write_only;
    };

    register MCIFIR_MASK
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRMASK";
        scomaddr    0x02011843;
        capture     group default;
        capture     group FirRegs;
    };

    register MCIFIR_ACT0
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRACT0";
        scomaddr    0x02011846;
        capture     type secondary;
        capture     group default;
        capture     group FirRegs;
        capture     req nonzero("MCIFIR");
    };

    register MCIFIR_ACT1
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRACT1";
        scomaddr    0x02011847;
        capture     type secondary;
        capture     group default;
        capture     group FirRegs;
        capture     req nonzero("MCIFIR");
    };

    register MCIFIR_WOF
    {
        name        "MC0.MCS0.RIGHT.MCI.SCOMFIR.MCIFIRWOF";
        scomaddr    0x02011848;
        capture     type secondary;
        capture     group default;
        capture     group FirRegs;
        capture     req nonzero("MCIFIR");
    };

    ############################################################################
    # Error Report Registers
    ############################################################################

    register MCERPT0
    {
        name        "MC0.MCS0.LEFT.LEFT.MCERPT0";
        scomaddr    0x0201181E;
        capture     group default;
        capture     group CerrRegs;
    };

    register MCIERPT0
    {
        name        "MC0.MCS0.RIGHT.MCI.MCIERPT0";
        scomaddr    0x0201184E;
        capture     group default;
        capture     group CerrRegs;
    };

    ############################################################################
    # Primary Memory Configuration Register
    ############################################################################

    register MCFGP
    {
        name        "MC0.MCS0.LEFT.LEFT.MCFGPQ";
        scomaddr    0x02011800;
        capture     group never;
    };

};

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

################################################################################
# PB Chiplet MCIFIR
# Reviewed p8dd1_mss_FFDC_72.xls on 01/16/14
################################################################################

rule MciFir
{
    CHECK_STOP:  MCIFIR & ~MCIFIR_MASK & ~MCIFIR_ACT0 & ~MCIFIR_ACT1;
    RECOVERABLE: MCIFIR & ~MCIFIR_MASK & ~MCIFIR_ACT0 &  MCIFIR_ACT1;
    SPECIAL:     MCIFIR & ~MCIFIR_MASK &  MCIFIR_ACT0 & ~MCIFIR_ACT1;

    # All of the Centaur CS (channel fail) bits set as recoverable.
    UNIT_CS:     MCIFIR & ~MCIFIR_MASK & ~MCIFIR_ACT0 &  MCIFIR_ACT1;
};

group gMciFir attntype CHECK_STOP, RECOVERABLE, SPECIAL, UNIT_CS
      filter priority( 0, 1, 6, 8, 9, 12, 22, 23, 40 ) # Centaur CS FIR bits
{
    /** MCIFIR[0]
     *  MCIFIRQ_REPLAY_TIMEOUT
     */
    (MciFir, bit(0)) ?  clearSecMbsBitsCalloutDmiBusTh1;

    /** MCIFIR[1]
     *  MCIFIRQ_CHANNEL_FAIL
     */
    (MciFir, bit(1)) ? defaultMaskedError;

    /** MCIFIR[2]
     *  MCIFIRQ_CRC_ERROR
     */
    (MciFir, bit(2)) ? defaultMaskedError;

    /** MCIFIR[3]
     *  MCIFIRQ_FRAME_NOACK
     */
    (MciFir, bit(3)) ? defaultMaskedError;

    /** MCIFIR[4]
     *  MCIFIRQ_SEQID_OUT_OF_ORDER
     */
    (MciFir, bit(4)) ? calloutDmiBusAndLvl2Th1;

    /** MCIFIR[5]
     *  MCIFIRQ_REPLAY_BUFFER_ECC_CE
     */
    (MciFir, bit(5)) ? SelfHighThr5PerHour;

    /** MCIFIR[6]
     *  MCIFIRQ_REPLAY_BUFFER_ECC_UE
     */
    (MciFir, bit(6)) ? SelfHighThr1;

    /** MCIFIR[7]
     *  MCIFIRQ_MCI_CHINIT_STATE_MACHINE_TIMEOUT
     */
    (MciFir, bit(7)) ? defaultMaskedError;

    /** MCIFIR[8]
     *  MCIFIRQ_MCI_INTERNAL_CONTROL_PARITY_ERROR
     */
    (MciFir, bit(8)) ? SelfHighThr1;

    /** MCIFIR[9]
     *  MCIFIRQ_MCI_DATA_FLOW_PARITY_ERROR
     */
    (MciFir, bit(9)) ? SelfHighThr1;

    /** MCIFIR[10]
     *  MCIFIRQ_CRC_PERFORMANCE_DEGRADATION
     */
    (MciFir, bit(10)) ? analyzeSpareBitAndThr;

    /** MCIFIR[11]
     *  MCIFIRQ_CHANNEL_INTERLOCK_FAIL
     */
    (MciFir, bit(11)) ? defaultMaskedError;

    /** MCIFIR[12]
     *  MCIFIRQ_CENTAUR_CHECKSTOP
     */
    # NOTE: This bit will be set to host_attn and only monitored by HostATTN
    #       during Hostboot.
    (MciFir, bit(12)) ? defaultMaskedError;

    /** MCIFIR[13]
     *  MCIFIRQ_CENTAUR_TRACESTOP
     */
    (MciFir, bit(13)) ? defaultMaskedError;

    /** MCIFIR[14]
     *  MCIFIRQ_FPGA_INTERRUPT
     */
    (MciFir, bit(14)) ? defaultMaskedError;

    /** MCIFIR[15]
     *  MCIFIRQ_CENTAUR_RECOVERABLE_ERROR
     */
    # NOTE: This bit will be set to host_attn and only monitored by HostATTN
    #       during Hostboot.
    (MciFir, bit(15)) ? defaultMaskedError;

    /** MCIFIR[16]
     *  MCIFIRQ_CENTAUR_SPECIAL_ATTENTION
     */
    # NOTE: This bit will be set to host_attn and only monitored by HostATTN
    #       during Hostboot.
    (MciFir, bit(16)) ? defaultMaskedError;

    /** MCIFIR[17]
     *  MCIFIRQ_CENTAUR_MAINTENANCE_COMPLETE
     */
    # NOTE: This bit will be set to host_attn and only monitored by HostATTN
    #       during Hostboot.
    (MciFir, bit(17)) ? defaultMaskedError;

    /** MCIFIR[18]
     *  MCIFIRQ_CENTAUR_INBAND_PIB_ERROR
     */
    (MciFir, bit(18)) ? defaultMaskedError;

    /** MCIFIR[19]
     *  FRTL Conter Overflow
     */
    (MciFir, bit(19)) ? defaultMaskedError;

    /** MCIFIR[20]
     *  SCOM Register parity Error
     */
    (MciFir, bit(20)) ? SelfHighThr1;

    /** MCIFIR[21]
     *  MCIFIRQ_MULTIPLE_REPLAY
     */
    (MciFir, bit(21)) ? defaultMaskedError;

    /** MCIFIR[22]
     *  MCIFIRQ_MCICFG_PARITY_SCOM_ERROR
     */
    (MciFir, bit(22)) ? SelfMedThr1;

    /** MCIFIR[23]
     *  MCIFIRQ_REPLAY_BUFFER_OVERRUN
     */
    (MciFir, bit(23)) ? calloutDmiBusTh1;

    /** MCIFIR[24]
     *  MCIFIRQ_MCS_RECOVERABLE_ERROR
     */
    (MciFir, bit(24)) ? SelfHighThr1;

    /** MCIFIR[25]
     *  MCIFIRQ_MCS_INTERNAL_NONRECOVERABLE_ERROR
     */
    (MciFir, bit(25)) ? SelfHighThr1;

    /** MCIFIR[26]
     *  MCIFIRQ_POWERBUS_PROTOCOL_ERROR
     */
    (MciFir, bit(26)) ? callout2ndLvlDumpSwNoGard;

    /** MCIFIR[27]
     *  MCIFIRQ_MCS_COMMAND_LIST_TIMEOUT_DUE_TO_POWERBUS
     */
    (MciFir, bit(27)) ? callout2ndLvlMedThr1NoGard;

    /** MCIFIR[28]
     *  MCIFIRQ_MULTIPLE_RCMD_OR_CRESP_ACTIVE
     */
    (MciFir, bit(28)) ? SelfLowLevel2MedThr1;

    /** MCIFIR[29]
     *  MCIFIRQ_INBAND_BAR_HIT_WITH_INCORRECT_TTYPE
     */
    (MciFir, bit(29)) ? SelfLowLevel2MedThr1;

    /** MCIFIR[30]
     *  MCIFIRQ_MULTIPLE_BAR_HIT
     */
    (MciFir, bit(30)) ? SelfLowLevel2MedThr1;

    /** MCIFIR[31]
     *  MCIFIRQ_CHANNEL_FAIL_SIGNAL_ACTIVE
     */
    # NOTE: PRD checks this bit anytime it is called to analyze the MCS. It is
    #       intended to indicate that another bit in this FIR signaled a channel
    #       failure/checkstop. It should always be masked.
    (MciFir, bit(31)) ? defaultMaskedError;

    /** MCIFIR[32]
     *  MCIFIRQ_MIRROR_ACTION_OCCURRED
     */
    (MciFir, bit(32)) ? defaultMaskedError;

    /** MCIFIR[33]
     *  MCIFIRQ_NONFOREIGN_ACCESS_TO_FOREIGN_BAR
     */
    (MciFir, bit(33)) ? callout2ndLvlDumpSwNoGard;

    /** MCIFIR[34]
     *  MCIFIRQ_CENTAUR_SYNC_COMMAND_DETECTED
     */
    (MciFir, bit(34)) ? defaultMaskedError;

    /** MCIFIR[35]
     *  MCIFIRQ_POWERBUS_WRITE_DATA_BUFFER_CE
     */
    (MciFir, bit(35)) ? calloutProcHighThr5PerHr;

    /** MCIFIR[36]
     *  MCIFIRQ_POWERBUS_WRITE_DATA_BUFFER_UE
     */
    (MciFir, bit(36)) ? calloutParentProcHighThr1;

    /** MCIFIR[37]
     *  MCIFIRQ_POWERBUS_WRITE_DATA_BUFFER_SUE
     */
    (MciFir, bit(37)) ? defaultMaskedError;

    /** MCIFIR[38]
     *  MCIFIRQ_HA_ILLEGAL_CONSUMER_ACCESS_ERROR
     */
    (MciFir, bit(38)) ? callout2ndLvlDumpSwNoGard;

    /** MCIFIR[39]
     *  MCIFIRQ_HA_ILLEGAL_PRODUCER_ACCESS_ERROR
     */
    (MciFir, bit(39)) ? callout2ndLvlDumpSwNoGard;

    /** MCIFIR[40]
     *  CHANNEL TIMEOUT ERROR
     */
    (MciFir, bit(40)) ? calloutDmiBusTh1;

    /** MCIFIR[41]
     *  CENTAUR FAULT LINE
     */
    (MciFir, bit(41)) ? defaultMaskedError;

    /** MCIFIR[42]
     *  MCS WAT
     */
    (MciFir, bit(42)) ? defaultMaskedError;

    /** MCIFIR[43]
     *  INVALID ADDRESS
     */
    (MciFir, bit(43)) ? defaultMaskedError;

    /** MCIFIR[44]
     *  MCIFIRQ_COMMAND_AND_LIST_TIMEOUT
     */
    (MciFir, bit(44)) ? defaultMaskedError;

    /** MCIFIR[45]
     *  MCIFIRQ_MPIPL_OR_FLR_WRITE_SUE
     */
    (MciFir, bit(45)) ? defaultMaskedError;

    /** MCIFIR[46]
     *  MCIFIRQ_INVALID_CENTAUR_BYPASS
     */
    (MciFir, bit(46)) ? calloutDmiBusSelfLowConnMed;

    /** MCIFIR[47]
     *  MCS WRITE DATAFLOW SUE
     */
    (MciFir, bit(47)) ? defaultMaskedError;

    /** MCIFIR[48]
     *  MCIFIRQ_BAD_MDI0_UPDATE
     */
    (MciFir, bit(48)) ? mcifirBit48;

    /** MCIFIR[49]
     *  MCIFIRQ_INCONSISTENT_SF_STAT
     */
    (MciFir, bit(49)) ? mcifirBit49;

    /** MCIFIR[50:51]
     *  RESERVED
     */
    (MciFir, bit(50|51)) ? defaultMaskedError;

    /** MCIFIR[52]
     *  MCIFIRQ_INTERNAL_SCOM_ERROR
     */
    (MciFir, bit(52)) ? defaultMaskedError;

    /** MCIFIR[53]
     *  MCIFIRQ_INTERNAL_SCOM_ERROR_CLONE
     */
    (MciFir, bit(53)) ? defaultMaskedError;

    /** MCIFIR[54:63]
     *  RESERVED
     */
    (MciFir, bit( 54|55|56|57|58|59|
                  60|61|62|63 )) ? defaultMaskedError;

};

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

# Include the common action set.
.include "CommonActions.rule"

actionclass calloutProcHighThr5PerHr
{
    callout(connected(TYPE_PROC),MRU_HIGH);
    threshold5phour;
};

/** Callout the connected Centaur, threshold 1 */
actionclass calloutConnCenTh1
{
    callout(connected(TYPE_MEMBUF), MRU_MED);
    threshold1;
};

/** Callout the DMI bus (MEDA) */
actionclass calloutDmiBus
{
    calloutSelfMedA;
    callout(connected(TYPE_MEMBUF), MRU_MEDA);
    calloutDmiBusSymFru;
};

/** Clear MBS SecondaryBits and calloutDmiBusTh1 */
actionclass clearSecMbsBitsCalloutDmiBusTh1
{
    funccall("ClearMbsSecondaryBits");
    calloutDmiBusTh1;
};

/** Callout the DMI bus (MEDA), threshold 1*/
actionclass calloutDmiBusTh1
{
    calloutDmiBus;
    threshold1;
};

/** Callout the DMI bus (MEDA) and 2nd Level Support (LOW), threshold 1 */
actionclass calloutDmiBusAndLvl2Th1
{
   calloutDmiBusTh1;
   callout2ndLvlLow;
};

actionclass CalloutDmiBusAndThr2pd
{
    calloutDmiBus;
    threshold2pday;
};

/** If there is a lane repair attention, do nothing. Otherwise, callout DMI bus
    with threshold of 2/day. */
actionclass analyzeSpareBitAndThr
{
    try( funccall("checkSpareBit"), CalloutDmiBusAndThr2pd );
};

/** The plugin checks if the Proc is either Murano DD2 or Venice DD1.
    If neither, then callout thresholdAndMask_self and change signature to
    DD1: MCIFIRQ_INTERNAL_SCOM_ERROR. */
actionclass mcifirBit48
{
    threshold32pday;
    try( funccall("dd1mcifirBit48"), calloutDmiBusSelfLowConnMed );
};

/** The plugin checks if the Proc is either Murano DD2 or Venice DD1.
    If neither, then callout thresholdAndMask_self and change signature to
    DD1: MCIFIRQ_INTERNAL_SCOM_ERROR_CLONE. */
actionclass mcifirBit49
{
    threshold32pday;
    try( funccall("dd1mcifirBit49"), calloutDmiBusSelfLowConnMed );
};

/** Callout MCS Low and Centaur High */
actionclass calloutDmiBusSelfLowConnMed
{
    calloutSelfLow;
    callout(connected(TYPE_MEMBUF), MRU_MED);
    calloutDmiBusSymFru;
    threshold1;
};
OpenPOWER on IntegriCloud