- Jun 02, 2021
-
-
Manojkiran Eda authored
- This commit adds all the entity types & state sets mentioned in the spec dsp 0249 into supported map used by the pldmtool, so that it can display those when queried. Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I5b865bb861c2bfee771a65b724b61c9a8fd17762
-
Manojkiran Eda authored
- DSP 0249 quotes, "use memory module for pre-packed memory devices that are used with standardized connectors, such as DIMMs, SD cards, and so on". - This commit would set the entity type 66 (Memory Module) NOT 142(Memory Chip) for the Inventory Items that implement the DIMM Interface. Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I000f7ca08433d38c5e61ccc32893659a6578918f
-
- Jun 01, 2021
-
-
Christian Geddes authored
Add the files Hostboot requires in order to boot an OpenPower system to the File Table. Hostboot will read the file table in order to determine the file's writability and size. Change-Id: I74ccec0d4e1f0e831f746b3c67b3991220236f95 Signed-off-by:
Christian Geddes <crgeddes@us.ibm.com>
-
Christian Geddes authored
This commit adds support to the FileTable constructor to accept a list of comma separated values for the value of the "path" property in the file entry records declared in fileTable.json. The list's order defines the priority, meaning the first path, if it exists will be used, then the next is considered, and so on. This will allow the file table to support files who should consider patch directories. Change-Id: Id543946ef93a9f380576def9d68c1c4ab13bf7fc Signed-off-by:
Christian Geddes <crgeddes@us.ibm.com>
-
Christian Geddes authored
The eBMC for IBM systems will have copies of all the files needed to support any type of sytem. The host however, only wants 'this' systems copy of a given file, such as the device layout information. This attribute gives a way to the eBMC to communicate which .lid files the host should access without the host boot firmware having to keep a list of all the possible lid files for the various system types and knowing what type of system it is operating in. The format of this attribute will be a comma separated list of pairs: <readable name A>=<lid id 1>,<readable name B>=<lid id 2> Example : HBI=81e0065d,HBB=81e0065a Signed-off-by:
Christian Geddes <crgeddes@us.ibm.com> Change-Id: I9d5c600d7fd8ea6d2efc37ce41efc57d4e1c8f62
-
- May 29, 2021
-
-
gokulsanker authored
ComponentParameterTable is present in the response of GetFirmwareParameters command. ComponentParameterTable is a table that contains component entries for all of the updateable components which reside on the firmware device. decode_get_firmware_parameters_resp_comp_entry decodes each entry in the ComponentParameterTable. Tested: Unit tests passed Signed-off-by:
gokulsanker <gokul.sanker.v.g@intel.com> Change-Id: I3698b268cf42345d80d7d218919d42ffad0b011f
-
gokulsanker authored
decode_get_firmware_parameters_resp_comp_set_info decodes the GetFirmwareParameters response except the component parameter table. Update agent sends GetFirmwareParameters command to acquire the component details such as classification types and corresponding versions of firmware device. Its defined in DSP0267 Version 1.1.0 sec:10.2. Tested: Unit tests passed Signed-off-by:
gokulsanker <gokul.sanker.v.g@intel.com> Change-Id: I73da32ffa494cc1242ffe310f78acf4596ed04cf
-
gokulsanker authored
Update agent sends GetFirmwareParameters command to acquire the component details such as classification types and corresponding versions of firmware device. Its defined in DSP0267 Version 1.1.0 sec:10.2. Tested: Unit tests passed Signed-off-by:
gokulsanker <gokul.sanker.v.g@intel.com> Change-Id: I52a8b266195c3ed29aca61085518df5756ca09e2
-
gokulsanker authored
QueryDeviceIdentifiers command is used by update agent to obtain the firmware identifiers for the firmware device and its defined in DSP0267 Version 1.1.0 sec:10.1. Tested: Unit tests passed Signed-off-by:
gokulsanker <gokul.sanker.v.g@intel.com> Change-Id: I9ef81ce75aaedaae2fff9f5632ce16aa952cda17
-
gokulsanker authored
QueryDeviceIdentifiers command is used by update agent to obtain the firmware identifiers for the fimrware device and its defined in DSP0267 Version 1.1.0 sec:10.1. Tested: Unit tests passed Signed-off-by:
gokulsanker <gokul.sanker.v.g@intel.com> Change-Id: I472e85414b1a04b550b88c3e6058b86efb9b89b1
-
- May 27, 2021
-
-
Jayashankar Padath authored
Increase the hypervisor nvram size from 17MB to 142MB in all systems. Verified that nvram file size is getting changed as per the new value. Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: Id3431255a3dcaf1477cca43a9b839a0c424ad903
-
- May 25, 2021
-
-
Sampa Misra authored
This commit keeps the entity association tree updated across Host reboots. It deletes the Host entries from the entity associaton tree when Host is powered off. Without this fix the entity association tree keeps on growing with duplicate Host entries during each power on(PDR exchange) resulting a crash of pldm daemon after few power on-off sequence Change-Id: I8fdc258195aef998d10e33577f3ec98da48b3d40 Signed-off-by:
Sampa Misra <sampmisr@in.ibm.com>
-
- May 21, 2021
-
-
Jayashankar Padath authored
Added new entity types in the GetPDR command interface to parse the newly added entity types. Added new types for disk backplane, fan, nvme drive, dimm, tod battery, pcie slot and pcie cable card. Testing Result for some entity types: pldmtool platform GetPDR -d 156 { "nextRecordHandle": 157, "responseCount": 27, "recordHandle": 156, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 55, "entityType": "Slot", "entityInstanceNumber": 1, "containerID": 3, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } pldmtool platform GetPDR -d 170 { "nextRecordHandle": 171, "responseCount": 27, "recordHandle": 170, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 69, "entityType": "Real Time Clock (RTC)", "entityInstanceNumber": 1, "containerID": 3, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: Iddf290d68cf20d3c274a41079ac6c4ff1f805310
-
- May 20, 2021
-
-
Jayashankar Padath authored
This commit contains the addition of sensor/effecter pdrs for remaining supported identify leds like cable cards, dasd backplane, nvme drives, pcie slots, planar, powersupplys and the tod battery. Testing Result: EFFECTERS: 1) pldmtool platform GetPDR -d 26 { "nextRecordHandle": 27, "responseCount": 29, "recordHandle": 26, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 5, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: pldmtool platform SetStateEffecterStates -i 5 -c 1 -d 1 1 { "Response": "SUCCESS" } busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cablecard10_cxp_bot_identify xyz.openbmc_project.Led.Group Asserted b true Set Off: pldmtool platform SetStateEffecterStates -i 5 -c 1 -d 1 2 { "Response": "SUCCESS" } busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/cablecard10_cxp_bot_identify xyz.openbmc_project.Led.Group Asserted b false 2) pldmtool platform GetPDR -d 66 { "nextRecordHandle": 67, "responseCount": 29, "recordHandle": 66, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 45, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: pldmtool platform SetStateEffecterStates -i 45 -c 1 -d 1 1 { "Response": "SUCCESS" } busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/rtc_battery_identify xyz.openbmc_project.Led.Group Asserted b true Set Off: pldmtool platform SetStateEffecterStates -i 45 -c 1 -d 1 2 { "Response": "SUCCESS" } busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/rtc_battery_identify xyz.openbmc_project.Led.Group Asserted b false SENSOR: 3) pldmtool platform GetPDR -d 126 { "nextRecordHandle": 127, "responseCount": 27, "recordHandle": 126, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 47, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/rtc_battery_identify xyz.openbmc_project.Led.Group Asserted b true pldmtool raw --data 0x80 0x02 0x21 0x2F 0x00 0x01 0x00 Request Message: 08 01 80 02 21 2f 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 01 Set Off: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/rtc_battery_identify xyz.openbmc_project.Led.Group Asserted b false pldmtool raw --data 0x80 0x02 0x21 0x2F 0x00 0x01 0x00 Request Message: 08 01 80 02 21 2f 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 02 Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: I9f0f226847e880bbdeccc4f77f89a8f3da04e070
-
Jayashankar Padath authored
This is to support sensor/effecter pdrs for fan fault leds. Testing Result: Note: sensor/effecter ids may change in the testing result as testing was done with reduced pdrs for simplicity. Also test result only mentioned below for corner scenarios that is for fan0 and fan5. SENSORS: pldmtool platform GetPDR -d 25 (fan0) { "nextRecordHandle": 26, "responseCount": 27, "recordHandle": 25, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 6, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } fsn 0 Set On: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/fan0_fault xyz.openbmc_project.Led.Group Asserted b true pldmtool raw --data 0x80 0x02 0x21 0x06 0x00 0x01 0x00 Request Message: 08 01 80 02 21 06 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 01 fan0 Set Off: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/fan0_fault xyz.openbmc_project.Led.Group Asserted b false pldmtool raw --data 0x80 0x02 0x21 0x06 0x00 0x01 0x00 Request Message: 08 01 80 02 21 06 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 02 pldmtool platform GetPDR -d 30 (fan5) { "nextRecordHandle": 31, "responseCount": 27, "recordHandle": 30, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 11, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } fan 5 Set On: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/fan5_fault xyz.openbmc_project.Led.Group Asserted b true pldmtool raw --data 0x80 0x02 0x21 0x0B 0x00 0x01 0x00 Request Message: 08 01 80 02 21 0b 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 01 fan5 Set Off: busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/fan5_fault xyz.openbmc_project.Led.Group Asserted b false pldmtool raw --data 0x80 0x02 0x21 0x0B 0x00 0x01 0x00 Request Message: 08 01 80 02 21 0b 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 02 EFFECTER: pldmtool platform GetPDR -d 34 (fan0) { "nextRecordHandle": 35, "responseCount": 29, "recordHandle": 34, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 4, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } fan0 Set On: pldmtool raw -d 0x80 0x02 0x39 0x04 0x00 0x01 0x01 0x01 Request Message: 08 01 80 02 39 04 00 01 01 01 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0 xyz.openbmc_project.State.Decorator.OperationalStatus Functional b true fan0 Set Off: pldmtool raw -d 0x80 0x02 0x39 0x04 0x00 0x01 0x01 0x02 Request Message: 08 01 80 02 39 04 00 01 01 02 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0 xyz.openbmc_project.State.Decorator.OperationalStatus Functional b false pldmtool platform GetPDR -d 39 (fan5) { "nextRecordHandle": 40, "responseCount": 29, "recordHandle": 39, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 9, "entityType": "0(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } fan5 Set Off: pldmtool raw -d 0x80 0x02 0x39 0x09 0x00 0x01 0x01 0x02 Request Message: 08 01 80 02 39 09 00 01 01 02 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/fan5 xyz.openbmc_project.State.Decorator.OperationalStatus Functional b false fan5 Set On: pldmtool raw -d 0x80 0x02 0x39 0x09 0x00 0x01 0x01 0x01 Request Message: 08 01 80 02 39 09 00 01 01 01 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/fan5 xyz.openbmc_project.State.Decorator.OperationalStatus Functional b true Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: Id92230f55d788b008a80701a6108e41981b95aea
-
- May 19, 2021
-
-
Corey Swenson authored
Make memory_region_size an enum, add huge_page_size and power_limit_enable and power_limit_in_watts. Signed-off-by:
Corey Swenson <cswenson@us.ibm.com> Change-Id: Iae47d103df323a30ac8838b00504fac9702feb08
-
- May 18, 2021
-
-
Manojkiran Eda authored
- The intent behind this commit is to add a compile flag when libpldmresponder meson option is enabled, so that the code under #ifdef LIBPLDMRESPONDER is added during the build time. Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I730c4402ac0cc7b448c676f48df7b59c0c8683fc
-
- May 17, 2021
-
-
Tom Joseph authored
libpldmresponder library is for handling incoming PLDM request messages on BMC. There are usecases for PLDM daemon on BMC where it is primarily a requester and BMC aggregates information about firmware devices that implement MCTP/PLDM and facilitate firmware upgrade of the devices. This patch is a step in that direction to enable PLDM daemon on BMC primarily as PLDM requester. Tested: Ran PLDM daemon successfully without libpldmresponder library. Signed-off-by:
Tom Joseph <rushtotom@gmail.com> Change-Id: Iceaa10127352aaaba6c338d7ea9ac187be4e5fad
-
Tom Joseph authored
The unit test code for libpldmresponder, host-bmc and common is in a shared test directory. This patch separates the test code to the respective directory. Tested: Ran the unit test and tests passed. Signed-off-by:
Tom Joseph <rushtotom@gmail.com> Change-Id: I31d53681fa6c0d8bc6eb7c4e3341aaff4bc341ee
-
Sridevi Ramesh authored
This commit implements the responder flow for SetEventReceiver. PLDM SPEC: DSP248_1.2.0 TABLE 13 Signed-off-by:
Sridevi Ramesh <sridevra@in.ibm.com> Change-Id: I2e9fe2797ef2adb1f24f2a80bd19e7255ac80ce9
-
George Liu authored
Add George Liu as a reviewer Signed-off-by:
George Liu <liuxiwei@inspur.com> Change-Id: I8b951df52441c12ceec51400c5bba1bfa2bfabb3
-
- May 14, 2021
-
-
George Liu authored
Add its own parent entity to the pldm_entity_node structure, and then use pldm_entity_get_parent to get the entity's parent. Also, add UTest code for it. Tested: Built pldm daemon successfully and UTest passes. Signed-off-by:
George Liu <liuxiwei@inspur.com> Change-Id: I067f82ad6d03f3cffd2ca24cd771274777901b61
-
George Liu authored
Add the pldm_entity_extract method in libpldm/pdr.h and extract pldm entity structure explicitly. Tested: built pldm daemon successfully and the unit test passes. Signed-off-by:
George Liu <liuxiwei@inspur.com> Change-Id: I330e0c76e75d01093148c3a432fcc18cea1d36e3
-
- May 13, 2021
-
-
Tom Joseph authored
Signed-off-by:
Tom Joseph <rushtotom@gmail.com> Change-Id: If444bb6e93413e97bfb11c0755d90f1b5bcbb42e
-
Sagar Srinivas authored
This commit adds the encode and decode functions for the SetEventReceiver Command, which will be sent to host with time interval and heartbeat interval, along with enableAsyncKeepAlive for surveillance between host and BMC PLDM SPEC: DSP248_1.2.0 TABLE 13 Signed-off-by:
Sagar Srinivas <sagar.srinivas@ibm.com> Change-Id: I20613124a0787eb4f60945e923d1fc6afa4db31b
-
- May 12, 2021
-
-
Corey Swenson authored
Signed-off-by:
Corey Swenson <cswenson@us.ibm.com> Change-Id: Id06eabb5ce9928676d3379eac44078e0383ecd12
-
- May 10, 2021
-
-
Varsha Kaverappa authored
With this story PLDM detects interface added signal on interface xyz.openbmc_project.Certs.Entry and saves the value of CSR property. This CSR string is then sent to the host. Once the host responds to it the response is verified and a client certificate received from host is updates/saved in a dbus property - ClientCertificate. For multiple certificate exchange, new dbus objects are created for signing requests from different clients. Each dbus object has properties such has CSR and Client certificate that get updated with the certificate string when a valid CSR request is sent to host and client certficate is received successfully. After the dbus property (ClientCertificate) has a valid client certificate string, status property of the dbus interface xyz.openbmc_project.Certs.Entry is updated from pending to complete. Signed-off-by:
Varsha Kaverappa <vkaverap@in.ibm.com> Change-Id: I63afb15190ae9c21eb86421d75f51618b358c074
-
- May 05, 2021
-
-
Jayashankar Padath authored
This is to support sensor/effecter pdrs for enclosure fault led and enclosure identify led. Testing Result: EFFECTER: Enclosure Identify Use Cases: pldmtool platform GetPDR -d 55 { "nextRecordHandle": 56, "responseCount": 29, "recordHandle": 55, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 2, "entityType": "System chassis (main enclosure)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: pldmtool raw -d 0x80 0x02 0x39 0x02 0x00 0x01 0x01 0x01 Request Message: 08 01 80 02 39 02 00 01 01 01 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/enclosure_identify xyz.openbmc_project.Led.Group Asserted b true Set Off: pldmtool raw -d 0x80 0x02 0x39 0x02 0x00 0x01 0x01 0x02 Request Message: 08 01 80 02 39 02 00 01 01 02 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/enclosure_identify xyz.openbmc_project.Led.Group Asserted b false Enclosure Fault Use Cases: pldmtool platform GetPDR -d 56 { "nextRecordHandle": 57, "responseCount": 29, "recordHandle": 56, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 3, "entityType": "System chassis (main enclosure)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set state as On: pldmtool raw -d 0x80 0x02 0x39 0x03 0x00 0x01 0x01 0x01 Request Message: 08 01 80 02 39 03 00 01 01 01 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/enclosure_fault xyz.openbmc_project.Led.Group Asserted b true Set state as Off: pldmtool raw -d 0x80 0x02 0x39 0x03 0x00 0x01 0x01 0x02 Request Message: 08 01 80 02 39 03 00 01 01 02 Response Message: 08 01 00 02 39 00 busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/enclosure_fault xyz.openbmc_project.Led.Group Asserted b false SENSOR: Enc Identify Use Cases: pldmtool platform GetPDR -d 24 { "nextRecordHandle": 25, "responseCount": 27, "recordHandle": 24, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 3, "entityType": "System chassis (main enclosure)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "17", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: busctl set-property xyz.openbmc_project.LED.Controller.virtual_enc_id /xyz/openbmc_project/led/physical/virtual_enc_id xyz.openbmc_project.Led.Physical State s "xyz.openbmc_project.Led.Physical.Action.On" pldmtool raw --data 0x80 0x02 0x21 0x03 0x00 0x01 0x00 Request Message: 08 01 80 02 21 03 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 01 Set Off: busctl set-property xyz.openbmc_project.LED.Controller.virtual_enc_id /xyz/openbmc_project/led/physical/virtual_enc_id xyz.openbmc_project.Led.Physical State s "xyz.openbmc_project.Led.Physical.Action.Off" pldmtool raw --data 0x80 0x02 0x21 0x03 0x00 0x01 0x00 Request Message: 08 01 80 02 21 03 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 02 Enc Fault Use Cases: pldmtool platform GetPDR -d 25 { "nextRecordHandle": 26, "responseCount": 27, "recordHandle": 25, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 17, "PLDMTerminusHandle": 0, "sensorID": 4, "entityType": "System chassis (main enclosure)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 1, "stateSetID[0]": "10", "possibleStatesSize[0]": 1, "possibleStates[0]": " 1 2" } Set On: busctl set-property xyz.openbmc_project.LED.Controller.virtual_enc_fault /xyz/openbmc_project/led/physical/virtual_enc_fault xyz.openbmc_project.Led.Physical State s "xyz.openbmc_project.Led.Physical.Action.On" pldmtool raw --data 0x80 0x02 0x21 0x04 0x00 0x01 0x00 Request Message: 08 01 80 02 21 04 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 01 Set Off: busctl set-property xyz.openbmc_project.LED.Controller.virtual_enc_fault /xyz/openbmc_project/led/physical/virtual_enc_fault xyz.openbmc_project.Led.Physical State s "xyz.openbmc_project.Led.Physical.Action.Off" pldmtool raw --data 0x80 0x02 0x21 0x04 0x00 0x01 0x00 Request Message: 08 01 80 02 21 04 00 01 00 Response Message: 08 01 00 02 21 00 01 00 01 00 02 Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: Id9ae0ce5bba1c1a63d3de20daa22571d24a8d9f2
-
Varsha Kaverappa authored
PDR: root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 9 { "nextRecordHandle": 10, "responseCount": 29, "recordHandle": 9, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "17", "possibleStatesSize": 1, "possibleStates": " 1 1 2" } root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 10 { "nextRecordHandle": 11, "responseCount": 29, "recordHandle": 10, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 3, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "10", "possibleStatesSize": 1, "possibleStates": " 1 1 2" } root@w80:~# pldmtool platform GetPDR -d 14 { "nextRecordHandle": 15, "responseCount": 23, "recordHandle": 14, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 1, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 } root@w80:~# pldmtool platform GetPDR -d 15 { "nextRecordHandle": 0, "responseCount": 23, "recordHandle": 15, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 } Write Effecter test: root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@w56:~# pldmtool platform SetStateEffecterStates -i 2 -c 1 -d 1 1 --verbose Request Message: 08 01 80 02 39 02 00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Success in creating the socket : RC = 4 Success in connecting to socket : RC = 0 Success in sending message type as pldm to mctp : RC = 0 Write to socket successful : RC = 24 Total length:6 Shutdown Socket successful : RC = 0 Response Message: 08 01 00 02 39 00 { "Response": "SUCCESS" } root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true Sensor Read root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 02 root@rain104bmc:~# busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 01 Signed-off-by:
Varsha Kaverappa <vkaverap@in.ibm.com> Change-Id: Idbe765eeeaf229838f721918da01a15d5391cab2
-
- May 04, 2021
-
-
Jayashankar Padath authored
Added new vtpm bios attributes to the supported list. Also the attribute name pvm_os_ipl_type is changed to pvm_os_boot_type. Tested by: Verified the values using the pldmtool, redfish 1. StringTable o/p: "33": "pvm_os_boot_type", "42": "pvm_vtpm", 2. AttributeTable o/p: { "AttributeHandle": 24, "AttributeNameHandle": "33(pvm_os_boot_type)", "AttributeType": "BIOSEnumeration", "NumberOfPossibleValues": 4, "PossibleValueStringHandle[0]": "1(A_Mode)", "PossibleValueStringHandle[1]": "4(B_Mode)", "PossibleValueStringHandle[2]": "5(C_Mode)", "PossibleValueStringHandle[3]": "6(D_Mode)", "NumberOfDefaultValues": 1, "DefaultValueStringHandleIndex[0]": 3, "StringHandle": "6(D_Mode)" }, { "AttributeHandle": 25, "AttributeNameHandle": "42(pvm_vtpm)", "AttributeType": "BIOSEnumeration", "NumberOfPossibleValues": 2, "PossibleValueStringHandle[0]": "8(Disabled)", "PossibleValueStringHandle[1]": "9(Enabled)", "NumberOfDefaultValues": 1, "DefaultValueStringHandleIndex[0]": 0, "StringHandle": "8(Disabled)" } 3. AttributeValueTable o/p: { "AttributeHandle": 24, "AttributeType": "BIOSEnumeration", "NumberOfCurrentValues": 1, "CurrentValueStringHandleIndex[0]": "D_Mode" }, { "AttributeHandle": 25, "AttributeType": "BIOSEnumeration", "NumberOfCurrentValues": 1, "CurrentValueStringHandleIndex[0]": "Disabled" } 4. Redfish GET: "pvm_os_boot_type": "D_Mode", "pvm_vtpm": "Disabled", Signed-off-by:
Jayashankar Padath <jayashankar.padath@in.ibm.com> Change-Id: Iefda84ccbde29e1166acb8dabda07f408564cd3f
-
- Apr 29, 2021
-
-
Roland Veloz authored
Adding attribute "hb_field_core_override" that can be used to limit the number of cores HB activates. The default is 0 which is interpreted as to activate all cores. If given value N which is not 0, then for a fused core system 2N cores will be activated. For a non-fused core system then N cores will be activated. This is useful if a customer only wishes to activate N cores and not activate all cores available. Signed-off-by:
Roland Veloz <rveloz@us.ibm.com> Change-Id: Icca120b445810e1b7b8d41f0699ef87a4f0b6037
-
Pavithra Barithaya authored
Phyp is using a sensor to communicate the boot progress state changes to pldm.This commit verifies that and removes the Boot Progress entry from 11.json which was used earlier. Change-Id: I43a385a5a1c30f522bdaa848d44d67ef97d5d20f Signed-off-by:
Pavithra Barithaya <pavithra.b@ibm.com>
-
- Apr 27, 2021
-
-
Zach Clark authored
Signed-off-by:
Zach Clark <zach@ibm.com> Change-Id: Ie72df9677b34a81904fffebf0d0aa51bd13291ed
-
George Liu authored
There are some potential errors, when using the map::at method, the process may hang due to out of bounds. so the exception should be caught. Also, use the map::contains method of C++20 instead of map::find. Tested: built pldm successfully and worked. Signed-off-by:
George Liu <liuxiwei@inspur.com> Change-Id: Ia5d7dea906e5c598072c08b27387195ef1201839
-
- Apr 26, 2021
-
-
Tom Joseph authored
Signed-off-by:
Tom Joseph <rushtotom@gmail.com> Change-Id: If11bef4d1a8945c91b03ee97d6700ddf521f314b
-
- Apr 22, 2021
-
-
Manojkiran Eda authored
- Meson 0.57 warns that get_pkgconfig_variable is deprecated and we should be using get_variable instead. Tested By: Setup docker, and made sure the service files are installed in the desired directory. Installing /home/juliet/Documents/Work/docker/ci_test_area/pldm/build/pldmd.service to /lib/systemd/system Installing /home/juliet/Documents/Work/docker/ci_test_area/pldm/build/pldm_verbosity to /etc/default Installing /home/juliet/Documents/Work/docker/ci_test_area/pldm/build/softoff/pldmSoftPowerOff.service to /lib/systemd/system Signed-off-by:
Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I2da6f5fecc37e91eb927b2ebae9bd59de59d1b08
-
- Apr 20, 2021
-
-
Patrick Williams authored
Copy support from sdbusplus for loading googletest and gmock as a meson subproject, if it is not found in the host distribution. Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: I4aa1f6cdc97dc5db038950d81e551113463b1ffb
-
Patrick Williams authored
When 'oem-ibm' is enabled there are compile flags that need to be applied across all files in this project. To do that, 'add_project_arguments' should be used and not 'add_global_arguments' because: 1. These compile flags should only affect this project. 2. Meson subprojects may not update global arguments. Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: I360b6e03d37d6dfeab0085253992a443543e94a6
-
Patrick Williams authored
'libpldm/requester/pldm.h' is typically installed into 'libpldm/pldm.h' when enabled, but since the file is not present in this repository it is impossible for other projects to use pldm both globally and as a meson subproject. Add a symlink for this file so that when used as a subproject, the header can be found with '#include <libpldm/pldm.h>' just as it would in a global context. Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie0a06803a2760de81b8ee250ff4c84b51914f520
-
Patrick Williams authored
Add wrapfiles for all dependencies and update meson.build files to ensure dependencies are requested in all cases. This enables out-of-bitbake/out-of-sdk builds for this repository and enables it to be used as a meson subproject. Signed-off-by:
Patrick Williams <patrick@stwcx.xyz> Change-Id: I0f2f7eed98f7f7555cafefc2605e1031a7f0adaf
-