summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/common/deconfigGard.C24
-rw-r--r--src/usr/hwas/hostbootIstep.C13
2 files changed, 34 insertions, 3 deletions
diff --git a/src/usr/hwas/common/deconfigGard.C b/src/usr/hwas/common/deconfigGard.C
index d3d82a141..89ae8d235 100644
--- a/src/usr/hwas/common/deconfigGard.C
+++ b/src/usr/hwas/common/deconfigGard.C
@@ -39,6 +39,10 @@
#include <targeting/common/commontargeting.H>
#include <targeting/common/utilFilter.H>
+#include <ipmi/ipmisensor.H>
+#include <config.h>
+
+
// Trace definition
#define __COMP_TD__ g_trac_deconf
@@ -1415,7 +1419,27 @@ void DeconfigGard::_deconfigureTarget(
//******************************************************************************
void DeconfigGard::_doDeconfigureActions(Target & i_target)
{
+
// Placeholder for any necessary deconfigure actions
+
+
+#ifdef CONFIG_BMC_IPMI
+ // set the BMC status for this target
+ SENSOR::StatusSensor l_sensor( &i_target );
+
+ // can assume the presence sensor is in the correct state, just
+ // assert that it is now non functional.
+ errlHndl_t err = l_sensor.setStatus( SENSOR::StatusSensor::NON_FUNCTIONAL );
+
+ if(err)
+ {
+ HWAS_ERR("Error returned from call to set sensor status for HUID 0x%x",
+ TARGETING::get_huid( &i_target) );
+ err->collectTrace(HWAS_COMP_NAME, 512);
+ errlCommit(err, HWAS_COMP_ID);
+ }
+#endif
+
}
//******************************************************************************
diff --git a/src/usr/hwas/hostbootIstep.C b/src/usr/hwas/hostbootIstep.C
index 5de7a739e..6c33c0a7c 100644
--- a/src/usr/hwas/hostbootIstep.C
+++ b/src/usr/hwas/hostbootIstep.C
@@ -62,6 +62,10 @@
#include <proc_enable_reconfig.H>
+
+#include <ipmi/ipmisensor.H>
+#include <config.h>
+
namespace HWAS
{
@@ -94,8 +98,6 @@ void* host_set_ipl_parms( void *io_pArgs )
TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "host_set_ipl_parms entry" );
errlHndl_t errl = NULL;
- // stub -- nothing here currently
-
TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "host_set_ipl_parms exit" );
return errl;
@@ -130,8 +132,13 @@ void* host_discover_targets( void *io_pArgs )
errl = discoverTargets();
}
+#ifdef CONFIG_BMC_IPMI
+ // send DIMM/CORE/PROC sensor status to the BMC
+ SENSOR::updateBMCSensorStatus();
+#endif
+
TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
- "host_discover_targets exit" );
+ "host_discover_targets exit" );
return errl;
}
OpenPOWER on IntegriCloud