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
|
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/usr/diag/prdf/common/plat/p9/p9_pec.rule $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2016,2017
# [+] 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 p9_pec
{
name "P9 PEC chiplet";
targettype TYPE_PEC;
sigoff 0x9000;
dump DUMP_CONTENT_HW;
scomlen 64;
#############################################################################
# #
# ###### #
# # # ###### #### ### #### ##### ###### ##### #### #
# # # # # # # # # # # # # #
# ###### ##### # # #### # ##### # # #### #
# # # # # ### # # # # ##### # #
# # # # # # # # # # # # # # # #
# # # ###### #### ### #### # ###### # # #### #
# #
#############################################################################
############################################################################
# P9 PEC target PCI_LFIR
############################################################################
register PCI_LFIR
{
name "P9 PEC target PCI_LFIR";
scomaddr 0x0d04000a;
reset (&, 0x0d04000b);
mask (|, 0x0d04000f);
capture group default;
};
register PCI_LFIR_MASK
{
name "P9 PEC target PCI_LFIR MASK";
scomaddr 0x0d04000d;
capture group default;
};
register PCI_LFIR_ACT0
{
name "P9 PEC target PCI_LFIR ACT0";
scomaddr 0x0d040010;
capture group default;
capture req nonzero("PCI_LFIR");
};
register PCI_LFIR_ACT1
{
name "P9 PEC target PCI_LFIR ACT1";
scomaddr 0x0d040011;
capture group default;
capture req nonzero("PCI_LFIR");
};
############################################################################
# P9 PEC target IOPCIFIR
############################################################################
register IOPCIFIR
{
name "P9 PEC target IOPCIFIR";
scomaddr 0x0d010c00;
reset (&, 0x0d010c01);
mask (|, 0x0d010c05);
capture group default;
};
register IOPCIFIR_MASK
{
name "P9 PEC target IOPCIFIR MASK";
scomaddr 0x0d010c03;
capture group default;
};
register IOPCIFIR_ACT0
{
name "P9 PEC target IOPCIFIR ACT0";
scomaddr 0x0d010c06;
capture group default;
capture req nonzero("IOPCIFIR");
};
register IOPCIFIR_ACT1
{
name "P9 PEC target IOPCIFIR ACT1";
scomaddr 0x0d010c07;
capture group default;
capture req nonzero("IOPCIFIR");
};
# Include registers not defined by the xml
.include "p9_pec_regs.rule";
};
##############################################################################
# #
# #### # #
# # # # # # ##### ### # # # ## ##### ### ### # # ### #
# # # # # # # # # # # # # # # # # ## # # #
# #### # # # #### ### # ####### # # # # # # # # ### #
# # # # # # # # # # # # # # # # # # ## # #
# # # ### #### ##### ### # # # ## # ### ### # # ### #
# #
##############################################################################
################################################################################
# Summary for PEC
################################################################################
rule rPEC
{
CHECK_STOP:
summary( 0, rPCI_LFIR ) |
summary( 1, rIOPCIFIR );
RECOVERABLE:
summary( 0, rPCI_LFIR ) |
summary( 1, rIOPCIFIR );
};
group gPEC attntype CHECK_STOP, RECOVERABLE filter singlebit
{
(rPEC, bit(0)) ? analyze(gPCI_LFIR);
(rPEC, bit(1)) ? analyze(gIOPCIFIR);
};
################################################################################
# P9 PEC target PCI_LFIR
################################################################################
rule rPCI_LFIR
{
CHECK_STOP:
PCI_LFIR & ~PCI_LFIR_MASK & ~PCI_LFIR_ACT0 & ~PCI_LFIR_ACT1;
RECOVERABLE:
PCI_LFIR & ~PCI_LFIR_MASK & ~PCI_LFIR_ACT0 & PCI_LFIR_ACT1;
};
group gPCI_LFIR filter singlebit
{
/** PCI_LFIR[0]
* cir internal parity error
*/
(rPCI_LFIR, bit(0)) ? self_th_32perDay;
/** PCI_LFIR[1]
* local errors from GPIO
*/
(rPCI_LFIR, bit(1)) ? self_th_32perDay;
/** PCI_LFIR[2]
* local errors from CC
*/
(rPCI_LFIR, bit(2)) ? self_th_32perDay;
/** PCI_LFIR[3]
* local errors from cc
*/
(rPCI_LFIR, bit(3)) ? self_th_32perDay;
/** PCI_LFIR[4]
* pcb error from psc
*/
(rPCI_LFIR, bit(4)) ? defaultMaskedError;
/** PCI_LFIR[5]
* PE local errors from PSC
*/
(rPCI_LFIR, bit(5)) ? defaultMaskedError;
/** PCI_LFIR[6]
* parity error from thermal
*/
(rPCI_LFIR, bit(6)) ? defaultMaskedError;
/** PCI_LFIR[7]
* PCM error from thermal
*/
(rPCI_LFIR, bit(7)) ? defaultMaskedError;
/** PCI_LFIR[8]
* trip critical error from thermal
*/
(rPCI_LFIR, bit(8)) ? defaultMaskedError;
/** PCI_LFIR[9]
* trip fatal error from thermal
*/
(rPCI_LFIR, bit(9)) ? defaultMaskedError;
/** PCI_LFIR[10]
* therm volttrip eror
*/
(rPCI_LFIR, bit(10)) ? defaultMaskedError;
/** PCI_LFIR[11]
* local errors from debug
*/
(rPCI_LFIR, bit(11)) ? defaultMaskedError;
/** PCI_LFIR[12]
* scom error from trace array0
*/
(rPCI_LFIR, bit(12)) ? defaultMaskedError;
/** PCI_LFIR[13]
* local errors from trace array0
*/
(rPCI_LFIR, bit(13)) ? defaultMaskedError;
/** PCI_LFIR[14:40]
* spare
*/
(rPCI_LFIR, bit(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)) ? defaultMaskedError;
/** PCI_LFIR[41]
* malfunction alert broadcast via OOB
*/
(rPCI_LFIR, bit(41)) ? defaultMaskedError;
};
################################################################################
# P9 PEC target IOPCIFIR
################################################################################
rule rIOPCIFIR
{
CHECK_STOP:
IOPCIFIR & ~IOPCIFIR_MASK & ~IOPCIFIR_ACT0 & ~IOPCIFIR_ACT1;
RECOVERABLE:
IOPCIFIR & ~IOPCIFIR_MASK & ~IOPCIFIR_ACT0 & IOPCIFIR_ACT1;
};
group gIOPCIFIR filter singlebit
{
/** IOPCIFIR[0]
* HSS ZCAL Calibration Error
*/
(rIOPCIFIR, bit(0)) ? parent_proc_th_1;
/** IOPCIFIR[1]
* HSS CAL PLL A Calibration error
*/
(rIOPCIFIR, bit(1)) ? parent_proc_th_1;
/** IOPCIFIR[2]
* HSS CAL PLL B Calibration error
*/
(rIOPCIFIR, bit(2)) ? parent_proc_th_1;
/** IOPCIFIR[3]
* TX Lane A Calibration Error
*/
(rIOPCIFIR, bit(3)) ? defaultMaskedError;
/** IOPCIFIR[4]
* TX Lane B Calibration Error
*/
(rIOPCIFIR, bit(4)) ? defaultMaskedError;
/** IOPCIFIR[5]
* TX Lane C Calibration Error
*/
(rIOPCIFIR, bit(5)) ? defaultMaskedError;
/** IOPCIFIR[6]
* TX Lane D Calibration Error
*/
(rIOPCIFIR, bit(6)) ? defaultMaskedError;
/** IOPCIFIR[7]
* TX Lane E Calibration Error
*/
(rIOPCIFIR, bit(7)) ? defaultMaskedError;
/** IOPCIFIR[8]
* TX Lane F Calibration Error
*/
(rIOPCIFIR, bit(8)) ? defaultMaskedError;
/** IOPCIFIR[9]
* TX Lane G Calibration Error
*/
(rIOPCIFIR, bit(9)) ? defaultMaskedError;
/** IOPCIFIR[10]
* TX Lane H Calibration Error
*/
(rIOPCIFIR, bit(10)) ? defaultMaskedError;
/** IOPCIFIR[11]
* TX Lane I Calibration Error
*/
(rIOPCIFIR, bit(11)) ? defaultMaskedError;
/** IOPCIFIR[12]
* TX Lane J Calibration Error
*/
(rIOPCIFIR, bit(12)) ? defaultMaskedError;
/** IOPCIFIR[13]
* TX Lane K Calibration Error
*/
(rIOPCIFIR, bit(13)) ? defaultMaskedError;
/** IOPCIFIR[14]
* TX Lane L Calibration Error
*/
(rIOPCIFIR, bit(14)) ? defaultMaskedError;
/** IOPCIFIR[15]
* TX Lane M Calibration Error
*/
(rIOPCIFIR, bit(15)) ? defaultMaskedError;
/** IOPCIFIR[16]
* TX Lane N Calibration Error
*/
(rIOPCIFIR, bit(16)) ? defaultMaskedError;
/** IOPCIFIR[17]
* TX Lane O Calibration Error
*/
(rIOPCIFIR, bit(17)) ? defaultMaskedError;
/** IOPCIFIR[18]
* TX Lane P Calibration Error
*/
(rIOPCIFIR, bit(18)) ? defaultMaskedError;
/** IOPCIFIR[19]
* RX Lane A Calibration Error
*/
(rIOPCIFIR, bit(19)) ? defaultMaskedError;
/** IOPCIFIR[20]
* RX Lane B Calibration Error
*/
(rIOPCIFIR, bit(20)) ? defaultMaskedError;
/** IOPCIFIR[21]
* RX Lane C Calibration Error
*/
(rIOPCIFIR, bit(21)) ? defaultMaskedError;
/** IOPCIFIR[22]
* RX Lane D Calibration Error
*/
(rIOPCIFIR, bit(22)) ? defaultMaskedError;
/** IOPCIFIR[23]
* RX Lane E Calibration Error
*/
(rIOPCIFIR, bit(23)) ? defaultMaskedError;
/** IOPCIFIR[24]
* RX Lane F Calibration Error
*/
(rIOPCIFIR, bit(24)) ? defaultMaskedError;
/** IOPCIFIR[25]
* RX Lane G Calibration Error
*/
(rIOPCIFIR, bit(25)) ? defaultMaskedError;
/** IOPCIFIR[26]
* RX Lane H Calibration Error
*/
(rIOPCIFIR, bit(26)) ? defaultMaskedError;
/** IOPCIFIR[27]
* RX Lane I Calibration Error
*/
(rIOPCIFIR, bit(27)) ? defaultMaskedError;
/** IOPCIFIR[28]
* RX Lane J Calibration Error
*/
(rIOPCIFIR, bit(28)) ? defaultMaskedError;
/** IOPCIFIR[29]
* RX Lane K Calibration Error
*/
(rIOPCIFIR, bit(29)) ? defaultMaskedError;
/** IOPCIFIR[30]
* RX Lane L Calibration Error
*/
(rIOPCIFIR, bit(30)) ? defaultMaskedError;
/** IOPCIFIR[31]
* RX Lane M Calibration Error
*/
(rIOPCIFIR, bit(31)) ? defaultMaskedError;
/** IOPCIFIR[32]
* RX Lane N Calibration Error
*/
(rIOPCIFIR, bit(32)) ? defaultMaskedError;
/** IOPCIFIR[33]
* RX Lane O Calibration Error
*/
(rIOPCIFIR, bit(33)) ? defaultMaskedError;
/** IOPCIFIR[34]
* RX Lane P Calibration Error
*/
(rIOPCIFIR, bit(34)) ? defaultMaskedError;
/** IOPCIFIR[35]
* SCOM FIR Parity Error 0
*/
(rIOPCIFIR, bit(35)) ? defaultMaskedError;
/** IOPCIFIR[36]
* SCOM FIR Parity Error 1
*/
(rIOPCIFIR, bit(36)) ? defaultMaskedError;
};
##############################################################################
# #
# # ### #
# # # ## ##### ### ### # # # # # # ### ### ### ### #
# # # # # # # # # ## # # # # # # # # # #
# ####### # # # # # # # # # # ##### ### ### ## ### #
# # # # # # # # # # ## # # # # # # # # # #
# # # ## # ### ### # # ### ### # # ### ### ### ### #
# #
##############################################################################
# Include the common action set.
.include "p9_common_actions.rule";
# Include the chip-specific action set.
.include "p9_pec_actions.rule";
|