[Skiboot] [PATCH V3 00/15] Complete PLDM responder and enable PLDM support

Christophe Lombard clombard at linux.vnet.ibm.com
Tue Sep 13 20:27:09 AEST 2022


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.

Changelog[v3]
 - Rebase to latest upstream.
 - patch1 : - Use new pldm requests queue handler.
 - patch13: - Use new pldm requests queue handler.
 - patch14: - Use new pldm requests queue handler.
            - Handle GET_DEVICE_ID_CMD and GET_DEVICE_GUID_CMD.
 - patch15: - Remove Rainier System part.

Changelog[v2]
 - Rebase to latest upstream.
 - patch1 : - Update some comments.
            - Decrement sequence_number in case of issue.
 - patch2 : - Invoke the appropriate callback handler.
 - patch5 : - occ reset for default chip.
 - patch7 : - Update some comments.
 - patch8 : - Rework adding hosted PDRs.
            - Add boot progress PDR.
 - patch9 : - Add free buffer.
 - patch11: - Add free buffer.
 - patch12: - Add sensor state changed event.
 - patch15: - Add boot progress change.

Christophe Lombard (15):
  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: Update boot progress state
  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                        |  29 +-
 core/pldm/Makefile.inc             |   3 +
 core/pldm/pldm-fru-requests.c      |  65 +++
 core/pldm/pldm-mctp.c              |  11 +
 core/pldm/pldm-opal.c              | 291 ++++++++++++
 core/pldm/pldm-platform-requests.c | 499 ++++++++++++++++++++
 core/pldm/pldm-responder.c         | 710 ++++++++++++++++++++++++++++-
 core/pldm/pldm-rtc.c               | 244 ++++++++++
 core/pldm/pldm-watchdog.c          | 134 ++++++
 core/pldm/pldm.h                   |  28 ++
 include/pldm.h                     |  24 +
 platforms/astbmc/astbmc.h          |   4 +
 platforms/astbmc/common.c          |  35 ++
 platforms/astbmc/pnor.c            |  25 +
 platforms/qemu/qemu.c              |   6 +
 15 files changed, 2104 insertions(+), 4 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

-- 
2.37.3



More information about the Skiboot mailing list