/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FM_CPU_GMCA_H
#define _SYS_FM_CPU_GMCA_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generic x86 cpu ereports.
*
* On a machine-check exception, or on a periodic poll for error status
* of a cpu, we read through all the MCA banks of the processor and
* log an ereport for each MCA bank that contains valid error telemetry.
* These ereports will all share the same detector FMRI and ENA.
*
* Since we have no model-specific knowledge of the cpu we cannot
* decode all details of the error, so we'll stick to the "architectural"
* bits. Similarly since we have no associated memory-controller driver
* or detailed topology information we cannot produce "resource" ereport
* FMRIs.
*/
/* Ereport class subcategory for generic x86 processors */
/*
* Simple error code ereport leaf classes
*/
/*
* Leaf class to be used when we can match no simple or compound class
*/
/*
* Compound error code ereport leaf classes. The arguments for snprintf
* will appear in the following order:
*
* 1 - TT interpretation
* 2 - LL interpretation
* 3 - RRRR interpretation
* 4 - PP interpretation
* 5 - II interpretation
* 6 - T interpretation
* 7 - "_uc" if this is a compound error with MCi_STATUS.UC set, else ""
* 8 - CCCC interpretation
* 9 - MMM interpretation
*
* They can be selected in the format string using the %n$s specifier form.
*
* The set of interpretations that we expand to will not be exactly the
* same as the set of mnemonics described in Vol 3A (see the
* FM_EREPORT_PAYLOAD_NAME_COMPOUND_ERR ereport payload member for that).
* Instead we wish to compress the possible ereport classes that can
* be generated by pushing things such as "LG" for generic cache level
* down to "".
*
*
* "Memory Hierarchy" in compound errors actually refers to CPU cache
* memory.
*/
/*
* The "interpretation" expansions for the above ereport leaf subclasses.
*/
/*
* Ereport payload member names together with bitmask values to select
* their inclusion in ereports.
*/
/*
* Common combinations of payload members
*/
#define FM_EREPORT_PAYLOAD_FLAGS_GLOBAL \
#define FM_EREPORT_PAYLOAD_FLAGS_BANK \
#define FM_EREPORT_PAYLOAD_FLAGS_COMMON \
#define FM_EREPORT_PAYLOAD_FLAGS_COMPOUND_ERR \
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FM_CPU_GMCA_H */