All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Change categories:
- Added
- Changed
- Deprecated
- Removed
- Fixed
- Security
- transport: Add AF_MCTP fully qualified endpoint (FQE) mapping support
- Add
pldm_transport_af_mctp_map_tid_fqe()to map TID to network and EID - Add
pldm_transport_af_mctp_unmap_tid_fqe()to remove TID-to-FQE mappings
- Add
- entity: Added new entity types from DSP0249 v1.4.0
- stateset: Added new state sets from DSP0249 v1.4.0
- stateset: Added new enum pldm_state_set_presence_values from DSP0249 v1.4.0
- state-set: Added new enums from DSP0249 v1.4.0
- enum pldm_state_set_predictive_condition_values
- enum pldm_state_set_configuration_state_values
- enum pldm_state_set_changed_configuration_values
- enum pldm_state_set_version_values
- enum pldm_state_set_communication_leash_status_values
- enum pldm_state_set_acpi_power_state_values
- state-set: Added new values to the following enums
- enum pldm_state_set_availability_values
- enum pldm_state_set_boot_progress_state_values
- entity: Added new entity types for cases of misspelling
- platform: Added enum for Redfish Parallel Resource PDR
- bios: Added all possible values to enum pldm_bios_commands from DSP0247 v1.0.0
- fru: Added all possible values to enum pldm_fru_commands from DSP0257 v2.0.0
- dsp: firmware_update: Add Update Security Revision from DSP0267 v1.3.0
- include: Added header file for Redfish Device Enablement (DSP0218 v1.2.0)
- include: Added header file for SMBIOS Data Transfer (DSP0246 v1.0.1)
- bindings:
- Add libpldm++ library for the C++ binding
- dsp: platform: Add pldm_platform_file_class enum
- platform: Add functions to decode Redfish Resource PDR (DSP0248 v1.3.0)
- platform: Add functions to decode Redfish Action PDR (DSP0248 v1.3.0)
- dsp: platform: Iterator macros for State Effecter PDR
- base: Added PLDM Base MultipartSend support
-
libpldm++:
- pldm::fw_update::PackageParser::parse is stable
- pldm::fw_update::Package::~Package is stable
-
OWNERS: Tidy up throughout the tree
-
Rename
PLDM_HAS_POLLtest macro toHAVE_POLL_Hand define it unconditionally -
Rework ABI control macros to also enable API control
-
transport: Eliminate poll guards from headers
-
dsp: firmware_update: Stabilise Update Security Revision APIs
decode_pldm_fwup_update_security_revision_respencode_pldm_fwup_update_security_revision_req
-
transport: af-mctp: Stabilize FQE TID mapping APIs
pldm_transport_af_mctp_map_tid_fqe()pldm_transport_af_mctp_unmap_tid_fqe()
-
include: Use own "byteorder.h" file instead of <asm/byteorder.h>
-
include: Added definitions needed for Zephyr support:
- Endianness related:
HTOLE32,HTOLE16,LE32TOH,LE16TOH,__LITTLE_ENDIAN_BITFIELD,__BIG_ENDIAN_BITFIELD; - Missing definitions, such as
BUILD_ASSERT,EUCLEANandSSIZE_MAX; - Note that those should only affect Zephyr based builds.
- Endianness related:
-
libpldm: api: Don't diagnose implementation use of unstable features
- Misspelled PLDM_STATE_SET_BOOT_PROG_STATE_PCI_RESORUCE_CONFIG member of the pldm_state_set_boot_progress_state_values enum
- Misspelled PLDM_ENTITY_SOLID_STATE_SRIVE, PLDM_ENTITY_FIBRECHANEL, PLDM_ENTITY_OMINIPATH members of the pldm_entity_id_codes enum
-
PLDM_HAS_POLLandHAVE_POLL_Hconfiguration macrosThese are unnecessary now that build targets are enabled by header tests
-
pldm_base_ver2str()removed fromlibpldm/utils.h- users should includelibpldm/base.hinstead. -
libpldm/utils.h- users should include headers exposing the specific features they require instead.
bcd2dec16()bcd2dec32()bcd2dec8()dec2bcd16()dec2bcd32()dec2bcd8()ver2str()
- meson: Install byteorder.h header
- pdr: Fix NULL pointer dereference in
pldm_entity_association_tree_visit() - pdr: Fix infinite loop in
pldm_pdr_delete_by_effecter_id() - pdr: Fix infinite loop in
pldm_pdr_delete_by_sensor_id() - dsp: firmware_update: Fix str_type encoding in encode_get_firmware_parameters_resp()
- state-set: Return the misspelled PLDM_STATE_SET_BOOT_PROG_STATE_PCI_RESORUCE_CONFIG enum value to avoid client breakage
- abi: Refresh dumps to capture libpldm++ namespace rework
- libpldm: Fix spelling mistakes using codespell
- transport: af-mctp: Fix TID lookup with MCTP_NET_ANY
- platform: Added file descriptor PDR encoding support
- Added
encode_pldm_platform_file_descriptor_pdr()
- Added
- utils: Added
pldm_edac_crc32_extend() - base: Added
decode_pldm_base_negotiate_transfer_params_req() - base: Added
encode_pldm_base_negotiate_transfer_params_resp()
-
Reworked the firmware update package parsing APIs to track parse state using a run-time state machine
-
Add flags parameter to
decode_pldm_firmware_update_package() -
Add NOLINT to
pldm__package_header_informationto prevent clang-tidy errors. -
Updated PLDM_PDR_FILE_DESCRIPTOR_PDR_MIN_LENGTH macro comment.
-
Added PLDM_ACKNOWLEDGE_COMPLETION flag to transfer_resp_flag list.
-
Split EDAC symbols into libpldm/edac.h from libpldm/utils.h
-
Split BCD symbols into libpldm/bcd.h from libpldm/utils.h
-
Move
pldm_base_ver2str()to libpldm/base.h -
Move
struct variable_fielddefinition to libpldm/pldm_types.h
-
Rename symbols
encode_base_multipart_receive_req()toencode_pldm_base_multipart_receive_req()decode_base_multipart_receive_resp()todecode_pldm_base_multipart_receive_resp()struct pldm_multipart_receive_resptostruct pldm_base_multipart_receive_respstruct pldm_multipart_receive_reqtostruct pldm_base_multipart_receive_req
-
Remove
__attribute__((packed))fromstruct pldm_base_multipart_receive_req -
Let
payload_lengthbe an in/out buffer for:encode_pldm_base_multipart_receive_req()encode_pldm_base_negotiate_transfer_params_req()
- Let
payload_lengthbe an in/out buffer for:encode_pldm_file_df_open_req()encode_pldm_file_df_close_req()encode_pldm_file_df_heartbeat_req()
- Rename symbols
struct pldm_file_descriptor_pdrtostruct pldm_platform_file_descriptor_pdrdecode_pldm_file_descriptor_pdr()todecode_pldm_platform_file_descriptor_pdr()
decode_pldm_base_multipart_receive_resp()decode_pldm_base_negotiate_transfer_params_resp()decode_pldm_file_df_close_resp()decode_pldm_file_df_heartbeat_resp()decode_pldm_file_df_open_resp()decode_pldm_firmware_update_package()decode_pldm_package_component_image_information_from_iter()decode_pldm_package_downstream_device_id_record_from_iter()decode_pldm_package_firmware_device_id_record_from_iter()decode_pldm_platform_file_descriptor_pdr()encode_pldm_base_multipart_receive_req()encode_pldm_base_negotiate_transfer_params_req()encode_pldm_file_df_close_req()encode_pldm_file_df_heartbeat_req()encode_pldm_file_df_open_req()pldm_entity_association_pdr_remove_contained_entity()pldm_entity_association_tree_delete_node()pldm_package_component_image_information_iter_init()pldm_package_downstream_device_id_record_iter_init()pldm_package_firmware_device_id_record_iter_init()pldm_pdr_delete_by_effecter_id()pldm_pdr_delete_by_sensor_id()pldm_pdr_remove_fru_record_set_by_rsi()
- The following have been renamed:
bcd2dec8():pldm_bcd_bcd2dec8()dec2bcd8():pldm_bcd_dec2bcd8()bcd2dec16():pldm_bcd_bcd2dec16()dec2bcd16():pldm_bcd_dec2bcd16()bcd2dec32():pldm_bcd_bcd2dec32()dec2bcd32():pldm_bcd_dec2bcd32()ver2str():pldm_base_ver2str()
Deprecated since v0.13.0:
is_time_legal()is_transfer_flag_valid()
-
dsp: base: Don't extract MultipartReceive resp's CRC once complete
-
base: Allocating struct pldm_msg with member initialization in PLDM_MSG_DEFINE_P.
-
include, tests: Address concerns from -Wsign-compare
-
dsp: base: decode_pldm_base_negotiate_transfer_params_resp() is stable
-
transport: Improve time validation in pldm_transport_send_recv_msg()
-
base:
- Removed RequestedSectionOffset check in decode_multipart_receive_req()
- Updated DataTransferHandle check in decode_multipart_receive_req()
- Updated encode_base_multipart_receive_resp() to insert checksum except when TransferFlag is ACKNOWLEDGE_COMPLETION
-
msgbuf: Correct pldm_msgbuf_extract_effecter_data()'s child function
-
base: Add command specific completion codes.
-
firmware update: Add support for DSP0267 v1.2.0 by adding
component_opaque_datafields to correctly parse their contents. -
firmware_update: Add 1.3.0 version updates.
-
platform: Add SetStateSensorEnables and SetNumericSensorEnable responder decode.
-
firmware update: Add support for DSP0267 v1.3.0 by: Adding
reference_manifest_dataandpayload_checksumfields to correctly parse their contents. -
file: Add encode req & decode resp for DfOpen and DfClose command
-
base: Add encode resp for MultipartReceive command
- Stabilised
decode_get_event_receiver_resp() - Improved documentation of
struct pldm_package_format_pin - base: Allow PLDM File Transfer to use MultiPartReceive decode API
-
Previously deprecated symbols:
crc32(): Users must switch topldm_edac_crc32()crc8(): Users must switch topldm_edac_crc8()
-
base: Remove
PLDM_INVALID_TRANSFER_OPERATION_FLAGcompletion code
-
utils: Introduce
pldm_edac_crc32() -
utils: Introduce
pldm_edac_crc8() -
pdr: Add pldm_pdr_delete_by_effecter_id() API
-
platform: Add encode req for GetPDRRepositoryInfo
-
platform: Add encode req & decode resp for GetEventReceiver
-
pdr: Add pldm_pdr_delete_by_sensor_id() API
-
pdr: Add pldm_entity_association_tree_delete_node() API
-
base: Add decode_set_tid_req() API
-
oem: ibm: Add boot side rename state set and enum
This ID is used to notify the remote PLDM terminus about the boot side change that occurs during an out-of-band code update.
-
firmware update: Add encode/decode API for downstream device update command
-
base: Add
PLDM_ERROR_UNEXPECTED_TRANSFER_FLAG_OPERATIONcompletion code -
Introduce interator-based firmware update package parsing APIs
-
clang-format: update latest spec and reformat with clang-20
No functional change APIs; clang-format was unhappy with some whitespace in the headers.
-
pdr: Stabilize pldm_pdr_delete_by_record_handle()
-
fw_update: Return
PLDM_FWUP_INVALID_TRANSFER_OPERATION_FLAGinstead ofPLDM_INVALID_TRANSFER_OPERATION_FLAGinencode_pass_component_table_req()command. -
base: Return valid completion code from
decode_multipart_receive_req()As per the base specification
PLDM_INVALID_TRANSFER_OPERATION_FLAG(0x21) is inaccurate. Reduce the usage of it by returningPLDM_ERROR_UNEXPECTED_TRANSFER_FLAG_OPERATION(code 0x23) instead.
-
utils: Deprecate
is_time_legal() -
utils: Deprecate
is_transfer_flag_valid() -
utils: Deprecate
crc32()Users of
crc32()should move topldm_edac_crc32() -
utils: Deprecate
crc8()Users of
crc8()should move topldm_edac_crc8()
-
requester: Remove related deprecated APIs
Remove all of:
pldm_close()pldm_open()pldm_recv()pldm_recv_any()pldm_send()pldm_send_recv()
- meson: Define LIBPLDM_ABI_DEPRECATED_UNSAFE as empty as required
-
Add Firmware Device side firmware_update encode/decode functions
-
Add firmware update FD responder
-
Add PLDM control responder. PLDM types and support commands/versions can be registered.
-
PLDM FD responder accepts a PLDM control handle and will register its version.
-
base: Define the minimum request bytes for SetTID command.
-
pdr: Add pldm_pdr_delete_by_record_handle() API
-
Support for building the documentation with doxygen
-
base: Add encode req & decode resp for MultipartReceive
-
pdr: Add pldm_file_descriptor_pdr struct
-
platform: Add decode_pldm_file_descriptor_pdr() and decode_pldm_file_descriptor_pdr_names()
-
file: Add encode req & decode resp for DfOpen command.
-
file: Add encode req & decode resp for DfClose command.
-
file: Add encode req & decode resp for DfHeartbeat command.
-
oem: ibm: Modified the state set id for slot effecter and sensor
-
base: Add encode req & decode resp for NegotiateTransferParameters.
-
oem: ibm: Added enum PLDM_OEM_IBM_PANEL_TRIGGER_STATE to trigger panel related bitmap functions.
-
dsp: firmware_update: Expand "params" in symbol names
The change only affects structs and functions relating to ABIs that are marked as testing. There should be no impact on users of the stable APIs/ ABIs.
-
Reimplement parsing of the firmware update downstream device parameter table using an iterator macro
The change removes redundant APIs in the process.
-
Returned error values for the following stable APIs have changed their semantics:
decode_descriptor_type_length_value()decode_event_message_buffer_size_resp()decode_get_numeric_effecter_value_resp()decode_get_sensor_reading_resp()decode_get_state_sensor_readings_resp()decode_numeric_sensor_data()decode_sensor_op_data()
No new error values will be returned, but existing error values may be returned under new conditions.
-
pdr: Indicates success or failure depending on the outcome of the entity association PDR creation
-
Changed the bitfield structs in pldm_types.h to be named structs. This fixes an issue with the abi-dumper mistakenly seeing those as 1 byte wide when compiling with the C++ binding.
-
Register allocation changed for the following APIs:
encode_get_downstream_firmware_parameters_req()encode_get_state_effecter_states_resp()encode_oem_meta_file_io_read_resp()encode_query_downstream_identifiers_req()
- pdr: Remove PDR if the contained entity to be removed is the last one
- meson: sizes.h: add includedir to install path
- pdr: Create entity association PDRs with unique record handle
- requester: add null check for instance db object in pldm_instance_id_alloc()
- requester: add null check for instance db object in pldm_instance_id_free()
- dsp: firmware_update: Iterators for downstream device descriptors
- platform: add PLDM Command numbers
- base: add PLDM Command numbers
-
Register assignment for parameters of
encode_state_effecter_pdr() -
dsp: firmware_update: Iterators for downstream device descriptors
The prototype for
decode_query_downstream_identifiers_resp()was updated to improve ergonomics for the iterator APIs. -
meson: Specify OEM extensions in an array
include/libpldm/meson.buildis modified, but not in ways that are significant. -
Return
ENOENTrather thanENOKEYfrompldm_pdr_find_child_container_id_index_range_exclude() -
dsp: firmware_update: Change return type of downstream device ABIs to ERRNO
Those downstream device related ABIs have not been stabilized yet, change return type from PLDM Completion Code to ERRNO
-
dsp: firmware_update: pack decomposed parameters to struct
encode_query_downstream_identifiers_req()andencode_get_downstream_firmware_params_req()
- dsp: platform: Fix location of closing paren in overflow detection
- libpldm: Install api header, update changelog
-
oem: meta: Add decode_oem_meta_file_io_write_req()
-
oem: meta: Add decode_oem_meta_file_io_read_req()
-
oem: meta: Add encode_oem_meta_file_io_read_resp()
-
pdr: Add pldm_entity_association_pdr_remove_contained_entity()
-
pdr: Add pldm_pdr_remove_fru_record_set_by_rsi()
-
pldm_entity_association_tree_copy_root_check()
-
oem: ibm: Add topology related state set and enum
-
base: Add size and buffer macros for struct pldm_msg
Together these macros reduce the need for use of reinterpret_cast<>() in C++.
-
entity: Add new entity types from DSP0249 v1.3.0
-
stateset: Add new state sets from DSP0249 v1.3.0
-
dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
pldm_bios_table_iter_is_end() now returns true if the provided argument is NULL.
-
Register assignment for parameters of a number of APIs changed with increased scrutiny on their implementations.
decode_entity_auxiliary_names_pdr()decode_get_state_sensor_readings_resp()decode_oem_meta_file_io_req()decode_platform_event_message_req()decode_platform_event_message_resp()decode_sensor_op_data()encode_get_state_effecter_states_resp()encode_state_effecter_pdr()encode_state_sensor_pdr()pldm_bios_table_append_pad_checksum()pldm_bios_table_attr_value_entry_encode_enum()pldm_bios_table_attr_value_entry_encode_string()pldm_pdr_find_record()pldm_pdr_get_next_record()
-
platform: Support PLDM_CPER_EVENT in encode_platform_event_message_req()
-
dsp: firmware_update: Bounds check decode_downstream_device_parameter_table_entry_versions()
The additional bounds-checking required the addition of further length parameters.
-
oem: meta: Deprecate
decode_oem_meta_file_io_req()Users should switch to
decode_oem_meta_file_io_write_req(). Modify this function to make it safer.Modification:
- The meaning of the returned result.
- Change parameters from individual pointers to a struct.
- Check the length provided in the message won't exceed the buffer.
-
pldm_entity_association_tree_copy_root()
The implementation allocates, but gives no indication to the caller if an allocation (and hence the copy) has failed. Users should migrate to pldm_entity_association_tree_copy_root_check().
-
The following APIs are deprecated as unsafe due to various unfixable CWE violations:
-
CWE-129: Improper Validation of Array Index
encode_get_bios_current_value_by_handle_resp()encode_get_bios_table_resp()encode_get_file_table_resp()encode_get_version_resp()pldm_bios_table_attr_entry_enum_decode_def_indices()pldm_bios_table_attr_entry_enum_decode_def_num()pldm_bios_table_attr_find_by_handle()pldm_bios_table_attr_find_by_string_handle()pldm_bios_table_attr_value_find_by_handle()pldm_bios_table_iter_create()pldm_bios_table_iter_is_end()pldm_bios_table_string_find_by_handle()pldm_bios_table_string_find_by_string()
-
pldm_entity_association_tree_copy_root()
-
CWE-789: Memory Allocation with Excessive Size Value
decode_oem_meta_file_io_req()
-
CWE-823: Use of Out-of-range Pointer Offset
encode_fru_record()encode_get_pdr_resp()pldm_bios_table_attr_entry_enum_encode_length()
-
- Deprecated functions with the
_checksuffixget_fru_record_by_option_check()pldm_bios_table_append_pad_checksum_check()pldm_bios_table_attr_entry_enum_decode_def_num_check()pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()pldm_bios_table_attr_entry_enum_decode_pv_num_check()pldm_bios_table_attr_entry_enum_encode_check()pldm_bios_table_attr_entry_integer_encode_check()pldm_bios_table_attr_entry_string_decode_def_string_length_check()pldm_bios_table_attr_entry_string_encode_check()pldm_bios_table_attr_value_entry_encode_enum_check()pldm_bios_table_attr_value_entry_encode_integer_check()pldm_bios_table_attr_value_entry_encode_string_check()pldm_bios_table_string_entry_decode_string_check()pldm_bios_table_string_entry_encode_check()pldm_entity_association_pdr_add_check()pldm_entity_association_pdr_add_from_node_check()pldm_pdr_add_check()pldm_pdr_add_fru_record_set_check()
-
dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
Avoid a caller-controlled NULL pointer dereference in the library implementation.
-
platform: fix encode/decode_poll_for_platform_event_message_req
Update checking of
TransferOperationFlagandeventIDToAcknowledgeto follow spec. -
platform: Fix checking
eventIDToAcknowledgeAs the event receiver sends
PollForPlatformEventMessagewith thetranferFlagisAcknowledgementOnly, the valueeventIDToAcknowledgeshould be the previously retrieved eventID (from the PLDM terminus). -
dsp: platform: Prevent overflow of arithmetic on event_data_length
-
dsp: platform: Bounds check encode_sensor_state_pdr()
-
dsp: platform: Bounds check encode_state_effecter_pdr()
-
dsp: pdr: Bounds check pldm_entity_association_pdr_extract()
-
dsp: bios_table: Bounds check pldm_bios_table_append_pad_checksum()
-
dsp: bios_table: Bounds check pldm_bios_table_attr_value_entry_encode_string()
-
dsp: bios_table: Bounds check pldm_bios_table_attr_value_entry_encode_enum()
-
dsp: firmware_update: Bounds check decode_downstream_device_parameter_table_entry_versions()
-
oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req()
-
dsp: fru: Bounds check encode_get_fru_record_by_option_resp()
-
dsp: fru: Bounds check encode_fru_record()
-
dsp: bios: Bounds check encode_set_bios_table_req()
-
dsp: bios: Bounds check encode_set_bios_attribute_current_value_req()
-
dsp: bios_table: Bounds check pldm_bios_table_string_entry_encode()
-
dsp: pdr: Rework test in pldm_entity_association_pdr_extract()
-
dsp: platform: Fix decode_set_event_receiver_req()
-
Moved evolutions intended for v0.9.0 into place
Evolutions for the release have been moved from
evolutions/currenttoevolutions/v0.9.1. Library users can apply them to migrate off of deprecated APIs.
-
base: Define macros for reserved TIDs
-
pdr: Add pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
-
pdr: Add pldm_entity_association_pdr_create_new()
-
platform: Define macros for the responded transferflags
-
pdr: Add pldm_pdr_get_terminus_handle() API
-
pdr: Add related decode_entity_auxiliary_names_pdr() APIs
-
fw_update: Add encode req & decode resp for get_downstream_fw_params
-
platform: Add decode_pldm_platform_cper_event() API
-
decode_get_pdr_repository_info_resp_safe()
Replaces decode_get_pdr_repository_info_resp() as discussed in the
Deprecatedsection below -
decode_get_pdr_resp_safe()
Replaces decode_get_pdr_resp() as discussed in the
Deprecatedsection below
-
pdr: Stabilise related decode_entity_auxiliary_names_pdr() APIs
-
platform: Rework decode/encode_pldm_message_poll_event_data() APIs
-
platform: Stabilise decode_pldm_message_poll_event_data() APIs
-
ABI break for decode_sensor_op_data()
Applying LIBPLDM_CC_NONNULL to the internal msgbuf APIs caused abi-compliance-checker to flag a change in the register containing the parameter
previous_op_state. -
platform: Stabilise decode_pldm_platform_cper_event() API
-
oem: meta: Stabilise decode_oem_meta_file_io_write_req() API
-
oem: meta: Stabilise decode_oem_meta_file_io_read_req() API
-
oem: meta: Stabilise encode_oem_meta_file_io_read_resp() API
-
Rename and deprecate functions with the
_checksuffixAll library function return values always need to be checked. The
_checksuffix is redundant, so remove it. Migration to the non-deprecated equivalents without the_checksuffix can be performed usingscripts/ apply-renamesand the clang-rename configurations underevolutions/The deprecated functions:
get_fru_record_by_option_check()pldm_bios_table_append_pad_checksum_check()pldm_bios_table_attr_entry_enum_decode_def_num_check()pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()pldm_bios_table_attr_entry_enum_decode_pv_num_check()pldm_bios_table_attr_entry_enum_encode_check()pldm_bios_table_attr_entry_integer_encode_check()pldm_bios_table_attr_entry_string_decode_def_string_length_check()pldm_bios_table_attr_entry_string_encode_check()pldm_bios_table_attr_value_entry_encode_enum_check()pldm_bios_table_attr_value_entry_encode_integer_check()pldm_bios_table_attr_value_entry_encode_string_check()pldm_bios_table_string_entry_decode_string_check()pldm_bios_table_string_entry_encode_check()pldm_entity_association_pdr_add_check()pldm_entity_association_pdr_add_from_node_check()pldm_pdr_add_check()pldm_pdr_add_fru_record_set_check()
-
decode_get_pdr_repository_info_resp()Users should move to
decode_get_pdr_repository_info_resp_safe()which eliminates the opportunity for buffer overruns when extracting objects from the message. -
decode_get_pdr_resp()Users should move to
decode_get_pdr_resp_safe()which reduces the invocation tedium and improves memory safety overdecode_get_pdr_resp().
-
IBM OEM header compatibility symlinks.
Anyone left using the deprecated paths can migrate using the coccinelle patch at
evolutions/current/oem-ibm-header-compat.cocci.
- requester: instance-id: Release read lock on conflict
- pdr: Error propagation for pldm_entity_association_pdr_add_from_node_with_record_handle()
-
base: Provide pldm_msg_hdr_correlate_response()
-
transport: af-mctp: Add pldm_transport_af_mctp_bind()
-
oem: ibm: Add chapdata file type support
-
base: Added PLDM_SMBIOS & PLDM_RDE message types
-
oem: meta: Add decode_oem_meta_file_io_req()
-
state-set: Add all state set values to system power state enum as per DSP0249
-
platform: Add alias members to the enum pldm_pdr_repository_chg_event_change_record_event_data_operation.
enum constants with inconsistent names are deprecated with this change. remove old inconsistent enum members after backward compatibility cleanup is done
-
oem-ibm: Alias
pldm_oem_ibm_fru_field_typemembers asPLDM_OEM_IBM_* -
oem: ibm: Add Firmware Update Access Key(UAK) as a FRU field type
-
platform: Add 3 PDR type enum for Redfish Device Enablement per DSP0248_1.2.0
-
state_set: Add CONNECTED and DISCONNECTED enum for Link State set
-
entity: Add enum for Network Interface Connectors and Network Ports Connection Types
-
pdr: Add decode_numeric_effecter_pdr_data()
-
oem: ibm: Support for the Real SAI entity id
-
fw_update: Add encode req & decode resp for query_downstream_devices
-
fw_update: Add encode req & decode resp for query_downstream_identifiers
-
platform: Add support for GetStateEffecterStates command
- base: Stabilise pldm_msg_hdr_correlate_response()
- transport: af-mctp: Stabilise pldm_transport_af_mctp_bind()
- libpldm: Fix header use
- libpldm: More fixes for header use
- pdr: Stabilise pldm_pdr_find_last_in_range() API
- pdr: Stabilise pldm_entity_association_pdr_add_from_node_with_record_handle()
- oem: meta: stabilise decode_oem_meta_file_io_req()
- pdr: pldm_entity_association_tree_copy_root(): Document preconditions
- Deprecate
pldm_oem_ibm_fru_field_typemembers that that are not prefixed withPLDM_OEM_IBM_
- libpldm: Rationalise the local and installed path of pldm.h
- pdr: Assign record_handle in entity_association_pdr_add_children()
- msgbuf: Require sensor data enum in pldm_msgbuf_extract_sensor_value()
- pdr: Remove redundant constant for minimum numeric sensor PDR length
- tests: oem: meta: Fix fileio use of msgbuf
- state-set: Add new enum for Operational Fault Status enum
-
transport: Match specified metadata in pldm_transport_send_recv_msg()
-
transport: mctp-demux: Drop ABI annotation for internal symbols
-
transport: Stabilise core transport and implementation APIs
This stabilisation covers the following headers and functions:
-
libpldm/transport.h
- pldm_transport_poll()
- pldm_transport_send_msg()
- pldm_transport_recv_msg()
- pldm_transport_send_recv_msg()
-
libpldm/transport/af-mctp.h
- pldm_transport_af_mctp_init()
- pldm_transport_af_mctp_destroy()
- pldm_transport_af_mctp_core()
- pldm_transport_af_mctp_init_pollfd()
- pldm_transport_af_mctp_map_tid()
- pldm_transport_af_mctp_unmap_tid()
-
libpldm/transport/mctp-demux.h
- pldm_transport_mctp_demux_init()
- pldm_transport_mctp_demux_destroy()
- pldm_transport_mctp_demux_core()
- pldm_transport_mctp_demux_init_pollfd()
- pldm_transport_mctp_demux_map_tid()
- pldm_transport_mctp_demux_unmap_tid()
-
-
All the existing "requester" APIs from
libpldm/pldm.h(also known aslibpldm/requester/pldm.h):- pldm_open()
- pldm_send_recv()
- pldm_send()
- pldm_recv()
- pldm_recv_any()
- pldm_close()
Users should migrate to the newer "transport" APIs instead.
- tests: Exclude transport tests when build excludes testing ABIs
- abi: Capture deprecation of pldm_close()
- pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity()
- meson: Apply
b_ndebug=if-releaseby default - pdr : Stabilize pldm_entity_association_tree_add_entity()
- pdr: Stabilise pldm_entity_association_tree_find_with_locality()
- pdr: Stabilize pldm_entity_node_get_remote_container_id()
- transport: af-mctp: Assign out-params on success in *_recv()
- transport: Generalise the pldm_transport_recv_msg() API
- pdr: Remove pldm_entity_association_pdr_add()
- state-set: Remove enum pldm_state_set_operational_fault_status_values
- transport: register init_pollfd callback for af-mctp
- transport: fix init_pollfd function parameter
- transport: Fix doxygen and variables for send and recv functions
- transport: af-mctp: Ensure malloc() succeeds in *_recv()
- pdr: Introduce pldm_entity_association_pdr_add_check()
- pdr: Allow record_handle to be NULL for pldm_pdr_add_check()
- transport: pldm_transport_poll(): Adjust return value semantics
- transport: free un-wanted responses in pldm_transport_send_recv_msg()
-
state-set: Enum pldm_state_set_operational_fault_status_values
The enum operational_fault_status is defined with wrong members and will eventually be replaced with the correct members. Any uses of pldm_state_set_operational_fault_status_values members should move to equivalent pldm_state_set_operational_stress_status_values members if needed.
-
platform: Struct field name in fru_record_set PDR
References to entity_instance_num should be changed to entity_instance
-
platform: Struct field name in numeric sensor value PDR
References to entity_instance_num should be changed to entity_instance
- bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_string()
- bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer()
- bios_table: Remove pldm_bios_table_append_pad_checksum()
- fru: Remove get_fru_record_by_option()
- pdr: Make is_present() static
- pdr: Remove pldm_pdr_add()
- pdr: Remove pldm_pdr_add_fru_record_set()
- pdr: Remove pldm_entity_association_pdr_add_from_node()
- pdr: Make find_entity_ref_in_tree() static
- pdr: Make entity_association_tree_find() static
- requester: Fix response buffer cast in pldm_send_recv()
- pdr: Hoist record handle overflow test to avoid memory leak
- transport: Correct comparison in while loop condition
- bios_table: Introduce pldm_bios_table_append_pad_checksum_check()
- fru: Introduce get_fru_record_by_option_check()
- pdr: Introduce pldm_entity_association_pdr_add_from_node_check()
- pdr: Introduce pldm_pdr_add_check()
- pdr: Introduce pldm_pdr_add_fru_record_set_check()
-
requester: Mark pldm_close() as LIBPLDM_ABI_TESTING
-
requester: Expose pldm_close() in header
-
bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow
-
bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc
-
bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration
-
pdr: pldm_pdr_init(): Return NULL on allocation failure
-
pdr: pldm_pdr_destroy(): Exit early if repo is NULL
-
pdr: Document preconditions for trivial accessor functions
A trivial accessor function is one that exposes properties of an object in a way can't result in an error, beyond passing an invalid argument to the function. For APIs meeting this definition we define a precondition that struct pointers must point to valid objects to avoid polluting the function prototypes. The following APIs now have this precondition explicitly defined:
- pldm_entity_extract()
- pldm_entity_get_parent()
- pldm_entity_is_exist_parent()
- pldm_entity_is_node_parent()
- pldm_is_current_parent_child
- pldm_is_empty_entity_assoc_tree()
- pldm_pdr_get_record_count()
- pldm_pdr_get_record_handle()
- pldm_pdr_get_repo_size()
- pldm_pdr_record_is_remote()
-
pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor
-
pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments
-
pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc
-
pdr: pldm_entity_association_tree_visit(): Document preconditions
-
pdr: pldm_entity_association_tree_visit(): Exit early on failure
-
pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument
-
pdr: pldm_entity_get_num_children(): Return zero for invalid arguments
-
pdr: pldm_is_current_parent_child(): Return false for invalid arguments
-
pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments
-
pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments
-
pdr: pldm_entity_association_tree_find(): Early exit on bad arguments
-
pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg
-
pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments
-
pdr: pldm_entity_association_pdr_extract(): Assign out params at exit
-
pdr: pldm_entity_get_num_children(): Don't return invalid values
-
libpldm: Lift or remove asserts where a subsequent check exists
-
pldm_bios_table_attr_entry_integer_encode()
Migrate to pldm_bios_table_attr_entry_integer_encode_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum()
Migrate to pldm_bios_table_attr_value_entry_encode_enum_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string()
Migrate to pldm_bios_table_attr_value_entry_encode_string_check()
-
bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer()
Migrate to pldm_bios_table_attr_value_entry_encode_integer_check()
-
pdr: Deprecate is_present()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
pdr: Deprecate find_entity_ref_in_tree()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
pdr: Deprecate entity_association_tree_find()
There should be no users of this symbol. If you are a user, you should figure out how to stop, or get in touch. This symbol will be marked static the release after deprecation.
-
bios_table: Stabilise pldm_bios_table_append_pad_checksum_check()
pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of pldm_bios_table_append_pad_checksum() should migrate to pldm_bios_table_append_pad_checksum_check()
-
fru: Stabilise get_fru_record_by_option_check()
get_fru_record_by_option() is deprecated by this change. Users of get_fru_record_by_option() should migrate to get_fru_record_by_option_check()
-
pdr: Stabilise pldm_entity_association_pdr_add_from_node_check()
pldm_entity_association_pdr_add_from_node() is deprecated by this change. Users of pldm_entity_association_pdr_add_from_node() should migrate to pldm_entity_association_pdr_add_from_node_check()
-
pdr: Stabilise pldm_pdr_add_check()
pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should migrate to pldm_pdr_add_check()
-
pdr: Stabilise pldm_pdr_add_fru_record_set_check()
pldm_pdr_add_fru_record_set() is deprecated by this change. Users of pldm_pdr_add_fru_record_set() should migrate to pldm_pdr_add_fru_record_set_check()
- bios_table: Remove deprecated APIs sanitized by assert():
- pldm_bios_table_string_entry_encode()
- pldm_bios_table_string_entry_decode_string()
- pldm_bios_table_attr_entry_enum_encode()
- pldm_bios_table_attr_entry_enum_decode_pv_num()
- pldm_bios_table_attr_entry_enum_decode_def_num()
- pldm_bios_table_attr_entry_enum_decode_pv_hdls()
- pldm_bios_table_attr_entry_string_encode()
- pldm_bios_table_attr_entry_string_decode_def_string_length()
- pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API
- pdr: Rework pldm_pdr_find_container_id_range_exclude() API
- transport: mctp-demux: Don't test socket for non-zero value
- requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error
- pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return
- transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
- abi: Update to remove pldm_close() from reference dumps
- bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer()
- Add encode/decode pldmMessagePollEvent data
- README: Add a section on working with libpldm
- pdr: Introduce remote_container_id and associated APIs
- pdr: Add APIs for creating and locating remote PDRs
- pdr: Add pldm_pdr_find_last_in_range()
- pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle()
- pdr: Add pldm_pdr_find_container_id_range_exclude()
-
include: Move installed transport.h under libpldm/
-
libpldm: Explicit deprecated, stable and testing ABI classes
-
meson: Reduce strength of oem-ibm requirements from enabled to allowed
The
oem-ibmfeature is now enabled by the default meson configuration, for CI purposes.oem-ibmis still disabled by default in thelibpldmbitbake recipe:To disable
oem-ibmin your development builds, pass-Doem-ibm=disabledwhen invokingmeson setup -
bios_table: Relax pldm_bios_table_string_entry_decode_string_check()
-
bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()
-
bios_table: Deprecate APIs with arguments sanitized using assert()
C provides enough foot-guns without us encoding them into library APIs. Specifically, deprecate the following in favour of their
*_check()variants which ensure assertions won't fail or otherwise invoke UB:- pldm_bios_table_string_entry_encode()
- pldm_bios_table_string_entry_decode_string()
- pldm_bios_table_attr_entry_enum_encode()
- pldm_bios_table_attr_entry_enum_decode_pv_num()
- pldm_bios_table_attr_entry_enum_decode_def_num()
- pldm_bios_table_attr_entry_enum_decode_pv_hdls()
- pldm_bios_table_attr_entry_string_encode()
- pldm_bios_table_attr_entry_string_decode_def_string_length()
- libpldm: Remove the requester-api option
- requester: Make pldm_open() return existing fd
- transport: Prevent sticking in waiting for response
- transport: Match on response in pldm_transport_send_recv_msg()
- requester: Add check before accessing hdr in pldm_recv()
- bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref