mbox series

[00/14] Complete PLDM responder and enable PLDM support

Message ID 20220419134633.42098-1-clombard@linux.vnet.ibm.com
Headers show
Series Complete PLDM responder and enable PLDM support | expand

Message

Christophe Lombard April 19, 2022, 1:46 p.m. UTC
This set of patches allows to complete platform responder to handle
platform events (set events, event messages, state sensors reading, state
effecters) and fru messages from the BMC.
Specific astbmc features (watchdog timer, Real Time Clock, Opal IPMI
calls) are also supported.

To enable the new PLDM features, add CONFIG_PLDM as a parameter:
  make .... CONFIG_PLDM=1

This patch set should be applied on top of these previous sets:
- Implement virtual flash content using PLDM.
- Import external libraries for MCTP/PLDM protocols.
- Implement MCTP and PLDM features.

Christophe Lombard (14):
  core/pldm: Handle Watchdog timer.
  core/pldm: Decode the SetEventReceiver request
  core/pldm: Decode the PlatformEventMessage request
  core/pldm: Decode the GetStateSensorReadings request
  core/pldm: Decode the SetStateEffecterStates request
  core/pldm: Find PDR record by record handle
  core/pldm: Encode PLDM PDR Repository Change eventData
  core/pldm: Update or create terminus locator in the given repo
  core/pldm: Decode the GetPDR request
  core/pldm: Decode the GetFRURecordTableMetadata request
  core/pldm: Decode the GetFruRecordTable request
  core/pldm: Register OPAL_RTC_READ/WRITE calls back
  core/pldm: Register OPAL_IPMI_SEND/RECV calls back
  platforms/astbmc: Enable PLDM support

 core/init.c                        |   5 +
 core/pldm/Makefile.inc             |   3 +
 core/pldm/pldm-bios-requests.c     | 133 ++++++
 core/pldm/pldm-common.c            |  10 +
 core/pldm/pldm-fru-requests.c      |  65 +++
 core/pldm/pldm-opal.c              | 142 ++++++
 core/pldm/pldm-platform-requests.c | 257 +++++++++++
 core/pldm/pldm-responder.c         | 679 +++++++++++++++++++++++++++++
 core/pldm/pldm-rtc.c               |  75 ++++
 core/pldm/pldm-watchdog.c          | 125 ++++++
 core/pldm/pldm.h                   |  15 +-
 include/pldm.h                     |  22 +
 platforms/astbmc/astbmc.h          |   4 +
 platforms/astbmc/common.c          |  42 ++
 platforms/astbmc/pnor.c            |  25 ++
 platforms/astbmc/rainier.c         |  33 +-
 16 files changed, 1630 insertions(+), 5 deletions(-)
 create mode 100644 core/pldm/pldm-opal.c
 create mode 100644 core/pldm/pldm-rtc.c
 create mode 100644 core/pldm/pldm-watchdog.c