cmd_cpuerr.c revision 6dfee4834394825da35b977ca71cdc965bc7b6a4
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Ereport-handling routines for CPU errors
*/
#include <cmd_cpu.h>
#include <cmd.h>
#include <strings.h>
#include <string.h>
#include <errno.h>
/*
* tag events so we can have one common routine into which each handler
* calls.
*/
/*ARGSUSED9*/
static cmd_evdisp_t
{
const char *uuid;
return (CMD_EVD_REDUND);
&uuid);
}
return (CMD_EVD_OK); /* serd engine hasn't fired yet */
return (CMD_EVD_OK);
}
{ \
\
return (CMD_EVD_UNUSED); \
\
}
/*
* The following macro handles UE errors for CPUs.
* The UE may or may not share a fault with one or more
* CEs, but this doesn't matter. We look for existence of a
* SERD engine, blow it away if it exists, and close the case
* as solved.
*/
{ \
const char *uuid; \
cmd_case_t *cc; \
\
return (CMD_EVD_UNUSED); \
\
return (CMD_EVD_REDUND); \
\
} \
\
fmd_hdl_debug(hdl, \
"destroying existing %s state for class %x\n", \
} \
\
return (CMD_EVD_OK); \
}
typedef struct errdata {
const char *ed_fltnm;
const cmd_ptrsubtype_t ed_pst;
} errdata_t;
/*ARGSUSED*/
static void
{
const char *uuid;
if (cpu->cpu_faulting) {
return;
}
return;
}
return;
}
#ifdef sun4u
/*
* UE cache needed for sun4u only, because sun4u doesn't poison
*/
return;
}
#endif /* sun4u */
/*
* We didn't match in the UE cache. We don't need to sleep for UE
* arrival, as we've already slept once for the train match.
*/
&uuid);
}
&rsrc, 0) != 0) {
}
}
static void
{
const char *uuid;
return;
&uuid);
}
return; /* serd engine hasn't fired yet */
&rsrc, 0) != 0) {
}
}
/*
* We're back from the timeout. Check to see if this event was part of a train.
* If it was, make sure to only process the cause of the train. If not,
* process the event directly.
*/
static void
{
return;
}
goto done;
}
/*
* We didn't match in a train, so we're going to process each
* event individually.
*/
goto done;
}
/*
* We've got a train match. If this event is the cause of the train,
* process it.
*/
}
done:
}
void
{
}
void
{
}
static cmd_evdisp_t
{
cmd_case_t *cc;
return (CMD_EVD_UNUSED);
return (CMD_EVD_REDUND);
goto redeliver;
}
}
goto redeliver;
return (CMD_EVD_UNUSED);
}
return (CMD_EVD_BAD);
}
{
}
{
}
void
{
}