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 ident "%Z%%M% %I% %E% SMI" 27 28#pragma dictionary "NXGE" 29 30/* 31 * Eversholt rules for the XFP optical transceiver inserted into 32 * a Neptune based NIC card. 33 */ 34 35#define XFP_FIT 100 36 37asru pciexbus/pciexdev/pciexfn; 38fru pciexbus/pciexdev/pciexfn/xfp; 39 40event fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp 41 FITrate=XFP_FIT, FRU=pciexbus/pciexdev/pciexfn/xfp, 42 ASRU=pciexbus/pciexdev/pciexfn; 43 44/* 45 * Add 5 seconds constraint so that multiple identical ereports 46 * occuring within 10 seconds are considered symptoms of a single fault 47 */ 48event error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn; 49event ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn {within(10s)}; 50event ereport.io.service.lost@pciexbus/pciexdev/pciexfn {within(10s)}; 51 52/* 53 * Events ereport.io.device.nxge.xfp-err and ereport.io.service.lost are 54 * related because the driver calls ddi_fm_service_impact right after 55 * generating the xfp-err ereport. A internal error.io.device.nxge.xfp-err 56 * is generated only after the FMD has received both ereport.io.device. 57 * nxge.xfp-err and ereport.io.service.lost, then the error event will 58 * trigger fault.io.n2.niu-xfp. Based on the following rules, the diagnose 59 * engine will generate only one fault (fault.io.n2.niu-xfp) instead of two 60 * (associated with ereport.io.device.nxge.xfp-err and ereport.io.service.lost 61 * respectively). 62 */ 63prop fault.io.n2.niu-xfp@pciexbus/pciexdev/pciexfn/xfp (1) -> 64 error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn; 65 66prop error.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn (2) -> 67 ereport.io.device.nxge.xfp-err@pciexbus/pciexdev/pciexfn, 68 ereport.io.service.lost@pciexbus/pciexdev/pciexfn; 69