xref: /illumos-gate/usr/src/cmd/fm/eversholt/files/common/neptune_xfp.esc (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1/*
2 * CDDL HEADER START
3 *
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.
7 *
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.
12 *
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]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23 * Use is subject to license terms.
24 */
25
26#pragma dictionary "NXGE"
27
28/*
29 * Eversholt rules for the XFP optical transceiver inserted into
30 * a Neptune based NIC card.
31 */
32
33#define	XFP_FIT	100
34
35asru pciexbus/pciexdev/pciexfn;
36fru  pciexbus/pciexdev/pciexfn/xfp;
37
38event fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp
39    FITrate=XFP_FIT,  FRU=pciexbus/pciexdev/pciexfn/xfp,
40    ASRU=pciexbus/pciexdev/pciexfn;
41
42/*
43 * Add 5 seconds constraint so that multiple identical ereports
44 * occuring within 10 seconds are considered symptoms of a single fault
45 */
46event   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
47event ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn {within(10s)};
48event ereport.io.service.lost@pciexbus/pciexdev/pciexfn {within(10s)};
49
50/*
51 * Events ereport.io.device.nxge.xfp-err and ereport.io.service.lost are
52 * related because the driver calls ddi_fm_service_impact right after
53 * generating the xfp-err ereport. A internal error.io.device.nxge.xfp-err
54 * is generated only after the FMD has received both ereport.io.device.
55 * nxge.xfp-err and ereport.io.service.lost, then the error event will
56 * trigger fault.io.n2.niu-xfp.  Based on the following rules, the diagnose
57 * engine will generate only one fault (fault.io.n2.niu-xfp) instead of two
58 * (associated with ereport.io.device.nxge.xfp-err and  ereport.io.service.lost
59 * respectively).
60 */
61prop fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp (1) ->
62    error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn;
63
64prop   error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn (2) ->
65     ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn,
66     ereport.io.service.lost@pciexbus/pciexdev/pciexfn;
67