/*
* 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.
*/
#include <cma.h>
#include <fcntl.h>
#include <strings.h>
#include <unistd.h>
#include <errno.h>
#include <sys/mem_cache.h>
int
/* ARGSUSED 4 */
{
int err;
/*
* This added expansion is needed to cover the situation where a
* cpu fault from the resource cache is replayed at fmd restart,
* and the cpu resource has been remapped or replaced. The stored
* FMRI is expanded, but may have stale data.
*/
return (CMA_RA_FAILURE);
}
return (CMA_RA_FAILURE);
}
return (CMA_RA_FAILURE);
}
return (CMA_RA_FAILURE);
}
return (CMA_RA_FAILURE);
}
/*
* Tag faults will use it to set the bit to a stable state
*/
return (CMA_RA_FAILURE);
}
if (repair) {
"cpu %d: Unretire for index %d, way %d\n bit %d"
" type 0x%02x is being called now. We will not unretire"
" cacheline. This message is for information.\n",
/*
* The DE will do the actual unretire.
* The agent is called because the DE informs the fmd
* that the resource is repaired.
*/
return (CMA_RA_SUCCESS);
}
"cpu %d: Retiring index %d, way %d\n bit %d"
if (fd == -1) {
return (CMA_RA_FAILURE);
}
/*
* save errno before we call close.
* Need errno to display the error if ioctl fails.
*/
if (ret == -1) {
return (CMA_RA_FAILURE);
}
return (CMA_RA_SUCCESS);
}