Skip to content
  1. Jun 02, 2021
  2. Jun 01, 2021
    • Christian Geddes's avatar
      Add Hostboot's IPL-time lids to PLDM File Table json · ef901004
      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: default avatarChristian Geddes <crgeddes@us.ibm.com>
      ef901004
    • Christian Geddes's avatar
      Support a list of CSVs for a file table entry path's value · 3249a90e
      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: default avatarChristian Geddes <crgeddes@us.ibm.com>
      3249a90e
    • Christian Geddes's avatar
      Add definition for hb_lid_ids attribute to string_attrs.json · 0a1c8856
      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: default avatarChristian Geddes <crgeddes@us.ibm.com>
      Change-Id: I9d5c600d7fd8ea6d2efc37ce41efc57d4e1c8f62
      0a1c8856
  3. May 29, 2021
  4. May 27, 2021
  5. May 25, 2021
    • Sampa Misra's avatar
      entity_association_tree: Keep tree always updated · c073a20e
      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: default avatarSampa Misra <sampmisr@in.ibm.com>
      c073a20e
  6. May 21, 2021
    • Jayashankar Padath's avatar
      pldmtool: Add new entity types in the pdr support list · 79175b44
      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: default avatarJayashankar Padath <jayashankar.padath@in.ibm.com>
      Change-Id: Iddf290d68cf20d3c274a41079ac6c4ff1f805310
      79175b44
  7. May 20, 2021
    • Jayashankar Padath's avatar
      pdr: Sensor/Effecter support for identify leds · 144ef2bd
      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: default avatarJayashankar Padath <jayashankar.padath@in.ibm.com>
      Change-Id: I9f0f226847e880bbdeccc4f77f89a8f3da04e070
      144ef2bd
    • Jayashankar Padath's avatar
      pdr: Sensor/Effecter support for fan fault leds · df2fa47b
      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: default avatarJayashankar Padath <jayashankar.padath@in.ibm.com>
      Change-Id: Id92230f55d788b008a80701a6108e41981b95aea
      df2fa47b
  8. May 19, 2021
  9. May 18, 2021
  10. May 17, 2021
  11. May 14, 2021
  12. May 13, 2021
  13. May 12, 2021
  14. May 10, 2021
    • Varsha Kaverappa's avatar
      PLDM : Multiple vmi certificate exchange · 219ace9a
      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: default avatarVarsha Kaverappa <vkaverap@in.ibm.com>
      Change-Id: I63afb15190ae9c21eb86421d75f51618b358c074
      219ace9a
  15. May 05, 2021
    • Jayashankar Padath's avatar
      pdr: Sensor/Effecter support for enc fault and identify leds · 50304da5
      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: default avatarJayashankar Padath <jayashankar.padath@in.ibm.com>
      Change-Id: Id9ae0ce5bba1c1a63d3de20daa22571d24a8d9f2
      50304da5
    • Varsha Kaverappa's avatar
      PDR/Sensor/Effecter for BMC owned LEDs · 06f34416
      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: default avatarVarsha Kaverappa <vkaverap@in.ibm.com>
      Change-Id: Idbe765eeeaf229838f721918da01a15d5391cab2
      06f34416
  16. May 04, 2021
    • Jayashankar Padath's avatar
      bios: Add/change bios attributes · cfff3e9c
      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: default avatarJayashankar Padath <jayashankar.padath@in.ibm.com>
      Change-Id: Iefda84ccbde29e1166acb8dabda07f408564cd3f
      cfff3e9c
  17. Apr 29, 2021
  18. Apr 27, 2021
  19. Apr 26, 2021
  20. Apr 22, 2021
    • Manojkiran Eda's avatar
      Replace deprecated get_pkgconfig_variable with get_variable · a1d27606
      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: default avatarManojkiran Eda <manojkiran.eda@gmail.com>
      Change-Id: I2da6f5fecc37e91eb927b2ebae9bd59de59d1b08
      a1d27606
  21. Apr 20, 2021
    • Patrick Williams's avatar
      build: add wrapfile for gtest/gmock · 70c7488f
      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: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I4aa1f6cdc97dc5db038950d81e551113463b1ffb
      70c7488f
    • Patrick Williams's avatar
      build: switch global_arguments to project_arguments · b62c4302
      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: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I360b6e03d37d6dfeab0085253992a443543e94a6
      b62c4302
    • Patrick Williams's avatar
      build: add symlink for pldm.h · 0883fb36
      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: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: Ie0a06803a2760de81b8ee250ff4c84b51914f520
      0883fb36
    • Patrick Williams's avatar
      build: add wrapfiles for dependencies · 3b1dc01d
      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: default avatarPatrick Williams <patrick@stwcx.xyz>
      Change-Id: I0f2f7eed98f7f7555cafefc2605e1031a7f0adaf
      3b1dc01d
Loading