summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/explorer/explorer_ocmb_actions.rule
blob: d5b6e3fad74df2a2fa760c529f2b6ca7c9ef82f9 (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
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/usr/diag/prdf/common/plat/explorer/explorer_ocmb_actions.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

################################################################################
#                                Thresholds                                    #
################################################################################

# Threshold syntax:
#   threshold( field(<timebase>) [, mfg(<timebase>)|mfg_file(<mfg_theshold>)] );
#
# Timebase syntax:
#   <threshold_count> [/ [timbase_count] <sec|min|hour|day>]
#
# Note that <mfg_theshold> can be found in prdfMfgThresholds.lst
#
# Examples:
#   threshold( field( 1        ) );
#   threshold( field(32 /   day) );
#   threshold( field( 5 / 2 min) );
#   threshold( field(32 / 1 day), mfg(2 / hour) );
#   threshold( field( 2 /   min), mfg(1       ) );
#   threshold( field(32 /   day), mfg_file(P8CHIP_OFFNODE_BUS_CES) );

/** Threshold of 1 */
actionclass threshold1
{
    threshold( field(1) );
};

/** Threshold of 32 per day */
actionclass threshold32pday
{
    threshold( field(32 / day) );
};

/** Threshold of 5 per day */
actionclass threshold5pday
{
    threshold( field(5 / day) );
};

################################################################################
#                               Special Flags                                  #
################################################################################

/** SUE source */
actionclass SueSource { flag(UERE); };

/** SUE originated from somewhere else */
actionclass SueSeen { flag(SUE); };

################################################################################
#                               Simple Callouts                                #
################################################################################

# Callout self
actionclass calloutSelfHigh { callout(MRU_HIGH); };
actionclass calloutSelfMed  { callout(MRU_MED);  };
actionclass calloutSelfMedA { callout(MRU_MEDA); };
actionclass calloutSelfLow  { callout(MRU_LOW);  };

# 2nd Level Support
actionclass callout2ndLvlMed
{ callout(procedure(LEVEL2_SUPPORT), MRU_MED); };

/** Callout self with  low priority but don't gard it */
actionclass calloutSelfLowNoGard
{ callout(MRU_LOW, NO_GARD); };

actionclass level2_M_self_L
{
    callout2ndLvlMed;
    calloutSelfLow;
};

actionclass omi
{
    callout(connected(TYPE_OMI), MRU_MED);
};

actionclass omi_bus
{
    calloutSelfMedA;
    callout(connected(TYPE_OMI), MRU_MEDA);
    funccall("calloutBusInterfacePlugin");
};

actionclass mem_port
{
    callout(connected(TYPE_MEM_PORT,0), MRU_MED);
};

actionclass mem_port_L
{
    callout(connected(TYPE_MEM_PORT,0), MRU_LOW);
};

actionclass all_dimm_H
{
    funccall("CalloutAttachedDimmsHigh");
};

actionclass all_dimm_H_memport_L
{
    all_dimm_H;
    mem_port_L;
};

actionclass parent_proc
{
    callout(connected(TYPE_PROC), MRU_MED);
};

################################################################################
#                           Callouts with thresholds                           #
################################################################################

actionclass self_th_1
{
    calloutSelfMed;
    threshold1;
};

actionclass self_th_32perDay
{
    calloutSelfMed;
    threshold32pday;
};

actionclass parent_proc_th_32perDay
{
    parent_proc;
    threshold32pday;
};

actionclass level2_th_1
{
    callout2ndLvlMed;
    threshold1;
};

actionclass level2_th_32perDay
{
    callout2ndLvlMed;
    threshold32pday;
};

actionclass level2_M_self_L_th_1
{
    level2_M_self_L;
    threshold1;
};

actionclass omi_th_1
{
    omi;
    threshold1;
};

actionclass omi_bus_th_1
{
    omi_bus;
    threshold1;
};

actionclass omi_bus_th_32perDay
{
    omi_bus;
    threshold32pday;
};

actionclass mem_port_th_1
{
    mem_port;
    threshold1;
};

actionclass mem_port_th_32perDay
{
    mem_port;
    threshold32pday;
};

################################################################################
#                                   Special                                    #
################################################################################

/**
 * Threshold 32/day (field) and 1 (mnfg). Do not predictively callout on
 * threshold in the field, instead just mask.
 */
actionclass threshold_and_mask
{
    threshold32pday;
    funccall("ClearServiceCallFlag");
};

actionclass threshold_and_mask_self   { calloutSelfMed;   threshold_and_mask; };

actionclass threshold_and_mask_level2
{
    level2_th_32perDay;
    threshold_and_mask;
};

actionclass threshold_and_mask_mem_port
{
    mem_port_th_32perDay;
    threshold_and_mask;
};

################################################################################
#                           Callouts with flags                                #
################################################################################

actionclass self_th_1_UERE     { self_th_1;     SueSource; };
actionclass level2_th_1_UERE   { level2_th_1;   SueSource; };
actionclass mem_port_th_1_UERE { mem_port_th_1; SueSource; };

################################################################################
#                               Default callouts                               #
################################################################################

/** Default action for an unexpected unmasked bit */
actionclass defaultMaskedError
{
    callout2ndLvlMed;
    threshold1;
};

/** Default TBD action */
actionclass TBDDefaultCallout
{
    callout2ndLvlMed;
    threshold( field(32 / day), mfg(32 / day) );
};

################################################################################
#                                 OCMB Actions                                 #
################################################################################

/** DDR4 PHY Interrupt */
actionclass ddr4_phy_interrupt
{
    calloutSelfHigh;
    threshold5pday;
    funccall("Ddr4PhyInterrupt");
};

/** Foxhound Fatal */
actionclass foxhound_fatal
{
    funccall("FoxhoundFatal");
    threshold1;
};

/** OMI-DL Fatal Error */
actionclass dl_fatal_error
{
    try( funccall("DlFatalError"), omi_bus );
    threshold1;
};

/** MCBIST program complete */
actionclass mcbist_program_complete
{
    funccall("McbistCmdComplete");
};

/** Verify Chip Mark */
actionclass verify_chip_mark_0 { funccall("AnalyzeFetchMpe_0"); };
actionclass verify_chip_mark_1 { funccall("AnalyzeFetchMpe_1"); };
actionclass verify_chip_mark_2 { funccall("AnalyzeFetchMpe_2"); };
actionclass verify_chip_mark_3 { funccall("AnalyzeFetchMpe_3"); };
actionclass verify_chip_mark_4 { funccall("AnalyzeFetchMpe_4"); };
actionclass verify_chip_mark_5 { funccall("AnalyzeFetchMpe_5"); };
actionclass verify_chip_mark_6 { funccall("AnalyzeFetchMpe_6"); };
actionclass verify_chip_mark_7 { funccall("AnalyzeFetchMpe_7"); };

/** Mainline NCE/TCE handling */
actionclass mainline_nce_tce_handling
{
    funccall("AnalyzeFetchNceTce");
};

/** Handle Mainline AUEs/IAUEs */
actionclass mainline_aue_iaue_handling
{
    funccall("AnalyzeFetchAueIaue");
    mem_port_L;
    threshold1;
};

/** Mainline UE handling */
actionclass mainline_ue_handling
{
    threshold( field(33 / 30 min ) ); # To prevent flooding. Will be unmasked
                                      # when background scrubbing resumes after
                                      # targeted diagnostics is complete.
    funccall("AnalyzeFetchUe");
};

actionclass mainline_ue_handling_UERE
{
    SueSource;
    mainline_ue_handling;
};

/** Handle Mainline IUEs */
actionclass mainline_iue_handling
{
    # An IUE itself is not a SUE source, however, a threshold of IUEs will
    # trigger a port failure, which will generate SUEs. The port failure could
    # also crash the machine so we want to make sure this bit is flagged as an
    # SUE just in case it is needed in the checkstop analysis.
    SueSource;
    # Thresholding done in the plugin
    funccall("AnalyzeMainlineIue");
};

/**  Handle Maintenance IUEs */
actionclass maintenance_iue_handling
{
    # An IUE itself is not a SUE source, however, a threshold of IUEs will
    # trigger a port failure, which will generate SUEs. The port failure could
    # also crash the machine so we want to make sure this bit is flagged as an
    # SUE just in case it is needed in the checkstop analysis.
    SueSource;
    # Thresholding done in the plugin
    funccall("AnalyzeMaintIue");
};

actionclass memory_impe_handling
{
    funccall("AnalyzeImpe");
};

/** Handle Maintenance AUEs */
actionclass maintenance_aue_handling
{
    funccall("AnalyzeMaintAue");
    mem_port_L;
    threshold1;
};

/** Handle Maintenance IAUEs */
actionclass maintenance_iaue_handling
{
    all_dimm_H_memport_L;
    threshold1;
};

/** RDF RCD Parity Error */
actionclass rdf_rcd_parity_error
{
    funccall("RdfRcdParityError");
    threshold1;
};

actionclass rdf_rcd_parity_error_UERE
{
    rdf_rcd_parity_error;
    SueSource;
};

/** SRQ RCD Parity Error */
actionclass srq_rcd_parity_error
{
    all_dimm_H_memport_L;
    threshold32pday;
};

actionclass srq_rcd_parity_error_UERE
{
    srq_rcd_parity_error;
    SueSource;
};

actionclass mem_port_failure
{
    all_dimm_H_memport_L;
    threshold1;                                # Threshold 1
};

################################################################################
# Analyze groups
################################################################################

actionclass analyzeOCMB_LFIR { analyze(gOCMB_LFIR); };
actionclass analyzeMMIOFIR   { analyze(gMMIOFIR);   };
actionclass analyzeSRQFIR    { analyze(gSRQFIR);    };
actionclass analyzeMCBISTFIR { analyze(gMCBISTFIR); };
actionclass analyzeRDFFIR    { analyze(gRDFFIR);    };
actionclass analyzeTLXFIR    { analyze(gTLXFIR);    };
actionclass analyzeTLXERR1
{
    analyze(gTLX_ERR1_REPORT);
    funccall("clearAndMaskTlxtRe");
};
actionclass analyzeOMIDLFIR  { analyze(gOMIDLFIR);  };

OpenPOWER on IntegriCloud