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

Christophe Lombard clombard at linux.ibm.com
Tue Aug 29 19:23:54 AEST 2023


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[v6]
 - Rebase to latest upstream.
 - patch14: - Add new comment.

Changelog[v5]
 - Rebase to latest upstream.
 - patch1 : - Change trace type.
 - patch8 : - Rename add_states_sensor_pdr.
            - Rename global paramter state_sensor_id.
            - Add new api add_sensor_sw_term_pdr().
            - Add new api add_state_effecter_pdr().
 - patch12: - Ann new api find_sensor_id_by_state_set_Id().
 
Changelog[v4]
 - Rebase to latest upstream.
 - patch1 : - Add a poller to regular send heartbeats.
 - patch2 : - Update debug message.
 - patch3 : - Do not poll when we respond to a BMC request.
 - patch4 : - Do not poll when we respond to a BMC request.
 - patch5 : - Handle all state effecters.
 - patch6 : - Find record only if available.
 - patch8 : - Remove global values.
 - patch9 : - Do not poll when we respond to a BMC request.
 - patch10: - Rename pldm_fru_add_record().
            - Do not poll when we respond to a BMC request.
 - patch11: - Do not poll when we respond to a BMC request.
 - patch13: - Change returned value.
 - patch15: - Do not call ipmi in case of pldm failure.

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: Create boot progress and 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                        |  16 +-
 core/pldm/Makefile.inc             |   1 +
 core/pldm/pldm-fru-requests.c      |  70 +++
 core/pldm/pldm-opal.c              | 298 ++++++++++++
 core/pldm/pldm-platform-requests.c | 749 +++++++++++++++++++++++++++++
 core/pldm/pldm-responder.c         | 710 ++++++++++++++++++++++++++-
 core/pldm/pldm-rtc.c               | 260 ++++++++++
 core/pldm/pldm-watchdog.c          | 142 ++++++
 core/pldm/pldm.h                   |  28 ++
 include/pldm.h                     |  27 ++
 platforms/astbmc/astbmc.h          |   4 +
 platforms/astbmc/common.c          |  34 ++
 platforms/astbmc/pnor.c            |  25 +
 platforms/qemu/qemu.c              |   6 +
 14 files changed, 2368 insertions(+), 2 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.41.0



More information about the Skiboot mailing list