ibm-openbmc / dev

Product Development Project Mgmt and Tracking
16 stars 2 forks source link

PLDM: Handle FRU records from host #2815

Open tomjoseph83 opened 3 years ago

tomjoseph83 commented 3 years ago

Implement the requester flow for FRURecordTableMetadata & GetFRURecordTable and provide the information needed to create the D-Bus objects. This requester flow will be triggered when the FRU record set PDR from host is exchanged as PDR exchange. PLDM FRU specification speaks about General FRU Record and OEM FRU record. This story focuses only on the IBM OEM FRU record which has the Location Code info. Location code is used to populate the com.ibm.ipzvpd.Location D-Bus interface for the corresponding FRU. The APIs provided by this story will be consumed while processing the FRU record set PDR from the host and to create the inventory D-Bus objects.

Related to #2817

       {
            "FRU Field Type": "Location Code(254)",
            "FRU Field Length": 24,
            "FRU Field Value": "U78DA.ND1.WZS0047-P0-C23"
        }
com.ibm.ipzvpd.Location                       interface -         -                                        -
.LocationCode                                 property  s         "U78DA.ND1.WZS0047-P0-C23"               emits-change writable
lxwinspur commented 3 years ago

review by: https://gerrit.openbmc-project.xyz/c/openbmc/pldm/+/39588