27403f46 | 01-Dec-2021 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
pldmtool: oem: ibm: untangle header dependencies
With the oem-ibm meson option enabled, pldm_platform_command.cpp has the following header dependency chain:
requester/handler.hpp host-bmc/dbus_to_e
pldmtool: oem: ibm: untangle header dependencies
With the oem-ibm meson option enabled, pldm_platform_command.cpp has the following header dependency chain:
requester/handler.hpp host-bmc/dbus_to_event_handler.hpp libpldmresponder/platform.hpp oem/ibm/libpldmresponder/inband_code_update.hpp oem/ibm/libpldmresponder/oem_ibm_handler.hpp pldmtool/oem/ibm/oem_ibm_state_set.hpp pldmtool/pldm_platform_cmd.cpp
requester/handler.hpp has a dependency on sd_event. Since sd_event is not listed as a dependency of pldmtool, this results in a compile failure when building in subproject mode.
Clearly it isn't appropriate to add sd_event as a pldmtool dependency. To fix the compile failure, break the include dependency chain between oem_ibm_state_set.hpp and oem_ibm_handler.hpp. This is likely an intra-pldm domain violation anyway (pldmtool <-> libpldmresponder).
oem_ibm_state_set.hpp includes oem_ibm_handler.hpp to make use of a single constant: PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE. To break the dependency chain, PLDM_OEM_IBM_ENTITY_FIRMWARE_UPDATE is moved to an oem version of entity.h.
Change-Id: I2b54ad9a7559ecf5fbe01c6a52a24428e56df77e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
dcdcd3b8 | 15-Jun-2021 |
Sridevi Ramesh <sridevra@in.ibm.com> |
pldmtool: Display GetPDR state set ID possible state names in an array
Note: Also, displays OEM state set and their possible states. Created new oem_ibm_state_set.hpp for OEM IBM PDR's possibl
pldmtool: Display GetPDR state set ID possible state names in an array
Note: Also, displays OEM state set and their possible states. Created new oem_ibm_state_set.hpp for OEM IBM PDR's possible states.
Example:
{ "nextRecordHandle": 115, "responseCount": 27, "recordHandle": 114, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 93, "entityType": "[Physical] Unspecified", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "Identify State(17)", "possibleStatesSize[0]": 1, "possibleStates[0]": [ "Identify State Unasserted(1)", "Identify State Asserted(2)" ] }
{ "nextRecordHandle": 125, "responseCount": 27, "recordHandle": 124, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 103, "entityType": "[Physical] System chassis (main enclosure)", "entityInstanceNumber": 1, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "Operational Fault Status(10)", "possibleStatesSize[0]": 1, "possibleStates[0]": [ "Normal(1)", "Stressed(2)" ] }
{ "nextRecordHandle": 249, "responseCount": 30, "recordHandle": 248, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 16, "PLDMTerminusHandle": 1, "effecterID": 116, "entityType": "[Physical] OEM IBM Firmware Update", "entityInstanceNumber": 1, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "OEM IBM Boot State(32769)", "possibleStatesSize[0]": 2, "possibleStates[0]": [ "P Side(1)", "T side(2)" ] }
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com> Change-Id: Iae44b14dab071683c86fd65c95e984b9287eca80
show more ...
|
dd04990d | 12-Aug-2020 |
Sridevi Ramesh <sridevra@in.ibm.com> |
Display pldmtool Fru & oem-ibm command output in JSON
./pldmtool fru GetFruRecordTableMetadata { "FRU DATAStructureTableIntegrityChecksum": 3870816131, "FRUDATAMajorVersion": 1, "FRUDATA
Display pldmtool Fru & oem-ibm command output in JSON
./pldmtool fru GetFruRecordTableMetadata { "FRU DATAStructureTableIntegrityChecksum": 3870816131, "FRUDATAMajorVersion": 1, "FRUDATAMinorVersion": 0, "FRUTableLength": 2005, "FRUTableMaximumSize": 4294967295, "Total number of Record Set Identifiers in table": 13, "Total number of records in table": 33 }
./pldmtool oem-ibm GetAlertStatus -i 0x00 { "pri cec node": "0x00008030", "rack entry": "0xff000030" }
./pldmtool oem-ibm GetFileTable [ { "FileHandle": "0", "FileName": "PHYP-NVRAM", "FileNameLength": 10, "FileSize": 17870848, "FileTraits": 1 }, { "FileHandle": "1", "FileName": "PHYP-NVRAM-CKSUM", "FileNameLength": 16, "FileSize": 16, "FileTraits": 4 } ]
./pldmtool fru GetFruRecordTable [ [ { "FRU Record Set Identifier": 1, "FRU Record Type": "General(1)", "Number of FRU fields": 2, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Model(2)", "FRU Field Length": 8, "FRU Field Value": "9105-22A" }, { "FRU Field Type": "Serial Number(4)", "FRU Field Length": 7, "FRU Field Value": "SIMP10R" } ], ... ... ... ... ... [ { "FRU Record Set Identifier": 13, "FRU Record Type": "OEM(254)", "Number of FRU fields": 1, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Location Code(254)", "FRU Field Length": 24, "FRU Field Value": "U78DA.ND1.1234567-P0-C23" } ], [ { "FRU Record Set Identifier": 13, "FRU Record Type": "General(1)", "Number of FRU fields": 3, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Part Number(3)", "FRU Field Length": 7, "FRU Field Value": "PN12345" }, { "FRU Field Type": "Serial Number(4)", "FRU Field Length": 12, "FRU Field Value": "YL2E32010000" }, { "FRU Field Type": "Name(8)", "FRU Field Length": 16, "FRU Field Value": "CPU POWER CARD " } ] ]
./pldmtool fru GetFRURecordByOption -i 3 -r 1 -f 3 [ [ { "FRU Record Set Identifier": 3, "FRU Record Type": "General(1)", "Number of FRU fields": 1, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Part Number(3)", "FRU Field Length": 7, "FRU Field Value": "PN12345" } ] ]
Change-Id: I1c5db56e5f336a0a1340ccd2ff8da5483a562cf8 Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
show more ...
|