bridgingcommands:Read event msg buf & update flag
Issue: Reading the message buffer should clear the event message
buffer full flag and it should give correct value when Get
message flags command is executed.
Fix:
1. Added new API ipmiAppReadEventMessageBuffer
2. Reading the message buffer should clear the event message buffer
full flag and it should give correct value when Get message flags
command is executed.
Tested:
Tested with ipmitool raw command
Before changes:
Command: ipmitool raw 0x06 0x35 //ReadEventMessageBuffer command
Response: 55 55 c0 41 a7 00 00 00 00 00 3a ff 00 ff ff ff
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 02
Command: ipmitool raw 0x06 0x30 0x02 //ClearMessageFlags command
Response:
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 02
After changes:
Case 1:
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 02
Command: ipmitool raw 0x06 0x35 //ReadEventMessageBuffer command
Response: 55 55 c0 41 a7 00 00 00 00 00 3a ff 00 ff ff ff
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 00
Case2:
After restarting the service:
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 02
Command: ipmitool raw 0x06 0x30 0x02 //ClearMessageFlags command
Response:
Command: ipmitool raw 0x06 0x31 //GetMsgFlags command
Response: 00
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I211c3389b5c75ec96e4ad08c94bc0f276b7be307
1 file changed