X hits on this document

PDF document

February 10, 2006 - page 120 / 238

1168 views

0 shares

0 downloads

0 comments

120 / 238

_ _ _ enum ipmi hot swap_states curr state,

void

*cb_data,

ipmi_event_t

*event);

108

CHAPTER 7. ENTITIES

This is a standard event handler as described in section 2.2.5 on page 20

i n t i p m i _ e n t i t y _ a d d _ h o t _ s w a p _ h a n d l e r ( i p m i _ e n t i t y _ t

*ent,

i p m i _ e n t i t y _ h o t _ s w a p _ c b h a n d l e r ,

void

* c b _ d a t a ) ;

*cb_data); *ent, void i n t i p m i _ e n t i t y _ r e m o v e _ h o t _ s w a p _ h a n d l e r ( i p m i _ e n t i t y _ t i p m i _ e n t i t y _ h o t _ s w a p _ c b h a n d l e r ,

7.6.3

Hot-Swap

Activation and

Deactivation

Devices that have the ability to control power and request power up or removal have some special handling that may be required. Note that some systems may only support a subset of these operations, reference the documentation for the system for more details.

When a device is inserted that has these capabilities, there is generally some way to signal that the device is ready to be powered up. In ATCA, for instance, the operator will insert the card and the entity for the card will go from not present to inactive state. When the operator closes the lock-latch, that signals the system to go to activation requested state.

If a device is in the inactive state, the management software using OpenIPMI can use the following function to force it into activation requested state:

i n t i p m i _ e n t i t y _ s e t _ a c t i v a t i o n _ r e q u e s t e d ( i p m i _ e n t i *ent, t y _ t i p m i _ e n t i t y _ c b d o n e ,

void

* c b _ d a t a ) ;

This can occur if an entity has been moved to the inactive state by the management software then the entity needs to be powered up again. If an entity is sitting in the inactive state but does not support this, then this call will return ENOSYS and the entity can be moved directly to active state.

To move an entity to active state (either from inactive or activation requested state), use the following

function:

i n t i p m i _ e n t i t y _ a c t i v a t e ( i p m i _ e n t i t y *ent, _ t i p m i _ e n t i t y _ c b d o n e ,

void

* c b _ d a t a ) ;

This will power the entity up and move it to active state.

Deactivation is similar, but not quite the same. The operator directly working on the device can request a removal using some mechanism. In ATCA, for instance, the operator can open the lock latch on the card and the card entity will move from active to deactivation requested state. Note that unlike activation, there is no way for system management software to request a move to deactivation requested state. It’s not really required, since it can request that the entity go directly to inactive state.

To move from either active (or really any state in the activation process) or deactivation requested state to inactive state, the function:

Document info
Document views1168
Page views1168
Page last viewedTue Jan 24 09:37:34 UTC 2017
Pages238
Paragraphs8090
Words85809

Comments