xref: /openbmc/libpldm/CHANGELOG.md (revision cc6f6434b70fc0ffc272db7ee156ff709bb160ee)
16fd81a51SAndrew Jeffery# Changelog
26fd81a51SAndrew Jeffery
36fd81a51SAndrew JefferyAll notable changes to this project will be documented in this file.
46fd81a51SAndrew Jeffery
56fd81a51SAndrew JefferyThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66fd81a51SAndrew Jefferyand this project adheres to
76fd81a51SAndrew Jeffery[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
86fd81a51SAndrew Jeffery
96fd81a51SAndrew JefferyChange categories:
106fd81a51SAndrew Jeffery
116fd81a51SAndrew Jeffery- Added
126fd81a51SAndrew Jeffery- Changed
136fd81a51SAndrew Jeffery- Deprecated
146fd81a51SAndrew Jeffery- Removed
156fd81a51SAndrew Jeffery- Fixed
166fd81a51SAndrew Jeffery- Security
176fd81a51SAndrew Jeffery
181be1d5eaSAndrew Jeffery## [Unreleased]
191be1d5eaSAndrew Jeffery
200612d988SAndrew Jeffery## [0.11.0] 2024-12-12
210612d988SAndrew Jeffery
22309a5cdeSAndrew Jeffery### Added
23309a5cdeSAndrew Jeffery
24309a5cdeSAndrew Jeffery1. dsp: firmware_update: Iterators for downstream device descriptors
2530b25645SThu Nguyen2. platform: add PLDM Command numbers
2635b72d95SThu Nguyen3. base: add PLDM Command numbers
27309a5cdeSAndrew Jeffery
281be1d5eaSAndrew Jeffery### Changed
291be1d5eaSAndrew Jeffery
301be1d5eaSAndrew Jeffery1. Register assignment for parameters of `encode_state_effecter_pdr()`
311be1d5eaSAndrew Jeffery
32309a5cdeSAndrew Jeffery2. dsp: firmware_update: Iterators for downstream device descriptors
33309a5cdeSAndrew Jeffery
34309a5cdeSAndrew Jeffery   The prototype for `decode_query_downstream_identifiers_resp()` was updated to
35309a5cdeSAndrew Jeffery   improve ergonomics for the iterator APIs.
36309a5cdeSAndrew Jeffery
37fef24ed6SAndrew Jeffery3. meson: Specify OEM extensions in an array
38fef24ed6SAndrew Jeffery
39fef24ed6SAndrew Jeffery   `include/libpldm/meson.build` is modified, but not in ways that are
40fef24ed6SAndrew Jeffery   significant.
41fef24ed6SAndrew Jeffery
42ae05d5e5SMatt Johnston4. Return `ENOENT` rather than `ENOKEY` from
43ae05d5e5SMatt Johnston   `pldm_pdr_find_child_container_id_index_range_exclude()`
44ae05d5e5SMatt Johnston
4571e935cfSUnive Tien5. dsp: firmware_update: Change return type of downstream device ABIs to ERRNO
4671e935cfSUnive Tien
4771e935cfSUnive Tien   Those downstream device related ABIs have not been stabilized yet, change
4871e935cfSUnive Tien   return type from PLDM Completion Code to ERRNO
4971e935cfSUnive Tien
50d2f8a7e3SUnive Tien6. dsp: firmware_update: pack decomposed parameters to struct
51d2f8a7e3SUnive Tien
52d2f8a7e3SUnive Tien   `encode_query_downstream_identifiers_req()` and
53d2f8a7e3SUnive Tien   `encode_get_downstream_firmware_params_req()`
54d2f8a7e3SUnive Tien
556a97b79eSAndrew Jeffery7. dsp: firmware_update: Expand "params" in symbol names
566a97b79eSAndrew Jeffery
576a97b79eSAndrew Jeffery   The change only affects structs and functions relating to ABIs that are
586a97b79eSAndrew Jeffery   marked as testing. There should be no impact on users of the stable APIs/
596a97b79eSAndrew Jeffery   ABIs.
606a97b79eSAndrew Jeffery
615a5129b0SAndrew Jeffery8. Reimplement parsing of the firmware update downstream device parameter table
625a5129b0SAndrew Jeffery   using an iterator macro
635a5129b0SAndrew Jeffery
645a5129b0SAndrew Jeffery   The change removes redundant APIs in the process.
655a5129b0SAndrew Jeffery
66cf9a2df3SMatt Johnston9. Add Firmware Device side firmware_update encode/decode functions
67cf9a2df3SMatt Johnston
688c2bfb14SMatt Johnston10. Add firmware update FD responder
698c2bfb14SMatt Johnston
70bde874e9SMatt Johnston11. Add PLDM control responder. PLDM types and support commands/versions can be
71bde874e9SMatt Johnston    registered.
72bde874e9SMatt Johnston
73*cc6f6434SMatt Johnston12. PLDM FD responder accepts a PLDM control handle and will register its
74*cc6f6434SMatt Johnston    version.
75*cc6f6434SMatt Johnston
761be1d5eaSAndrew Jeffery### Fixed
771be1d5eaSAndrew Jeffery
781be1d5eaSAndrew Jeffery1. dsp: platform: Fix location of closing paren in overflow detection
79309a5cdeSAndrew Jeffery2. libpldm: Install api header, update changelog
8094e2d754SArchana Kakani3. pdr: Remove PDR if the contained entity to be removed is the last one
811be1d5eaSAndrew Jeffery
825d8e30ccSAndrew Jeffery## [0.10.0] 2024-11-01
83ff2f4214SAndrew Jeffery
840f5be28fSLora Lin### Added
850f5be28fSLora Lin
860f5be28fSLora Lin1. oem: meta: Add decode_oem_meta_file_io_write_req()
87893a08f0SLora Lin2. oem: meta: Add decode_oem_meta_file_io_read_req()
886476c968SLora Lin3. oem: meta: Add encode_oem_meta_file_io_read_resp()
89b31e4c6cSVarsha Kaverappa4. pdr: Add pldm_entity_association_pdr_remove_contained_entity()
908b53ad9dSVarsha Kaverappa5. pdr: Add pldm_pdr_remove_fru_record_set_by_rsi()
9160582150SAndrew Jeffery6. pldm_entity_association_tree_copy_root_check()
923f877481SPavithra Barithaya7. oem: ibm: Add topology related state set and enum
930f5be28fSLora Lin
94387b10f6SThu Nguyen8. base: Add size and buffer macros for struct pldm_msg
957a3c14ecSAndrew Jeffery
967a3c14ecSAndrew Jeffery   Together these macros reduce the need for use of reinterpret_cast<>() in C++.
977a3c14ecSAndrew Jeffery
98654eb966SManojkiran Eda9. entity: Add new entity types from DSP0249 v1.3.0
998e23fd04SManojkiran Eda10. stateset: Add new state sets from DSP0249 v1.3.0
100654eb966SManojkiran Eda
1013b5ab929SAndrew Jeffery### Changed
1023b5ab929SAndrew Jeffery
1033b5ab929SAndrew Jeffery1. dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
1043b5ab929SAndrew Jeffery
1053b5ab929SAndrew Jeffery   pldm_bios_table_iter_is_end() now returns true if the provided argument is
1063b5ab929SAndrew Jeffery   NULL.
1073b5ab929SAndrew Jeffery
1084f60fb77SAndrew Jeffery2. Register assignment for parameters of a number of APIs changed with increased
1094f60fb77SAndrew Jeffery   scrutiny on their implementations.
110830c1eb4SAndrew Jeffery
111830c1eb4SAndrew Jeffery   - `decode_entity_auxiliary_names_pdr()`
112830c1eb4SAndrew Jeffery   - `decode_get_state_sensor_readings_resp()`
11336324f6bSAndrew Jeffery   - `decode_oem_meta_file_io_req()`
114830c1eb4SAndrew Jeffery   - `decode_platform_event_message_req()`
115830c1eb4SAndrew Jeffery   - `decode_platform_event_message_resp()`
116830c1eb4SAndrew Jeffery   - `decode_sensor_op_data()`
117830c1eb4SAndrew Jeffery   - `encode_get_state_effecter_states_resp()`
118ad33b99aSAndrew Jeffery   - `encode_state_effecter_pdr()`
119bb50a590SAndrew Jeffery   - `encode_state_sensor_pdr()`
120d610b00eSAndrew Jeffery   - `pldm_bios_table_append_pad_checksum()`
12192967bedSAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_enum()`
122d96d21f4SAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_string()`
1234f60fb77SAndrew Jeffery   - `pldm_pdr_find_record()`
1244f60fb77SAndrew Jeffery   - `pldm_pdr_get_next_record()`
1254f60fb77SAndrew Jeffery
1264f60fb77SAndrew Jeffery3. platform: Support PLDM_CPER_EVENT in encode_platform_event_message_req()
127830c1eb4SAndrew Jeffery
128a9892499SAndrew Jeffery4. dsp: firmware_update: Bounds check
129a9892499SAndrew Jeffery   decode_downstream_device_parameter_table_entry_versions()
130a9892499SAndrew Jeffery
131a9892499SAndrew Jeffery   The additional bounds-checking required the addition of further length
132a9892499SAndrew Jeffery   parameters.
133a9892499SAndrew Jeffery
1340f5be28fSLora Lin### Deprecated
1350f5be28fSLora Lin
1360f5be28fSLora Lin1. oem: meta: Deprecate `decode_oem_meta_file_io_req()`
1370f5be28fSLora Lin
1380f5be28fSLora Lin   Users should switch to `decode_oem_meta_file_io_write_req()`. Modify this
1390f5be28fSLora Lin   function to make it safer.
1400f5be28fSLora Lin
1410f5be28fSLora Lin   Modification:
1420f5be28fSLora Lin
1430f5be28fSLora Lin   - The meaning of the returned result.
1440f5be28fSLora Lin   - Change parameters from individual pointers to a struct.
1450f5be28fSLora Lin   - Check the length provided in the message won't exceed the buffer.
1460f5be28fSLora Lin
14760582150SAndrew Jeffery2. pldm_entity_association_tree_copy_root()
14860582150SAndrew Jeffery
14960582150SAndrew Jeffery   The implementation allocates, but gives no indication to the caller if an
15060582150SAndrew Jeffery   allocation (and hence the copy) has failed. Users should migrate to
15160582150SAndrew Jeffery   pldm_entity_association_tree_copy_root_check().
15260582150SAndrew Jeffery
15336324f6bSAndrew Jeffery3. The following APIs are deprecated as unsafe due to various unfixable CWE
15436324f6bSAndrew Jeffery   violations:
15536324f6bSAndrew Jeffery
15636324f6bSAndrew Jeffery   - [CWE-129: Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)
15736324f6bSAndrew Jeffery
15836324f6bSAndrew Jeffery     - `encode_get_bios_current_value_by_handle_resp()`
15936324f6bSAndrew Jeffery     - `encode_get_bios_table_resp()`
16036324f6bSAndrew Jeffery     - `encode_get_file_table_resp()`
16136324f6bSAndrew Jeffery     - `encode_get_version_resp()`
16236324f6bSAndrew Jeffery     - `pldm_bios_table_attr_entry_enum_decode_def_indices()`
16336324f6bSAndrew Jeffery     - `pldm_bios_table_attr_entry_enum_decode_def_num()`
16436324f6bSAndrew Jeffery     - `pldm_bios_table_attr_find_by_handle()`
16536324f6bSAndrew Jeffery     - `pldm_bios_table_attr_find_by_string_handle()`
16636324f6bSAndrew Jeffery     - `pldm_bios_table_attr_value_find_by_handle()`
16736324f6bSAndrew Jeffery     - `pldm_bios_table_iter_create()`
16836324f6bSAndrew Jeffery     - `pldm_bios_table_iter_is_end()`
16936324f6bSAndrew Jeffery     - `pldm_bios_table_string_find_by_handle()`
17036324f6bSAndrew Jeffery     - `pldm_bios_table_string_find_by_string()`
17136324f6bSAndrew Jeffery
17236324f6bSAndrew Jeffery   - [CWE-617: Reachable Assertion](https://cwe.mitre.org/data/definitions/617.html)
17336324f6bSAndrew Jeffery
17436324f6bSAndrew Jeffery     - `pldm_entity_association_tree_copy_root()`
17536324f6bSAndrew Jeffery
17636324f6bSAndrew Jeffery   - [CWE-789: Memory Allocation with Excessive Size Value](https://cwe.mitre.org/data/definitions/789.html)
17736324f6bSAndrew Jeffery
17836324f6bSAndrew Jeffery     - `decode_oem_meta_file_io_req()`
17936324f6bSAndrew Jeffery
18036324f6bSAndrew Jeffery   - [CWE-823: Use of Out-of-range Pointer Offset](https://cwe.mitre.org/data/definitions/823.html)
18136324f6bSAndrew Jeffery     - `encode_fru_record()`
18236324f6bSAndrew Jeffery     - `encode_get_pdr_resp()`
18336324f6bSAndrew Jeffery     - `pldm_bios_table_attr_entry_enum_encode_length()`
18436324f6bSAndrew Jeffery
185ff2f4214SAndrew Jeffery### Removed
186ff2f4214SAndrew Jeffery
187eb9df78bSAndrew Jeffery1. Deprecated functions with the `_check` suffix
188eb9df78bSAndrew Jeffery
1894e672656SAndrew Jeffery   - `get_fru_record_by_option_check()`
190eb9df78bSAndrew Jeffery   - `pldm_bios_table_append_pad_checksum_check()`
191eb9df78bSAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_def_num_check()`
19207fdf2d8SAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()`
19303aa3d6cSAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_pv_num_check()`
19483a208afSAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_encode_check()`
195f5c63dfdSAndrew Jeffery   - `pldm_bios_table_attr_entry_integer_encode_check()`
1964d8634d7SAndrew Jeffery   - `pldm_bios_table_attr_entry_string_decode_def_string_length_check()`
1975f288563SAndrew Jeffery   - `pldm_bios_table_attr_entry_string_encode_check()`
1982170655aSAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_enum_check()`
1995a8b7c54SAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_integer_check()`
200de926829SAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_string_check()`
2011085e232SAndrew Jeffery   - `pldm_bios_table_string_entry_decode_string_check()`
202c79375dfSAndrew Jeffery   - `pldm_bios_table_string_entry_encode_check()`
20338004f7aSAndrew Jeffery   - `pldm_entity_association_pdr_add_check()`
20473a2f66eSAndrew Jeffery   - `pldm_entity_association_pdr_add_from_node_check()`
205f309c48dSAndrew Jeffery   - `pldm_pdr_add_check()`
206453dfff3SAndrew Jeffery   - `pldm_pdr_add_fru_record_set_check()`
207ff2f4214SAndrew Jeffery
2083b5ab929SAndrew Jeffery### Fixed
2093b5ab929SAndrew Jeffery
2103b5ab929SAndrew Jeffery1. dsp: bios_table: Null check for pldm_bios_table_iter_is_end()
2113b5ab929SAndrew Jeffery
2123b5ab929SAndrew Jeffery   Avoid a caller-controlled NULL pointer dereference in the library
2133b5ab929SAndrew Jeffery   implementation.
2143b5ab929SAndrew Jeffery
215387b10f6SThu Nguyen2. platform: fix encode/decode_poll_for_platform_event_message_req
216387b10f6SThu Nguyen
217387b10f6SThu Nguyen   Update checking of `TransferOperationFlag` and `eventIDToAcknowledge` to
218387b10f6SThu Nguyen   follow spec.
219387b10f6SThu Nguyen
2209e16b18bSThu Nguyen3. platform: Fix checking `eventIDToAcknowledge`
2219e16b18bSThu Nguyen
2229e16b18bSThu Nguyen   As the event receiver sends `PollForPlatformEventMessage` with the
2239e16b18bSThu Nguyen   `tranferFlag` is `AcknowledgementOnly`, the value `eventIDToAcknowledge`
2249e16b18bSThu Nguyen   should be the previously retrieved eventID (from the PLDM terminus).
2259e16b18bSThu Nguyen
226225530abSAndrew Jeffery4. dsp: platform: Prevent overflow of arithmetic on event_data_length
227bb50a590SAndrew Jeffery5. dsp: platform: Bounds check encode_sensor_state_pdr()
228ad33b99aSAndrew Jeffery6. dsp: platform: Bounds check encode_state_effecter_pdr()
2299e566597SAndrew Jeffery7. dsp: pdr: Bounds check pldm_entity_association_pdr_extract()
230d610b00eSAndrew Jeffery8. dsp: bios_table: Bounds check pldm_bios_table_append_pad_checksum()
231d96d21f4SAndrew Jeffery9. dsp: bios_table: Bounds check
232d96d21f4SAndrew Jeffery   pldm_bios_table_attr_value_entry_encode_string()
23392967bedSAndrew Jeffery10. dsp: bios_table: Bounds check pldm_bios_table_attr_value_entry_encode_enum()
234a9892499SAndrew Jeffery11. dsp: firmware_update: Bounds check
235a9892499SAndrew Jeffery    decode_downstream_device_parameter_table_entry_versions()
23657d9a2efSAndrew Jeffery12. oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req()
23782c34815SAndrew Jeffery13. dsp: fru: Bounds check encode_get_fru_record_by_option_resp()
238d7d08f65SAndrew Jeffery14. dsp: fru: Bounds check encode_fru_record()
23937016fefSAndrew Jeffery15. dsp: bios: Bounds check encode_set_bios_table_req()
2403b33c135SAndrew Jeffery16. dsp: bios: Bounds check encode_set_bios_attribute_current_value_req()
24121cb052bSAndrew Jeffery17. dsp: bios_table: Bounds check pldm_bios_table_string_entry_encode()
2428f33a1dcSAndrew Jeffery18. dsp: pdr: Rework test in pldm_entity_association_pdr_extract()
24398e137deSGilbert Chen19. dsp: platform: Fix decode_set_event_receiver_req()
244225530abSAndrew Jeffery
245615344fcSAndrew Jeffery## [0.9.1] - 2024-09-07
246615344fcSAndrew Jeffery
247615344fcSAndrew Jeffery### Changed
248615344fcSAndrew Jeffery
249615344fcSAndrew Jeffery1. Moved evolutions intended for v0.9.0 into place
250615344fcSAndrew Jeffery
251615344fcSAndrew Jeffery   Evolutions for the release have been moved from `evolutions/current` to
252615344fcSAndrew Jeffery   `evolutions/v0.9.1`. Library users can apply them to migrate off of
253615344fcSAndrew Jeffery   deprecated APIs.
25439f88325SRashmica Gupta
255747a498eSAndrew Jeffery## [0.9.0] - 2024-09-07
256747a498eSAndrew Jeffery
2570ee03b5bSThu Nguyen### Added
2580ee03b5bSThu Nguyen
2590ee03b5bSThu Nguyen1. base: Define macros for reserved TIDs
260b02e0e11SVarsha Kaverappa2. pdr: Add pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
261b02e0e11SVarsha Kaverappa3. pdr: Add pldm_entity_association_pdr_create_new()
262e5469f54SThu Nguyen4. platform: Define macros for the responded transferflags
263274732fcSPavithra Barithaya5. pdr: Add pldm_pdr_get_terminus_handle() API
264dacfa354SThu Nguyen6. pdr: Add related decode_entity_auxiliary_names_pdr() APIs
265b6ef35b4SChris Wang7. fw_update: Add encode req & decode resp for get_downstream_fw_params
26602903038SThu Nguyen8. platform: Add decode_pldm_platform_cper_event() API
2670a1be3cbSAndrew Jeffery9. decode_get_pdr_repository_info_resp_safe()
2680a1be3cbSAndrew Jeffery
2690a1be3cbSAndrew Jeffery   Replaces decode_get_pdr_repository_info_resp() as discussed in the
2700a1be3cbSAndrew Jeffery   `Deprecated` section below
2710a1be3cbSAndrew Jeffery
2720a1be3cbSAndrew Jeffery10. decode_get_pdr_resp_safe()
2730a1be3cbSAndrew Jeffery
2740a1be3cbSAndrew Jeffery    Replaces decode_get_pdr_resp() as discussed in the `Deprecated` section
2750a1be3cbSAndrew Jeffery    below
2760ee03b5bSThu Nguyen
27743cb4b5fSThu Nguyen### Changed
27843cb4b5fSThu Nguyen
27943cb4b5fSThu Nguyen1. pdr: Stabilise related decode_entity_auxiliary_names_pdr() APIs
2807739d123SThu Nguyen2. platform: Rework decode/encode_pldm_message_poll_event_data() APIs
281f874b383SThu Nguyen3. platform: Stabilise decode_pldm_message_poll_event_data() APIs
28290bbe6c0SAndrew Jeffery4. ABI break for decode_sensor_op_data()
28390bbe6c0SAndrew Jeffery
28490bbe6c0SAndrew Jeffery   Applying LIBPLDM_CC_NONNULL to the internal msgbuf APIs caused
28590bbe6c0SAndrew Jeffery   abi-compliance-checker to flag a change in the register containing the
28690bbe6c0SAndrew Jeffery   parameter `previous_op_state`.
28743cb4b5fSThu Nguyen
2883559aa1fSThu Nguyen5. platform: Stabilise decode_pldm_platform_cper_event() API
289ea0bf3a8SLora Lin6. oem: meta: Stabilise decode_oem_meta_file_io_write_req() API
290ea0bf3a8SLora Lin7. oem: meta: Stabilise decode_oem_meta_file_io_read_req() API
291ea0bf3a8SLora Lin8. oem: meta: Stabilise encode_oem_meta_file_io_read_resp() API
2923559aa1fSThu Nguyen
293d9b70ba7SAndrew Jeffery### Deprecated
294d9b70ba7SAndrew Jeffery
295e7f55113SAndrew Jeffery1. Rename and deprecate functions with the `_check` suffix
296d9b70ba7SAndrew Jeffery
297e7f55113SAndrew Jeffery   All library function return values always need to be checked. The `_check`
298e7f55113SAndrew Jeffery   suffix is redundant, so remove it. Migration to the non-deprecated
299e7f55113SAndrew Jeffery   equivalents without the `_check` suffix can be performed using
300e7f55113SAndrew Jeffery   `scripts/ apply-renames` and the [clang-rename][] configurations under
301e7f55113SAndrew Jeffery   `evolutions/`
302d9b70ba7SAndrew Jeffery
303e7f55113SAndrew Jeffery   The deprecated functions:
304e7f55113SAndrew Jeffery
305e7f55113SAndrew Jeffery   - `get_fru_record_by_option_check()`
306d8bb75cbSAndrew Jeffery   - `pldm_bios_table_append_pad_checksum_check()`
30746673f4aSAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_def_num_check()`
30882b4d3b4SAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()`
309b06882f1SAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_decode_pv_num_check()`
3107126b1d2SAndrew Jeffery   - `pldm_bios_table_attr_entry_enum_encode_check()`
3115347e279SAndrew Jeffery   - `pldm_bios_table_attr_entry_integer_encode_check()`
312c668ffceSAndrew Jeffery   - `pldm_bios_table_attr_entry_string_decode_def_string_length_check()`
313f6be4933SAndrew Jeffery   - `pldm_bios_table_attr_entry_string_encode_check()`
31409004d6aSAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_enum_check()`
315504dd17fSAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_integer_check()`
3161a3983ceSAndrew Jeffery   - `pldm_bios_table_attr_value_entry_encode_string_check()`
3178c37ab36SAndrew Jeffery   - `pldm_bios_table_string_entry_decode_string_check()`
318e48fdd6eSAndrew Jeffery   - `pldm_bios_table_string_entry_encode_check()`
319d72ea4b8SAndrew Jeffery   - `pldm_entity_association_pdr_add_check()`
320aa49b71fSAndrew Jeffery   - `pldm_entity_association_pdr_add_from_node_check()`
321e7f55113SAndrew Jeffery   - `pldm_pdr_add_check()`
322e7f55113SAndrew Jeffery   - `pldm_pdr_add_fru_record_set_check()`
323d9b70ba7SAndrew Jeffery
324acb0681dSAndrew Jeffery[clang-rename]: https://clang.llvm.org/extra/clang-rename.html
325d9b70ba7SAndrew Jeffery
3260a1be3cbSAndrew Jeffery2. `decode_get_pdr_repository_info_resp()`
3270a1be3cbSAndrew Jeffery
3280a1be3cbSAndrew Jeffery   Users should move to `decode_get_pdr_repository_info_resp_safe()` which
3290a1be3cbSAndrew Jeffery   eliminates the opportunity for buffer overruns when extracting objects from
3300a1be3cbSAndrew Jeffery   the message.
3310a1be3cbSAndrew Jeffery
3320a1be3cbSAndrew Jeffery3. `decode_get_pdr_resp()`
3330a1be3cbSAndrew Jeffery
3340a1be3cbSAndrew Jeffery   Users should move to `decode_get_pdr_resp_safe()` which reduces the
3350a1be3cbSAndrew Jeffery   invocation tedium and improves memory safety over `decode_get_pdr_resp()`.
3360a1be3cbSAndrew Jeffery
337a1efaa2eSAndrew Jeffery### Removed
338a1efaa2eSAndrew Jeffery
339a1efaa2eSAndrew Jeffery1. IBM OEM header compatibility symlinks.
340a1efaa2eSAndrew Jeffery
341a1efaa2eSAndrew Jeffery   Anyone left using the deprecated paths can migrate using the coccinelle patch
342a1efaa2eSAndrew Jeffery   at `evolutions/current/oem-ibm-header-compat.cocci`.
343a1efaa2eSAndrew Jeffery
344e4240679SAndrew Jeffery### Fixed
345e4240679SAndrew Jeffery
346e4240679SAndrew Jeffery1. requester: instance-id: Release read lock on conflict
34774c9a546SArchana Kakani2. pdr: Error propagation for
34874c9a546SArchana Kakani   pldm_entity_association_pdr_add_from_node_with_record_handle()
349e4240679SAndrew Jeffery
350c166dd5fSAndrew Jeffery## [0.8.0] - 2024-05-23
351c166dd5fSAndrew Jeffery
352acf22454SAndrew Jeffery### Added
353acf22454SAndrew Jeffery
354acf22454SAndrew Jeffery1. base: Provide pldm_msg_hdr_correlate_response()
355acf22454SAndrew Jeffery2. transport: af-mctp: Add pldm_transport_af_mctp_bind()
356499389ecSKamalkumar Patel3. oem: ibm: Add chapdata file type support
3576967fc73SManojkiran Eda4. base: Added PLDM_SMBIOS & PLDM_RDE message types
35822fad395SDelphine CC Chiu5. oem: meta: Add decode_oem_meta_file_io_req()
35939aa036eSVarsha Kaverappa6. state-set: Add all state set values to system power state enum as per DSP0249
3600ee77664SVarsha Kaverappa7. platform: Add alias members to the enum
3610ee77664SVarsha Kaverappa   pldm_pdr_repository_chg_event_change_record_event_data_operation.
3620ee77664SVarsha Kaverappa
3630ee77664SVarsha Kaverappa   enum constants with inconsistent names are deprecated with this change.
3640ee77664SVarsha Kaverappa   remove old inconsistent enum members after backward compatibility cleanup is
3650ee77664SVarsha Kaverappa   done
366acf22454SAndrew Jeffery
367a9f2ffd4SPavithra Barithaya8. oem-ibm: Alias `pldm_oem_ibm_fru_field_type` members as `PLDM_OEM_IBM_*`
368819f138aSPavithra Barithaya9. oem: ibm: Add Firmware Update Access Key(UAK) as a FRU field type
36964764fd6SJinliang Wang10. platform: Add 3 PDR type enum for Redfish Device Enablement per
37064764fd6SJinliang Wang    DSP0248_1.2.0
37164764fd6SJinliang Wang11. state_set: Add CONNECTED and DISCONNECTED enum for Link State set
37264764fd6SJinliang Wang12. entity: Add enum for Network Interface Connectors and Network Ports
37364764fd6SJinliang Wang    Connection Types
374d4878cdfSThu Nguyen13. pdr: Add decode_numeric_effecter_pdr_data()
375ea435c9fSJayashankar Padath14. oem: ibm: Support for the Real SAI entity id
3764c1f2c72SChris Wang15. fw_update: Add encode req & decode resp for query_downstream_devices
377458475a9SChris Wang16. fw_update: Add encode req & decode resp for query_downstream_identifiers
378a6fa5559STal Yacobi17. platform: Add support for GetStateEffecterStates command
379a9f2ffd4SPavithra Barithaya
380acf22454SAndrew Jeffery### Changed
381acf22454SAndrew Jeffery
382acf22454SAndrew Jeffery1. base: Stabilise pldm_msg_hdr_correlate_response()
383acf22454SAndrew Jeffery2. transport: af-mctp: Stabilise pldm_transport_af_mctp_bind()
384b0c1d20aSAndrew Jeffery3. libpldm: Fix header use
385efb40069SAndrew Jeffery4. libpldm: More fixes for header use
3864a307bcaSPavithra Barithaya5. pdr: Stabilise pldm_pdr_find_last_in_range() API
3873a267059SPavithra Barithaya6. pdr: Stabilise pldm_entity_association_pdr_add_from_node_with_record_handle()
388a98814fcSAndrew Jeffery7. oem: meta: stabilise decode_oem_meta_file_io_req()
389c6c391d6SGeorge Liu8. pdr: pldm_entity_association_tree_copy_root(): Document preconditions
390acf22454SAndrew Jeffery
391a9f2ffd4SPavithra Barithaya### Deprecated
392a9f2ffd4SPavithra Barithaya
393a9f2ffd4SPavithra Barithaya1. Deprecate `pldm_oem_ibm_fru_field_type` members that that are not prefixed
394a9f2ffd4SPavithra Barithaya   with `PLDM_OEM_IBM_`
395a9f2ffd4SPavithra Barithaya
396d12dd36eSAndrew Jeffery### Fixed
397d12dd36eSAndrew Jeffery
398d12dd36eSAndrew Jeffery1. libpldm: Rationalise the local and installed path of pldm.h
39939eb3224SPavithra Barithaya2. pdr: Assign record_handle in entity_association_pdr_add_children()
400cd07fec7SThu Nguyen3. msgbuf: Require sensor data enum in pldm_msgbuf_extract_sensor_value()
40151230a0aSThu Nguyen4. pdr: Remove redundant constant for minimum numeric sensor PDR length
40232df16c4SAndrew Jeffery5. tests: oem: meta: Fix fileio use of msgbuf
403d12dd36eSAndrew Jeffery
4043f39f963SAndrew Jeffery## [0.7.0] - 2023-08-29
4053f39f963SAndrew Jeffery
406f37e4dc8SPavithra Barithaya### Added
407f37e4dc8SPavithra Barithaya
408f37e4dc8SPavithra Barithaya1. state-set: Add new enum for Operational Fault Status enum
4096c835a14SAndrew Jeffery
4106c835a14SAndrew Jeffery### Changed
4116c835a14SAndrew Jeffery
4126c835a14SAndrew Jeffery1. transport: Match specified metadata in pldm_transport_send_recv_msg()
41345816b89SAndrew Jeffery2. transport: mctp-demux: Drop ABI annotation for internal symbols
4140a6d6821SAndrew Jeffery3. transport: Stabilise core transport and implementation APIs
4150a6d6821SAndrew Jeffery
4160a6d6821SAndrew Jeffery   This stabilisation covers the following headers and functions:
4170a6d6821SAndrew Jeffery
4180a6d6821SAndrew Jeffery   - libpldm/transport.h
4190a6d6821SAndrew Jeffery
4200a6d6821SAndrew Jeffery     - pldm_transport_poll()
4210a6d6821SAndrew Jeffery     - pldm_transport_send_msg()
4220a6d6821SAndrew Jeffery     - pldm_transport_recv_msg()
4230a6d6821SAndrew Jeffery     - pldm_transport_send_recv_msg()
4240a6d6821SAndrew Jeffery
4250a6d6821SAndrew Jeffery   - libpldm/transport/af-mctp.h
4260a6d6821SAndrew Jeffery
4270a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_init()
4280a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_destroy()
4290a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_core()
4300a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_init_pollfd()
4310a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_map_tid()
4320a6d6821SAndrew Jeffery     - pldm_transport_af_mctp_unmap_tid()
4330a6d6821SAndrew Jeffery
4340a6d6821SAndrew Jeffery   - libpldm/transport/mctp-demux.h
4350a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_init()
4360a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_destroy()
4370a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_core()
4380a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_init_pollfd()
4390a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_map_tid()
4400a6d6821SAndrew Jeffery     - pldm_transport_mctp_demux_unmap_tid()
4410a6d6821SAndrew Jeffery
4420a6d6821SAndrew Jeffery### Deprecated
4430a6d6821SAndrew Jeffery
4440a6d6821SAndrew Jeffery1. All the existing "requester" APIs from `libpldm/pldm.h` (also known as
4450a6d6821SAndrew Jeffery   `libpldm/requester/pldm.h`):
4460a6d6821SAndrew Jeffery
4470a6d6821SAndrew Jeffery   - pldm_open()
4480a6d6821SAndrew Jeffery   - pldm_send_recv()
4490a6d6821SAndrew Jeffery   - pldm_send()
4500a6d6821SAndrew Jeffery   - pldm_recv()
4510a6d6821SAndrew Jeffery   - pldm_recv_any()
4520a6d6821SAndrew Jeffery   - pldm_close()
4530a6d6821SAndrew Jeffery
4540a6d6821SAndrew Jeffery   Users should migrate to the newer "transport" APIs instead.
455f37e4dc8SPavithra Barithaya
456ba05dba7SAndrew Jeffery## Fixed
457ba05dba7SAndrew Jeffery
458ba05dba7SAndrew Jeffery1. tests: Exclude transport tests when build excludes testing ABIs
45934ac891fSAndrew Jeffery2. abi: Capture deprecation of pldm_close()
460ba05dba7SAndrew Jeffery
461d2a36a16SAndrew Jeffery## [0.6.0] - 2023-08-22
462d2a36a16SAndrew Jeffery
4637062382aSAndrew Jeffery### Changed
4647062382aSAndrew Jeffery
4657062382aSAndrew Jeffery1. pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity()
4665cf32ea8SAndrew Jeffery2. meson: Apply `b_ndebug=if-release` by default
467e7eebe33SAndrew Jeffery3. pdr : Stabilize pldm_entity_association_tree_add_entity()
46875ce90a5SAndrew Jeffery4. pdr: Stabilise pldm_entity_association_tree_find_with_locality()
469def8e024SPavithra Barithaya5. pdr: Stabilize pldm_entity_node_get_remote_container_id()
470ac24737cSAndrew Jeffery6. transport: af-mctp: Assign out-params on success in \*\_recv()
47124576290SRashmica Gupta7. transport: Generalise the pldm_transport_recv_msg() API
4727062382aSAndrew Jeffery
473255f6549SAndrew Jeffery### Removed
474255f6549SAndrew Jeffery
475255f6549SAndrew Jeffery1. pdr: Remove pldm_entity_association_pdr_add()
4767e3c9e4dSPavithra Barithaya2. state-set: Remove enum pldm_state_set_operational_fault_status_values
477255f6549SAndrew Jeffery
478b4cd5172SDelphine CC Chiu### Fixed
479b4cd5172SDelphine CC Chiu
480b4cd5172SDelphine CC Chiu1. transport: register init_pollfd callback for af-mctp
48136402ffbSBonnieLo-wiwynn2. transport: fix init_pollfd function parameter
482f1ebde49SRashmica Gupta3. transport: Fix doxygen and variables for send and recv functions
4837caa8af1SAndrew Jeffery4. transport: af-mctp: Ensure malloc() succeeds in \*\_recv()
484b4cd5172SDelphine CC Chiu
48520cc060cSAndrew Jeffery## [0.5.0] - 2023-08-09
48620cc060cSAndrew Jeffery
48765945992SAndrew Jeffery### Added
48865945992SAndrew Jeffery
48965945992SAndrew Jeffery1. pdr: Introduce pldm_entity_association_pdr_add_check()
49065945992SAndrew Jeffery
4913b93d09cSAndrew Jeffery### Changed
4923b93d09cSAndrew Jeffery
4933b93d09cSAndrew Jeffery1. pdr: Allow record_handle to be NULL for pldm_pdr_add_check()
4943380a6c6SAndrew Jeffery2. transport: pldm_transport_poll(): Adjust return value semantics
495f56e4dcdSThu Nguyen3. transport: free un-wanted responses in pldm_transport_send_recv_msg()
4963b93d09cSAndrew Jeffery
4978bcbe251SAndrew Jeffery### Deprecated
4988bcbe251SAndrew Jeffery
4998bcbe251SAndrew Jeffery1. state-set: Enum pldm_state_set_operational_fault_status_values
5008bcbe251SAndrew Jeffery
5018bcbe251SAndrew Jeffery   The enum operational_fault_status is defined with wrong members and will
5028bcbe251SAndrew Jeffery   eventually be replaced with the correct members. Any uses of
5038bcbe251SAndrew Jeffery   pldm_state_set_operational_fault_status_values members should move to
5048bcbe251SAndrew Jeffery   equivalent pldm_state_set_operational_stress_status_values members if needed.
5058bcbe251SAndrew Jeffery
5068bcbe251SAndrew Jeffery2. platform: Struct field name in fru_record_set PDR
5078bcbe251SAndrew Jeffery
5088bcbe251SAndrew Jeffery   References to entity_instance_num should be changed to entity_instance
5098bcbe251SAndrew Jeffery
5108bcbe251SAndrew Jeffery3. platform: Struct field name in numeric sensor value PDR
5118bcbe251SAndrew Jeffery
5128bcbe251SAndrew Jeffery   References to entity_instance_num should be changed to entity_instance
5138bcbe251SAndrew Jeffery
5140ecf6bcfSAndrew Jeffery### Removed
5150ecf6bcfSAndrew Jeffery
5160ecf6bcfSAndrew Jeffery1. bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length()
5178b1c0340SAndrew Jeffery2. bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum()
51846d07685SAndrew Jeffery3. bios_table: Remove pldm_bios_table_attr_value_entry_encode_string()
5194e1f131cSAndrew Jeffery4. bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer()
52050dd159eSAndrew Jeffery5. bios_table: Remove pldm_bios_table_append_pad_checksum()
5218810feceSAndrew Jeffery6. fru: Remove get_fru_record_by_option()
522d09b1af0SAndrew Jeffery7. pdr: Make is_present() static
523c79a5df5SAndrew Jeffery8. pdr: Remove pldm_pdr_add()
52414d2984bSAndrew Jeffery9. pdr: Remove pldm_pdr_add_fru_record_set()
5258985dfd1SAndrew Jeffery10. pdr: Remove pldm_entity_association_pdr_add_from_node()
526643c443bSAndrew Jeffery11. pdr: Make find_entity_ref_in_tree() static
52754d91e81SAndrew Jeffery12. pdr: Make entity_association_tree_find() static
5280ecf6bcfSAndrew Jeffery
52943a7985dSThu Nguyen### Fixed
53043a7985dSThu Nguyen
53143a7985dSThu Nguyen1. requester: Fix response buffer cast in pldm_send_recv()
532c6cc028fSAndrew Jeffery2. pdr: Hoist record handle overflow test to avoid memory leak
533ef485068SThu Nguyen3. transport: Correct comparison in while loop condition
53443a7985dSThu Nguyen
5358a4b5336SAndrew Jeffery## [0.4.0] - 2023-07-14
5368a4b5336SAndrew Jeffery
537044ee19aSAndrew Jeffery### Added
538044ee19aSAndrew Jeffery
539044ee19aSAndrew Jeffery1. bios_table: Introduce pldm_bios_table_append_pad_checksum_check()
5407cd16ff8SAndrew Jeffery2. fru: Introduce get_fru_record_by_option_check()
541cc394529SAndrew Jeffery3. pdr: Introduce pldm_entity_association_pdr_add_from_node_check()
542572a3950SAndrew Jeffery4. pdr: Introduce pldm_pdr_add_check()
543c821a700SAndrew Jeffery5. pdr: Introduce pldm_pdr_add_fru_record_set_check()
544044ee19aSAndrew Jeffery
545986df2a1SAndrew Jeffery### Changed
546986df2a1SAndrew Jeffery
547986df2a1SAndrew Jeffery1. requester: Mark pldm_close() as LIBPLDM_ABI_TESTING
5485fb9680bSAndrew Jeffery2. requester: Expose pldm_close() in header
549a873eca0SAndrew Jeffery3. bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow
550757e81a1SAndrew Jeffery4. bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc
55173d9176aSAndrew Jeffery5. bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration
552a8bb22edSAndrew Jeffery6. pdr: pldm_pdr_init(): Return NULL on allocation failure
553fca1b60fSAndrew Jeffery7. pdr: pldm_pdr_destroy(): Exit early if repo is NULL
5545565fcdeSAndrew Jeffery8. pdr: Document preconditions for trivial accessor functions
5555565fcdeSAndrew Jeffery
5565565fcdeSAndrew Jeffery   A trivial accessor function is one that exposes properties of an object in a
5575565fcdeSAndrew Jeffery   way can't result in an error, beyond passing an invalid argument to the
5585565fcdeSAndrew Jeffery   function. For APIs meeting this definition we define a precondition that
5595565fcdeSAndrew Jeffery   struct pointers must point to valid objects to avoid polluting the function
5605565fcdeSAndrew Jeffery   prototypes. The following APIs now have this precondition explicitly defined:
5615565fcdeSAndrew Jeffery
5625565fcdeSAndrew Jeffery   - pldm_entity_extract()
5635565fcdeSAndrew Jeffery   - pldm_entity_get_parent()
5645565fcdeSAndrew Jeffery   - pldm_entity_is_exist_parent()
5655565fcdeSAndrew Jeffery   - pldm_entity_is_node_parent()
5665565fcdeSAndrew Jeffery   - pldm_is_current_parent_child
5675565fcdeSAndrew Jeffery   - pldm_is_empty_entity_assoc_tree()
5685565fcdeSAndrew Jeffery   - pldm_pdr_get_record_count()
5695565fcdeSAndrew Jeffery   - pldm_pdr_get_record_handle()
5705565fcdeSAndrew Jeffery   - pldm_pdr_get_repo_size()
5715565fcdeSAndrew Jeffery   - pldm_pdr_record_is_remote()
572986df2a1SAndrew Jeffery
57315b8818cSAndrew Jeffery9. pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor
57401425e96SAndrew Jeffery10. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments
575c40037d5SAndrew Jeffery11. pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc
5768e9b0de8SAndrew Jeffery12. pdr: pldm_entity_association_tree_visit(): Document preconditions
577cd17e5ccSAndrew Jeffery13. pdr: pldm_entity_association_tree_visit(): Exit early on failure
578a89e015cSAndrew Jeffery14. pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument
5796e8a2617SAndrew Jeffery15. pdr: pldm_entity_get_num_children(): Return zero for invalid arguments
580375d9fc1SAndrew Jeffery16. pdr: pldm_is_current_parent_child(): Return false for invalid arguments
581c788348eSAndrew Jeffery17. pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments
582ba47e83eSAndrew Jeffery18. pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments
58394e364dbSAndrew Jeffery19. pdr: pldm_entity_association_tree_find(): Early exit on bad arguments
58485d7a056SAndrew Jeffery20. pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg
5853a5c46b4SAndrew Jeffery21. pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments
5860dbaa70fSAndrew Jeffery22. pdr: pldm_entity_association_pdr_extract(): Assign out params at exit
587c83ef86dSAndrew Jeffery23. pdr: pldm_entity_get_num_children(): Don't return invalid values
5888526892fSAndrew Jeffery24. libpldm: Lift or remove asserts where a subsequent check exists
58915b8818cSAndrew Jeffery
590fe0f01d8SAndrew Jeffery### Deprecated
591fe0f01d8SAndrew Jeffery
592fe0f01d8SAndrew Jeffery1. pldm_bios_table_attr_entry_integer_encode()
593fe0f01d8SAndrew Jeffery
594fe0f01d8SAndrew Jeffery   Migrate to pldm_bios_table_attr_entry_integer_encode_check()
595fe0f01d8SAndrew Jeffery
5967aeb7edbSAndrew Jeffery2. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum()
5977aeb7edbSAndrew Jeffery
5987aeb7edbSAndrew Jeffery   Migrate to pldm_bios_table_attr_value_entry_encode_enum_check()
5997aeb7edbSAndrew Jeffery
6002d66393fSAndrew Jeffery3. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string()
6012d66393fSAndrew Jeffery
6022d66393fSAndrew Jeffery   Migrate to pldm_bios_table_attr_value_entry_encode_string_check()
6032d66393fSAndrew Jeffery
6040088a6aeSAndrew Jeffery4. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer()
6050088a6aeSAndrew Jeffery
6060088a6aeSAndrew Jeffery   Migrate to pldm_bios_table_attr_value_entry_encode_integer_check()
6070088a6aeSAndrew Jeffery
608d11bf9f7SAndrew Jeffery5. pdr: Deprecate is_present()
609d11bf9f7SAndrew Jeffery
610d11bf9f7SAndrew Jeffery   There should be no users of this symbol. If you are a user, you should figure
611d11bf9f7SAndrew Jeffery   out how to stop, or get in touch. This symbol will be marked static the
612d11bf9f7SAndrew Jeffery   release after deprecation.
613d11bf9f7SAndrew Jeffery
614bfeb65ebSAndrew Jeffery6. pdr: Deprecate find_entity_ref_in_tree()
615bfeb65ebSAndrew Jeffery
616bfeb65ebSAndrew Jeffery   There should be no users of this symbol. If you are a user, you should figure
617bfeb65ebSAndrew Jeffery   out how to stop, or get in touch. This symbol will be marked static the
618bfeb65ebSAndrew Jeffery   release after deprecation.
619bfeb65ebSAndrew Jeffery
6207f589313SAndrew Jeffery7. pdr: Deprecate entity_association_tree_find()
6217f589313SAndrew Jeffery
6227f589313SAndrew Jeffery   There should be no users of this symbol. If you are a user, you should figure
6237f589313SAndrew Jeffery   out how to stop, or get in touch. This symbol will be marked static the
6247f589313SAndrew Jeffery   release after deprecation.
6257f589313SAndrew Jeffery
6261264fbd9SAndrew Jeffery8. bios_table: Stabilise pldm_bios_table_append_pad_checksum_check()
6271264fbd9SAndrew Jeffery
6281264fbd9SAndrew Jeffery   pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of
6291264fbd9SAndrew Jeffery   pldm_bios_table_append_pad_checksum() should migrate to
6301264fbd9SAndrew Jeffery   pldm_bios_table_append_pad_checksum_check()
6311264fbd9SAndrew Jeffery
632962fcec7SAndrew Jeffery9. fru: Stabilise get_fru_record_by_option_check()
633962fcec7SAndrew Jeffery
634962fcec7SAndrew Jeffery   get_fru_record_by_option() is deprecated by this change. Users of
635962fcec7SAndrew Jeffery   get_fru_record_by_option() should migrate to get_fru_record_by_option_check()
636962fcec7SAndrew Jeffery
6371354a6eeSAndrew Jeffery10. pdr: Stabilise pldm_entity_association_pdr_add_from_node_check()
6381354a6eeSAndrew Jeffery
6391354a6eeSAndrew Jeffery    pldm_entity_association_pdr_add_from_node() is deprecated by this change.
6401354a6eeSAndrew Jeffery    Users of pldm_entity_association_pdr_add_from_node() should migrate to
6411354a6eeSAndrew Jeffery    pldm_entity_association_pdr_add_from_node_check()
6421354a6eeSAndrew Jeffery
643ca248ce3SAndrew Jeffery11. pdr: Stabilise pldm_pdr_add_check()
644ca248ce3SAndrew Jeffery
645ca248ce3SAndrew Jeffery    pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should
646ca248ce3SAndrew Jeffery    migrate to pldm_pdr_add_check()
647ca248ce3SAndrew Jeffery
648a2c69117SAndrew Jeffery12. pdr: Stabilise pldm_pdr_add_fru_record_set_check()
649a2c69117SAndrew Jeffery
650a2c69117SAndrew Jeffery    pldm_pdr_add_fru_record_set() is deprecated by this change. Users of
651a2c69117SAndrew Jeffery    pldm_pdr_add_fru_record_set() should migrate to
652a2c69117SAndrew Jeffery    pldm_pdr_add_fru_record_set_check()
653a2c69117SAndrew Jeffery
6546409c8a0SAndrew Jeffery### Removed
6556409c8a0SAndrew Jeffery
6566409c8a0SAndrew Jeffery1. bios_table: Remove deprecated APIs sanitized by assert():
6576409c8a0SAndrew Jeffery
6586409c8a0SAndrew Jeffery   - pldm_bios_table_string_entry_encode()
6596409c8a0SAndrew Jeffery   - pldm_bios_table_string_entry_decode_string()
6606409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_encode()
6616409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_pv_num()
6626409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_def_num()
6636409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_pv_hdls()
6646409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_string_encode()
6656409c8a0SAndrew Jeffery   - pldm_bios_table_attr_entry_string_decode_def_string_length()
6666409c8a0SAndrew Jeffery
66709778a82SAndrew Jeffery### Fixed
668ffd5342cSPavithra Barithaya
669ffd5342cSPavithra Barithaya1. pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API
6708cf70456SPavithra Barithaya2. pdr: Rework pldm_pdr_find_container_id_range_exclude() API
671a4da6858SAndrew Jeffery3. transport: mctp-demux: Don't test socket for non-zero value
6724e1ba8a7SAndrew Jeffery4. requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error
673af7a4d82SAndrew Jeffery5. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return
674178531a0SRashmica Gupta6. transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
675cd732d14SAndrew Jeffery7. abi: Update to remove pldm_close() from reference dumps
6769e33be96SAndrew Jeffery8. bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer()
677ffd5342cSPavithra Barithaya
678291da195SAndrew Jeffery## [0.3.0] - 2023-06-23
679291da195SAndrew Jeffery
6807c250340SDung Cao### Added
6817c250340SDung Cao
6827c250340SDung Cao1. Add encode/decode pldmMessagePollEvent data
68383841fb5SAndrew Jeffery2. README: Add a section on working with libpldm
68439bd2ea5SArchanaKakani3. pdr: Introduce remote_container_id and associated APIs
6859947f9d6SPavithra Barithaya4. pdr: Add APIs for creating and locating remote PDRs
6864d694346SPavithra Barithaya5. pdr: Add pldm_pdr_find_last_in_range()
68725ddbccfSPavithra Barithaya6. pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle()
6885dc02571SPavithra Barithaya7. pdr: Add pldm_pdr_find_container_id_range_exclude()
6897c250340SDung Cao
690b443b487SRashmica Gupta### Changed
691b443b487SRashmica Gupta
692b443b487SRashmica Gupta1. include: Move installed transport.h under libpldm/
69383841fb5SAndrew Jeffery2. libpldm: Explicit deprecated, stable and testing ABI classes
6948de8e1ecSAndrew Jeffery3. meson: Reduce strength of oem-ibm requirements from enabled to allowed
6958de8e1ecSAndrew Jeffery
6968de8e1ecSAndrew Jeffery   The `oem-ibm` feature is now enabled by the default meson configuration, for
6978de8e1ecSAndrew Jeffery   CI purposes. `oem-ibm` is still disabled by default in the `libpldm` bitbake
6988de8e1ecSAndrew Jeffery   recipe:
6998de8e1ecSAndrew Jeffery
7000f7218cdSGeorge Liu   <https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb#L10>
7018de8e1ecSAndrew Jeffery
7028de8e1ecSAndrew Jeffery   To disable `oem-ibm` in your development builds, pass `-Doem-ibm=disabled`
7038de8e1ecSAndrew Jeffery   when invoking `meson setup`
704b443b487SRashmica Gupta
70598c1e69dSAndrew Jeffery4. bios_table: Relax pldm_bios_table_string_entry_decode_string_check()
7060c9f5a8aSAndrew Jeffery5. bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check()
70798c1e69dSAndrew Jeffery
708d47e8ab8SAndrew Jeffery### Deprecated
709d47e8ab8SAndrew Jeffery
710d47e8ab8SAndrew Jeffery1. bios_table: Deprecate APIs with arguments sanitized using assert()
711d47e8ab8SAndrew Jeffery
712d47e8ab8SAndrew Jeffery   C provides enough foot-guns without us encoding them into library APIs.
713d47e8ab8SAndrew Jeffery   Specifically, deprecate the following in favour of their `*_check()` variants
714d47e8ab8SAndrew Jeffery   which ensure assertions won't fail or otherwise invoke UB:
715d47e8ab8SAndrew Jeffery
716d47e8ab8SAndrew Jeffery   - pldm_bios_table_string_entry_encode()
717d47e8ab8SAndrew Jeffery   - pldm_bios_table_string_entry_decode_string()
718d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_encode()
719d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_pv_num()
720d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_def_num()
721d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_enum_decode_pv_hdls()
722d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_string_encode()
723d47e8ab8SAndrew Jeffery   - pldm_bios_table_attr_entry_string_decode_def_string_length()
724d47e8ab8SAndrew Jeffery
7254b4603b3SAndrew Jeffery### Removed
7264b4603b3SAndrew Jeffery
7274b4603b3SAndrew Jeffery1. libpldm: Remove the requester-api option
7284b4603b3SAndrew Jeffery
72939f88325SRashmica Gupta### Fixed
73039f88325SRashmica Gupta
73139f88325SRashmica Gupta1. requester: Make pldm_open() return existing fd
732abaf61f4SDung Cao2. transport: Prevent sticking in waiting for response
733b01fb1ccSThu Nguyen3. transport: Match on response in pldm_transport_send_recv_msg()
734a3035938SRashmica Gupta4. requester: Add check before accessing hdr in pldm_recv()
735df02e360SAndrew Jeffery5. bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref
736