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

################################################################################
# MEM Chiplet Registers
################################################################################

rule MemChipletFir
{
  CHECK_STOP:
     (MEM_CHIPLET_CS_FIR       & `17fc000000000000`) & ~MEM_CHIPLET_FIR_MASK;
  UNIT_CS:
     (MEM_CHIPLET_CS_FIR       & `17fc000000000000`) & ~MEM_CHIPLET_FIR_MASK;
  RECOVERABLE:
    ((MEM_CHIPLET_RE_FIR >> 2) & `17f0000000000000`) & ~MEM_CHIPLET_FIR_MASK;
};

group gMemChipletFir filter singlebit
{
    /** MEM_CHIPLET_FIR[3]
     *  Attention from LFIR
     */
    (MemChipletFir, bit(3)) ? analyze(gMemLFir);

    /** MEM_CHIPLET_FIR[5]
     *  Attention from MBACALFIR (MBA 01)
     */
    (MemChipletFir, bit(5)) ? analyzeMba0;

    /** MEM_CHIPLET_FIR[6]
     *  Attention from MBAFIR (MBA 01)
     */
    (MemChipletFir, bit(6)) ? analyzeMba0;

    /** MEM_CHIPLET_FIR[7]
     *  Attention from MBACALFIR (MBA 23)
     */
    (MemChipletFir, bit(7)) ? analyzeMba1;

    /** MEM_CHIPLET_FIR[8]
     *  Attention from MBAFIR (MBA 23)
     */
    (MemChipletFir, bit(8)) ? analyzeMba1;

    /** MEM_CHIPLET_FIR[9]
     *  Attention from DDRPHYFIR (MBA 01)
     */
    (MemChipletFir, bit(9)) ? analyzeMba0;

    /** MEM_CHIPLET_FIR[10]
     *  Attention from DDRPHYFIR (MBA 23)
     */
    (MemChipletFir, bit(10)) ? analyzeMba1;

    /** MEM_CHIPLET_FIR[11]
     *  Attention from MEMFBISTFIR
     */
    (MemChipletFir, bit(11)) ? defaultMaskedError;

    /** MEM_CHIPLET_FIR[12]
     *  Attention from MBASECUREFIR (MBA 01)
     */
    (MemChipletFir, bit(12)) ? analyzeMba0; # Checkstop only

    /** MEM_CHIPLET_FIR[13]
     *  Attention from MBASECUREFIR (MBA 23)
     */
    (MemChipletFir, bit(13)) ? analyzeMba1; # Checkstop only
};

rule MemChipletSpa
{
    SPECIAL: MEM_CHIPLET_SPA & ~MEM_CHIPLET_SPA_MASK;
};

group gMemChipletSpa filter singlebit
{
    /** MEM_CHIPLET_SPA[0]
     *  Attention from Mba 01
     */
    (MemChipletSpa, bit(0)) ? analyzeMba0;

    /** MEM_CHIPLET_SPA[1]
     *  Attention from Mba 1
     */
    (MemChipletSpa, bit(1)) ? analyzeMba1;
};

################################################################################
# MEM Chiplet LFIR
################################################################################
# RAS spreadsheet: p8dd1_mss_FFDC_37_ reviewd.xls

rule MemLFir
{
  CHECK_STOP:  MEM_LFIR & ~MEM_LFIR_MASK & ~MEM_LFIR_ACT0 & ~MEM_LFIR_ACT1;
  UNIT_CS:     MEM_LFIR & ~MEM_LFIR_MASK & ~MEM_LFIR_ACT0 & ~MEM_LFIR_ACT1;
  RECOVERABLE: MEM_LFIR & ~MEM_LFIR_MASK & ~MEM_LFIR_ACT0 &  MEM_LFIR_ACT1;
};

group gMemLFir filter singlebit
{
    /** MEM_LFIR[0]
     *  CFIR internal parity error
     */
    (MemLFir, bit(0)) ? thresholdAndMask_self;

    /** MEM_LFIR[1]
     *  Local errors from GPIO (PCB error)
     */
    (MemLFir, bit(1)) ? defaultMaskedError;

    /** MEM_LFIR[2]
     *  Local errors from CC (PCB error)
     */
    (MemLFir, bit(2)) ? defaultMaskedError;

    /** MEM_LFIR[3]
     *  Local errors from CC (OPCG, parity, scan collision, ...)
     */
    (MemLFir, bit(3)) ? defaultMaskedError;

    /** MEM_LFIR[4]
     *  Local errors from PSC (PCB error)
     */
    (MemLFir, bit(4)) ? defaultMaskedError;

    /** MEM_LFIR[5]
     *  Local errors from PSC (parity error)
     */
    (MemLFir, bit(5)) ? defaultMaskedError;

    /** MEM_LFIR[6]
     *  Local errors from Thermal (parity error)
     */
    (MemLFir, bit(6)) ? defaultMaskedError;

    /** MEM_LFIR[7]
     *  Local errors from Thermal (PCB error)
     */
    (MemLFir, bit(7)) ? defaultMaskedError;

    /** MEM_LFIR[8:10]
     *  Local errors from Thermal (Trip error)
     */
    (MemLFir, bit(8|9|10)) ? defaultMaskedError;

    /** MEM_LFIR[11:12]
     *  Local errors from MBA01 Trace Array ( error)
     */
    (MemLFir, bit(11|12)) ? defaultMaskedError;

    /** MEM_LFIR[13:14]
     *  Local errors from MBA23 Trace Array ( error)
     */
    (MemLFir, bit(13|14)) ? defaultMaskedError;

    /** MEM_LFIR[40]
     *  Malfunction alert
     */
    (MemLFir, bit(40)) ? defaultMaskedError;
};

################################################################################
# Actions specific to MEM chiplet
################################################################################

/** Analyze connected MBA0 */
actionclass analyzeMba0
{
    try ( funccall("MBA1_Starvation"),
          analyze(connected(TYPE_MBA, 0)) );
};

/** Analyze connected MBA1 */
# No need to address starvation issue here
# because MBA0 is not at attention
actionclass analyzeMba1
{
    analyze(connected(TYPE_MBA, 1));
};

OpenPOWER on IntegriCloud