| commit | 3c5e413b55e60bdf4c7c34d06485e00915a969dd | [log] [tgz] |
|---|---|---|
| author | jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | Mon Apr 27 23:00:05 2020 +0000 |
| committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Thu Jul 09 18:33:11 2020 +0000 |
| tree | db82a0483129b1d88e0b0a024e25b70a5ff20f4d | |
| parent | 2e529ee9e92c485560294b96904cd0f4c6f41188 [diff] |
apphandler: Fix for set system Info parameter cmd
Issue: Get System Info parameter command returning incorrect response if
set system info command set the values less than 16 bytes.
Fix: Appending zero's if user setting less than 16 bytes data using set
system info parameter API.
Tested:
Before:
Command: ipmitool raw 0x06 0x58 0x02 0x00 0x00 0x69 0x6e 0x74 0x65 0x6c
0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63 //Set system info
Response: //success
Commands: ipmitool raw 0x06 0x59 0x00 0x02 0x00 0x00 //Get system info
Response: 11 00 00 69 6e 74 65 6c 2d 6f 70 65 6e 62 6d 63
2d 6d
Commands: ipmitool raw 0x06 0x58 0x08 0x00 0x00 0x69 0x6e 0x74 0x65 0x6c
0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63
Response: //success
Commands: ipmitool raw 0x06 0x58 0xff 0x00 0x00 0x69 0x6e 0x74 0x65 0x6c
0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63 0x10
Response: //success
After:
Commands: ipmitool raw 0x06 0x58 0x02 0x00 0x00 0x69 0x6e 0x74 0x65 0x6c
0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63 //Set system info
Response: //success
Commands: ipmitool raw 0x06 0x59 0x00 0x02 0x00 0x00 //Get system info
Response: 11 00 00 69 6e 74 65 6c 2d 6f 70 65 6e 62 6d 63
00 00
Commands: ipmitool raw 0x06 0x58 0x08 0x00 0x00 0x69 0x6e 0x74 0x65
0x6c 0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63 //Set system info
Response: Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x58 rsp=0xcc): Invalid data field in request
Commands: ipmitool raw 0x06 0x58 0xff 0x00 0x00 0x69 0x6e 0x74 0x65
0x6c 0x2d 0x6f 0x70 0x65 0x6e 0x62 0x6d 0x63 0x10
//Set system info
Response: Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x58 rsp=0x80): Unknown (0x80)
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I10be443df0bd5828f447919f919a9824352cc36b
To build this package, do the following steps:
1. ./bootstrap.sh
2. ./configure ${CONFIGURE_FLAGS}
3. make
To clean the repository run ./bootstrap.sh clean.