xref: /onnv-gate/usr/src/cmd/fm/eversholt/files/common/neptune_xfp.esc (revision 5060:222c7d448cfc)
1*5060Syc148097/*
2*5060Syc148097 * CDDL HEADER START
3*5060Syc148097 *
4*5060Syc148097 * The contents of this file are subject to the terms of the
5*5060Syc148097 * Common Development and Distribution License (the "License").
6*5060Syc148097 * You may not use this file except in compliance with the License.
7*5060Syc148097 *
8*5060Syc148097 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5060Syc148097 * or http://www.opensolaris.org/os/licensing.
10*5060Syc148097 * See the License for the specific language governing permissions
11*5060Syc148097 * and limitations under the License.
12*5060Syc148097 *
13*5060Syc148097 * When distributing Covered Code, include this CDDL HEADER in each
14*5060Syc148097 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5060Syc148097 * If applicable, add the following below this CDDL HEADER, with the
16*5060Syc148097 * fields enclosed by brackets "[]" replaced with your own identifying
17*5060Syc148097 * information: Portions Copyright [yyyy] [name of copyright owner]
18*5060Syc148097 *
19*5060Syc148097 * CDDL HEADER END
20*5060Syc148097 */
21*5060Syc148097/*
22*5060Syc148097 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*5060Syc148097 * Use is subject to license terms.
24*5060Syc148097 */
25*5060Syc148097
26*5060Syc148097#pragma ident	"%Z%%M%	%I%	%E% SMI"
27*5060Syc148097
28*5060Syc148097#pragma dictionary "NXGE"
29*5060Syc148097
30*5060Syc148097/*
31*5060Syc148097 * Eversholt rules for the XFP optical transceiver inserted into
32*5060Syc148097 * a Neptune based NIC card.
33*5060Syc148097 */
34*5060Syc148097
35*5060Syc148097#define	XFP_FIT	100
36*5060Syc148097
37*5060Syc148097asru pciexbus/pciexdev/pciexfn;
38*5060Syc148097fru  pciexbus/pciexdev/pciexfn/xfp;
39*5060Syc148097
40*5060Syc148097event fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp
41*5060Syc148097    FITrate=XFP_FIT,  FRU=pciexbus/pciexdev/pciexfn/xfp,
42*5060Syc148097    ASRU=pciexbus/pciexdev/pciexfn;
43*5060Syc148097
44*5060Syc148097/*
45*5060Syc148097 * Add 5 seconds constraint so that multiple identical ereports
46*5060Syc148097 * occuring within 10 seconds are considered symptoms of a single fault
47*5060Syc148097 */
48*5060Syc148097event   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
49*5060Syc148097event ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn {within(10s)};
50*5060Syc148097event ereport.io.service.lost@pciexbus/pciexdev/pciexfn {within(10s)};
51*5060Syc148097
52*5060Syc148097/*
53*5060Syc148097 * Events ereport.io.device.nxge.xfp-err and ereport.io.service.lost are
54*5060Syc148097 * related because the driver calls ddi_fm_service_impact right after
55*5060Syc148097 * generating the xfp-err ereport. A internal error.io.device.nxge.xfp-err
56*5060Syc148097 * is generated only after the FMD has received both ereport.io.device.
57*5060Syc148097 * nxge.xfp-err and ereport.io.service.lost, then the error event will
58*5060Syc148097 * trigger fault.io.n2.niu-xfp.  Based on the following rules, the diagnose
59*5060Syc148097 * engine will generate only one fault (fault.io.n2.niu-xfp) instead of two
60*5060Syc148097 * (associated with ereport.io.device.nxge.xfp-err and  ereport.io.service.lost
61*5060Syc148097 * respectively).
62*5060Syc148097 */
63*5060Syc148097prop fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp (1) ->
64*5060Syc148097    error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
65*5060Syc148097
66*5060Syc148097prop   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn (2) ->
67*5060Syc148097     ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn,
68*5060Syc148097     ereport.io.service.lost@pciexbus/pciexdev/pciexfn;
69