Menu

#193 Dynamic plug-in support in PLM

future
unassigned
nobody
None
enhancement
plm
-
major
2017-04-03
2013-05-14
No

Current PLM implementation supports HPI interface for HE management. But this doesn't cater to HE management for non HPI platforms. OpenSAF PLM needs to handle non HPI platform HE management through dynamic plugin support. The Dynamic plug-in needs to communicate with
with PLM using following north bound and south bound interfaces.
Please fill the interface definitions.

Changed 3 years ago by ravisekhar

The tag <isHpiSupported> is already inplace to distinguish the HPI and non-HPI platforms. Incase of HPI supported scenarios, HSM and HRB threads process HPI events and issue commands to HPI.
The non-HPI plugin for managing HEs can be initialized for nonHPI environments. However, to keep the code base intact and FSMs intact is it reasonable to assume/expect that the plugin will model the HEs to comply with one of the supported hotSwap model and map the events to PLMS_HPI_EVT structure and post to the PLM main thread for further processing.
Following cmds are supported from PLMS to HPI
PLMS_HPI_CMD_ACTION_REQUEST ==> insertion or extraction request
PLMS_HPI_CMD_RESOURCE_ACTIVE_SET ==> Transition from INSERTION PENDING or EXTRACTION PENDING state to ACTIVE
PLMS_HPI_CMD_RESOURCE_INACTIVE_SET==> Transition from INSERTION PENDING or EXTRACTION PENDING state to INACTIVE
PLMS_HPI_CMD_RESOURCE_POWER_ON ==> Perform power control operation
PLMS_HPI_CMD_RESOURCE_POWER_OFF ==> Perform power control operation
PLMS_HPI_CMD_RESOURCE_RESET ==> Warm & Cold reset
PLMS_HPI_CMD_RESOURCE_IDR_GET ==> Retrieve IDR info
A subset of those commands based on the hotswap model that plugin adapts have to be honored to keep PLMS code from changing significantly.
Event structure and supported hotswap model listed below for your quick reference.
HPI Event structure
typedef struct plms_hpi_evt
{
SaHpiEventT sa_hpi_evt;
SaInt?8T *entity_path;
SaHpiEntityPathT epath_key;
SaUint?32T state_model;
PLMS_INV_DATA inv_data;
}PLMS_HPI_EVT;
Supported Hotswap Model
PLMS_HPI_TWO_HOTSWAP_MODEL
PLMS_HPI_THREE_HOTSWAP_MODEL
PLMS_HPI_PARTIAL_FIVE_HOTSWAP_MODEL
PLMS_HPI_FULL_FIVE_HOTSWAP_MODEL

Discussion


Log in to post a comment.