4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #pragma ident "%Z%%M% %I% %E% SMI"
28 #pragma dictionary "SUN4U"
30 #define AGENT_ID_MASK 0x1f
31 #define AGENT_ID_SHIFT 24
35 #define PCI_BUS_FIT 500
36 #define PCI_DEV_FIT 1000
39 #define PCI_HB_DEV_PATH hostbridge/pcibus/pcidev[32]/pcifn[0]
44 event fault.io.psycho@hostbridge,
45 FITrate=HB_FIT, FRU=hostbridge, ASRU=hostbridge;
47 event error.io.psy.ecc.thresh@hostbridge;
48 event ereport.io.psy.ecc.pue@hostbridge{within(5s)};
49 event ereport.io.psy.ecc.s-pue@hostbridge{within(5s)};
50 event ereport.io.psy.ecc.thresh@hostbridge;
53 * A faulty Psycho hostbridge may cause:
55 * - pue: the psycho to detect a PIO uncorrectable error, bad reader.
56 * - s-pue: the psycho to detect a secondary PIO UE, bad reader.
57 * - ecc: the SERD engine to gather enough PIO CEs to generate an ereport.
59 prop fault.io.psycho@hostbridge (0)->
60 ereport.io.psy.ecc.pue@hostbridge,
61 ereport.io.psy.ecc.s-pue@hostbridge,
62 error.io.psy.ecc.thresh@hostbridge;
64 engine serd.io.psycho.ecc@hostbridge,
65 N=3, T=1day, method=persistent,
66 trip=ereport.io.psy.ecc.thresh@hostbridge;
68 event upset.io.psycho@hostbridge,
69 engine=serd.io.psycho.ecc@hostbridge;
71 event ereport.io.psy.ecc.pce@hostbridge{within(5s)};
72 event ereport.io.psy.ecc.s-pce@hostbridge{within(5s)};
74 prop error.io.psy.ecc.thresh@hostbridge (2)->
75 ereport.io.psy.ecc.thresh@hostbridge,
76 ereport.io.psy.ecc.pce@hostbridge;
79 * An upset Psycho may cause:
81 * - pce: the psycho to detect a PIO correctable error, bad reader.
83 prop upset.io.psycho@hostbridge (0)->
84 ereport.io.psy.ecc.pce@hostbridge;
86 event fault.io.hbus@hostbridge,
87 FITrate=HBUS_FIT, FRU=hostbridge, ASRU=hostbridge;
90 * A faulty host bus may cause:
92 * - pue: a PIO uncorrectable error.
93 * - s-pue: a secondary PIO UE.
94 * - ecc: the SERD engine to gather enough PIO CEs to generate an ereport.
96 prop fault.io.hbus@hostbridge (0)->
97 ereport.io.psy.ecc.pue@hostbridge,
98 ereport.io.psy.ecc.s-pue@hostbridge,
99 error.io.psy.ecc.thresh@hostbridge;
103 event fault.io.datapath@cpu, retire=0,
104 FITrate=CPU_FIT, FRU=cpu;
106 event error.io.cpu.ecc.thresh@cpu;
109 * A faulty CPU may cause:
111 * - pue: a PIO uncorrectable error, where the captured Agentid matches
113 * - ecc: the SERD engine for the CPU to fire due to PIO CEs from this
116 prop fault.io.datapath@cpu[cpuid] (0)->
117 ereport.io.psy.ecc.pue@hostbridge
118 {((payloadprop("ecc-afsr") >> AGENT_ID_SHIFT) & AGENT_ID_MASK) == cpuid};
120 prop fault.io.datapath@cpu (0)->
121 error.io.cpu.ecc.thresh@cpu;
123 prop error.io.cpu.ecc.thresh@cpu (1)->
124 ereport.io.psy.ecc.thresh@hostbridge<>;
126 prop error.io.cpu.ecc.thresh@cpu[cpuid] (1)->
127 ereport.io.psy.ecc.pce@hostbridge<>
128 {((payloadprop("ecc-afsr") >> AGENT_ID_SHIFT) & AGENT_ID_MASK) == cpuid};
130 asru pcibus/pcidev/pcifn;
133 event fault.io.pci.device-interr@hostbridge/pcibus/pcidev/pcifn,
134 FITrate=PCI_DEV_FIT, FRU=pcibus/pcidev, ASRU=pcibus/pcidev/pcifn;
136 event fault.io.pci.device-interr@pcibus/pcidev/pcifn,
137 FITrate=PCI_DEV_FIT, FRU=pcibus/pcidev, ASRU=pcibus/pcidev/pcifn;
139 event error.io.psy.pbm.rl@hostbridge/pcibus/pcidev/pcifn;
140 event error.io.psy.pbm.rl@pcibus/pcidev/pcifn;
141 event error.io.psy.pbm.rl@pcibus/pcidev/pcifn/pcibus/pcidev/pcifn;
142 event error.io.psy.pbm.target-rl@pcibus/pcidev/pcifn;
143 event error.io.psy.pbm.target-rl@pcibus/pcidev/pcifn/pcibus/pcidev/pcifn;
144 event error.io.pci.ma-u@hostbridge/pcibus/pcidev/pcifn;
145 event error.io.pci.perr-pw-u@hostbridge/pcibus/pcidev/pcifn;
146 event error.io.pci.perr-dw-u@hostbridge/pcibus/pcidev/pcifn;
147 event error.io.pci.dpdata-dr-u@hostbridge/pcibus/pcidev/pcifn;
148 event error.io.pci.ta-u@hostbridge/pcibus/pcidev/pcifn;
149 event error.io.pci.serr-u@hostbridge/pcibus/pcidev/pcifn;
150 event error.io.pci.retry-to-d@hostbridge/pcibus/pcidev/pcifn;
151 event error.psy.cpu.berr@cpu;
153 event ereport.io.psy.sbh@hostbridge/pcibus/pcidev/pcifn{within(5s)};
154 event ereport.io.psy.pbm.rl@hostbridge/pcibus/pcidev/pcifn{within(5s)};
155 event ereport.io.psy.pbm.s-rl@hostbridge/pcibus/pcidev/pcifn{within(5s)};
156 event ereport.io.psy.pbm.s-ma@hostbridge/pcibus/pcidev/pcifn{within(5s)};
157 event ereport.io.psy.pbm.s-rta@hostbridge/pcibus/pcidev/pcifn{within(5s)};
158 event ereport.io.psy.pbm.s-mdpe@hostbridge/pcibus/pcidev/pcifn{within(5s)};
159 event ereport.io.psy.pbm.target-rl@pcibus/pcidev/pcifn{within(5s)};
160 event ereport.io.pci.rserr@hostbridge/pcibus/pcidev/pcifn{within(5s)};
161 event ereport.cpu.ultraSPARC-II.berr@cpu{within(5s)};
164 * A faulty PCI device may cause:
166 * - rl: it to retry a transaction beyond the specified limit.
167 * - sbh: it to generate a streaming byte hole.
169 * For rl, there may be a target-rl ereport on a child device. There may also be
170 * an associated dto - the retry-to-d error propagates into the pci.esc rules
174 prop fault.io.pci.device-interr@pcibus/pcidev[fromdev]/pcifn (0)->
175 error.io.psy.pbm.rl@pcibus/pcidev<todev>/pcifn {
176 fromdev == todev && fromdev != 32 },
177 error.io.psy.pbm.target-rl@pcibus/pcidev<todev>/pcifn {
178 fromdev == todev && fromdev != 32 };
180 prop error.io.psy.pbm.rl@pcibus/pcidev/pcifn/pcibus/pcidev/pcifn (1)->
181 error.io.psy.pbm.rl@pcibus/pcidev/pcifn;
183 prop error.io.psy.pbm.rl@hostbridge/pcibus/pcidev/pcifn (1)->
184 ereport.io.psy.pbm.rl@PCI_HB_DEV_PATH,
185 ereport.io.psy.pbm.s-rl@PCI_HB_DEV_PATH;
187 prop error.io.psy.pbm.target-rl@pcibus/pcidev/pcifn (1)->
188 error.io.psy.pbm.target-rl@pcibus/pcidev/pcifn/pcibus<>/pcidev<>/pcifn<>;
190 prop error.io.psy.pbm.target-rl@pcibus/pcidev/pcifn (0)->
191 ereport.io.psy.pbm.target-rl@pcibus/pcidev/pcifn;
193 prop error.io.psy.pbm.rl@hostbridge/pcibus/pcidev/pcifn (0)->
194 error.io.pci.retry-to-d@hostbridge/pcibus/pcidev/pcifn;
196 prop error.io.psy.pbm.rl@hostbridge/pcibus/pcidev/pcifn (0)->
197 error.psy.cpu.berr@cpu;
199 prop fault.io.pci.device-interr@hostbridge/pcibus/pcidev/pcifn (0)->
200 ereport.io.psy.sbh@PCI_HB_DEV_PATH;
203 * Need to add the following psycho specific propagations to complete the PCI
204 * fault tree. These are to allow propagations to secondary errors and cpu
205 * bus errors, and to represent the way the chip raises rserr
206 * on detection of SERR#
208 prop error.io.pci.ma-u@hostbridge/pcibus/pcidev/pcifn (0)->
209 ereport.io.psy.pbm.s-ma@PCI_HB_DEV_PATH;
211 prop error.io.pci.ta-u@hostbridge/pcibus/pcidev/pcifn (0)->
212 ereport.io.psy.pbm.s-rta@PCI_HB_DEV_PATH;
214 prop error.io.pci.perr-pw-u@hostbridge/pcibus/pcidev/pcifn (0)->
215 ereport.io.psy.pbm.s-mdpe@PCI_HB_DEV_PATH;
217 prop error.io.pci.perr-dw-u@hostbridge/pcibus/pcidev/pcifn (0)->
218 ereport.io.psy.pbm.s-mdpe@PCI_HB_DEV_PATH;
220 prop error.io.pci.dpdata-dr-u@hostbridge/pcibus/pcidev/pcifn (0)->
221 ereport.io.psy.pbm.s-mdpe@PCI_HB_DEV_PATH;
223 prop error.io.pci.ta-u@hostbridge/pcibus/pcidev/pcifn (0)->
224 error.psy.cpu.berr@cpu;
226 prop error.io.pci.dpdata-dr-u@hostbridge/pcibus/pcidev/pcifn (0)->
227 error.psy.cpu.berr@cpu;
229 prop error.io.pci.ma-u@hostbridge/pcibus/pcidev/pcifn (0)->
230 error.psy.cpu.berr@cpu;
232 prop error.psy.cpu.berr@cpu (0)->
233 ereport.cpu.ultraSPARC-II.berr@cpu;
235 prop error.io.pci.serr-u@hostbridge/pcibus/pcidev/pcifn (1)->
236 ereport.io.pci.rserr@PCI_HB_DEV_PATH;
238 event ereport.io.psy.nodiag@hostbridge;
241 * Upset used to hide ereports that can not be currently diagnosed.
243 engine serd.io.psy.nodiag@hostbridge,
244 N=1000, T=1hour, method=persistent,
245 trip=ereport.io.psy.nodiag@hostbridge;
247 event upset.io.psy.nodiag@hostbridge,
248 engine=serd.io.psy.nodiag@hostbridge;
250 prop upset.io.psy.nodiag@hostbridge (0)->
251 ereport.io.psy.ecc.s-pce@hostbridge,
252 ereport.io.psy.nodiag@hostbridge;