#
52509572 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I86d194886a4dcd325364041d4c7745f4ea22fd65 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
83f9992c |
| 22-Jun-2022 |
Willy Tu <wltu@google.com> |
Recover Add ipmi response buffer size check for all commands
Use the ipmi::Context channel to get the max transfer size to make sure that we select the right size.
Also remove maximumReadSize since
Recover Add ipmi response buffer size check for all commands
Use the ipmi::Context channel to get the max transfer size to make sure that we select the right size.
Also remove maximumReadSize since the max reply size is checked instead
We already check the max reply size so maximumReadSize is not needed anymore. This will result in a bit of a different behavior when the size exceed the max. It will not fail - instead, it will return up to the max size.
Tested: Work with ipmi config that doesn't support the default interface (13). ``` cat /usr/share/ipmi-providers/channel_config.json { "0": { "name": "usb0", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "lan-802.3", "protocol_type": "ipmb-1.0", "session_supported": "multi-session", "is_ipmi": true } }, "8": { "name": "INTRABMC", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "oem", "protocol_type": "oem", "session_supported": "session-less", "is_ipmi": true } }, "11": { "name": "gbmcbr", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "lan-802.3", "protocol_type": "ipmb-1.0", "session_supported": "multi-session", "is_ipmi": true } } } ```
This read the blob count and always works now since it uses the right interface to get the max transfer size. ``` ipmitool raw 46 128 207 194 0 0 cf c2 00 4a ac 0e 00 00 00 ```
Change-Id: Ia65f80719a819e7d642eb7425463a56c179935ac Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
067ece15 |
| 16-Jun-2022 |
Willy Tu <wltu@google.com> |
Refactor to use new version of OEM IPMI Handler
Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the input and output to have mor
Refactor to use new version of OEM IPMI Handler
Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the input and output to have more control of the input/output we see.
Changes to note, - All cmd are removed from the request data. That is automatically extracted now.
Tested: Unit Test Passed.
All IPMI OEM command still works the same as before this change.
``` $ burn_my_bmc -command stage -image /tmp/test.txt -interface ipmipci Set up ipmi flash updater with /flash/dummy Received failure on delete: Received IPMI_CC: 255 Sending over the firmware image. Find [0x1050 0x750] bar0[0x94000000] Upload to BMC 100% |Goooooooooooooooooooooooooooooooooooooooooooooooooooooooogle| Time: 00:00:00 Opening the verification file Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status success succeeded ```
Also tested gBMC Update workflow which worked fine.
Change-Id: Ib2bfeab0c2ec5aa72ede1ff457ef5f90e488053c Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
d92aee4d |
| 27-Jun-2022 |
Willy Tu <wltu@google.com> |
Revert "Add ipmi response buffer size check for all commands"
This reverts commit 88ca532a74375cc99bd979fbb037d07e5ee76cce.
Reason for revert: ipmi::getChannelMaxTransferSize is only using the defa
Revert "Add ipmi response buffer size check for all commands"
This reverts commit 88ca532a74375cc99bd979fbb037d07e5ee76cce.
Reason for revert: ipmi::getChannelMaxTransferSize is only using the default channel and may fail when using a different channel.
Change-Id: Ic080de6f51c05f86807b81dfd3dd38a87fc2dbf5 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
88ca532a |
| 14-Jun-2022 |
Willy Tu <wltu@google.com> |
Add ipmi response buffer size check for all commands
Add a response size check for all Blob command using the max transfer buffer size for the default ipmi channel.
The max size is fetched at the b
Add ipmi response buffer size check for all commands
Add a response size check for all Blob command using the max transfer buffer size for the default ipmi channel.
The max size is fetched at the beginning and assumed that it won't change. This is done instead of fetching it for all request to limit the amount of refactoring needed to make it work with existing codebase.
Change-Id: I66c506cab9c92a120e9fc75da4b6b74d5677120b Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
993f5419 |
| 15-Jun-2021 |
William A. Kennington III <wak@google.com> |
treewide: Remove unused variables
Change-Id: I946716e87ff95c3775d2802b83de565b6b2ac0a3 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
03fd5b8b |
| 07-May-2020 |
Patrick Venture <venture@google.com> |
move entry point handler to process
Move the entry point handler for IPMI messages to process for two reasons: 1) this lets one build pieces of this library without including the constructor 2) this
move entry point handler to process
Move the entry point handler for IPMI messages to process for two reasons: 1) this lets one build pieces of this library without including the constructor 2) this code is part of the command processing, and as such should be with its kin.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I10ab19b1868a29b158570109b4211e9c8b01be18
show more ...
|
#
de8a16e2 |
| 07-Mar-2019 |
Patrick Venture <venture@google.com> |
use ipmiblob library from ipmi-blob-tool
Drop all code that is now handled by the ipmiblob library provided by the new ipmi-blob-tool. This is a library that can be included on the BMC if necessary
use ipmiblob library from ipmi-blob-tool
Drop all code that is now handled by the ipmiblob library provided by the new ipmi-blob-tool. This is a library that can be included on the BMC if necessary, but relies on nothing that is strictly meant for the BMC.
Change-Id: I2b02ae0d432e84c08e598d27eef85b57c06a70fc Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
d1c3e86f |
| 10-Jan-2019 |
Patrick Venture <venture@google.com> |
bugfix: process: can be only crc
The read command, if returning 0 bytes of data, does return the CRC.
Tested: Verified via a client implementation that it now behaves as expected on returning 0 byt
bugfix: process: can be only crc
The read command, if returning 0 bytes of data, does return the CRC.
Tested: Verified via a client implementation that it now behaves as expected on returning 0 bytes from a read (returns only the CRC). Change-Id: I84200c0fbe8400cc9234b55991fee750cb84faa2 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
ebf7b9b6 |
| 13-Nov-2018 |
Patrick Venture <venture@google.com> |
bugfix: skip 0'd crc bytes on reply computation
Skip the 0'd CRC bytes on reply computation, mirroring the skipping during request validation.
Tested: Verified via client the CRC for the reply now
bugfix: skip 0'd crc bytes on reply computation
Skip the 0'd CRC bytes on reply computation, mirroring the skipping during request validation.
Tested: Verified via client the CRC for the reply now matches expectations. Change-Id: I18da28604a388fb4210c55f3e54410a067b9f10a Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
41258800 |
| 12-Nov-2018 |
Patrick Venture <venture@google.com> |
process: add IPMI error return mechanism and update errors
The IPMI packet validation code must return specific IPMI errors corresponding to what error has occurred instead of the invalid command er
process: add IPMI error return mechanism and update errors
The IPMI packet validation code must return specific IPMI errors corresponding to what error has occurred instead of the invalid command error.
Update all IPMI handler pieces to return more specific errors.
Change-Id: I8d21e92015d84cc0880e3b83991aed7288e19eab Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
5c4b17b2 |
| 04-Oct-2018 |
Patrick Venture <venture@google.com> |
new command: BmcBlobWriteMeta
Implement new command BmcBlobWriteMeta.
Change-Id: I2e148f4bde4ef5d24db7e30bb02bdde024d9166a Signed-off-by: Patrick Venture <venture@google.com>
|
#
b15b3050 |
| 04-Oct-2018 |
Patrick Venture <venture@google.com> |
process: rework lookup to use map for handlers
Switches lookup to use a map as adding another command makes the list too long.
Change-Id: I35257ff5ae8c4c14c88aa2fa7d866642370ef38f Signed-off-by: Pa
process: rework lookup to use map for handlers
Switches lookup to use a map as adding another command makes the list too long.
Change-Id: I35257ff5ae8c4c14c88aa2fa7d866642370ef38f Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
ef3aeadc |
| 12-Sep-2018 |
Patrick Venture <venture@google.com> |
initial drop of phosphor-ipmi-blobs
This implements a majority of the OEM IPMI BLOBS protocol. The only piece missing from this is the timed expiration of sessions.
Change-Id: I82c9d17b625c94fc334
initial drop of phosphor-ipmi-blobs
This implements a majority of the OEM IPMI BLOBS protocol. The only piece missing from this is the timed expiration of sessions.
Change-Id: I82c9d17b625c94fc3340edcfabbbf1ffeb5ad7ac Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|