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 186fd81a51SAndrew Jeffery## [Unreleased] 1939f88325SRashmica Gupta 200ee03b5bSThu Nguyen### Added 210ee03b5bSThu Nguyen 220ee03b5bSThu Nguyen1. base: Define macros for reserved TIDs 230ee03b5bSThu Nguyen 24d9b70ba7SAndrew Jeffery### Deprecated 25d9b70ba7SAndrew Jeffery 26d9b70ba7SAndrew Jeffery1. fru: Deprecate `get_fru_record_by_option_check()` 27d9b70ba7SAndrew Jeffery 28d9b70ba7SAndrew Jeffery Users should switch to `get_fru_record_by_option()`. Migration can be 29d9b70ba7SAndrew Jeffery performed using the [Coccinelle semantic patch][coccinelle] 30d9b70ba7SAndrew Jeffery `get_fru_record_by_option_check.cocci`: 31d9b70ba7SAndrew Jeffery 32d9b70ba7SAndrew Jeffery ``` 33d9b70ba7SAndrew Jeffery $ spatch \ 34d9b70ba7SAndrew Jeffery --sp-file=${LIBPLDM_DIR}/evolutions/current/get_fru_record_by_option_check.cocci \ 35d9b70ba7SAndrew Jeffery --in-place \ 36d9b70ba7SAndrew Jeffery $(git ls-files | grep -E '\.[ch](pp)?') 37d9b70ba7SAndrew Jeffery ``` 38d9b70ba7SAndrew Jeffery 39d9b70ba7SAndrew Jeffery[coccinelle]: https://coccinelle.gitlabpages.inria.fr/website/ 40d9b70ba7SAndrew Jeffery 41*a1efaa2eSAndrew Jeffery### Removed 42*a1efaa2eSAndrew Jeffery 43*a1efaa2eSAndrew Jeffery1. IBM OEM header compatibility symlinks. 44*a1efaa2eSAndrew Jeffery 45*a1efaa2eSAndrew Jeffery Anyone left using the deprecated paths can migrate using the coccinelle patch 46*a1efaa2eSAndrew Jeffery at `evolutions/current/oem-ibm-header-compat.cocci`. 47*a1efaa2eSAndrew Jeffery 48c166dd5fSAndrew Jeffery## [0.8.0] - 2024-05-23 49c166dd5fSAndrew Jeffery 50acf22454SAndrew Jeffery### Added 51acf22454SAndrew Jeffery 52acf22454SAndrew Jeffery1. base: Provide pldm_msg_hdr_correlate_response() 53acf22454SAndrew Jeffery2. transport: af-mctp: Add pldm_transport_af_mctp_bind() 54499389ecSKamalkumar Patel3. oem: ibm: Add chapdata file type support 556967fc73SManojkiran Eda4. base: Added PLDM_SMBIOS & PLDM_RDE message types 5622fad395SDelphine CC Chiu5. oem: meta: Add decode_oem_meta_file_io_req() 5739aa036eSVarsha Kaverappa6. state-set: Add all state set values to system power state enum as per DSP0249 580ee77664SVarsha Kaverappa7. platform: Add alias members to the enum 590ee77664SVarsha Kaverappa pldm_pdr_repository_chg_event_change_record_event_data_operation. 600ee77664SVarsha Kaverappa 610ee77664SVarsha Kaverappa enum constants with inconsistent names are deprecated with this change. 620ee77664SVarsha Kaverappa remove old inconsistent enum members after backward compatibility cleanup is 630ee77664SVarsha Kaverappa done 64acf22454SAndrew Jeffery 65a9f2ffd4SPavithra Barithaya8. oem-ibm: Alias `pldm_oem_ibm_fru_field_type` members as `PLDM_OEM_IBM_*` 66819f138aSPavithra Barithaya9. oem: ibm: Add Firmware Update Access Key(UAK) as a FRU field type 6764764fd6SJinliang Wang10. platform: Add 3 PDR type enum for Redfish Device Enablement per 6864764fd6SJinliang Wang DSP0248_1.2.0 6964764fd6SJinliang Wang11. state_set: Add CONNECTED and DISCONNECTED enum for Link State set 7064764fd6SJinliang Wang12. entity: Add enum for Network Interface Connectors and Network Ports 7164764fd6SJinliang Wang Connection Types 72d4878cdfSThu Nguyen13. pdr: Add decode_numeric_effecter_pdr_data() 73ea435c9fSJayashankar Padath14. oem: ibm: Support for the Real SAI entity id 744c1f2c72SChris Wang15. fw_update: Add encode req & decode resp for query_downstream_devices 75458475a9SChris Wang16. fw_update: Add encode req & decode resp for query_downstream_identifiers 76a6fa5559STal Yacobi17. platform: Add support for GetStateEffecterStates command 77a9f2ffd4SPavithra Barithaya 78acf22454SAndrew Jeffery### Changed 79acf22454SAndrew Jeffery 80acf22454SAndrew Jeffery1. base: Stabilise pldm_msg_hdr_correlate_response() 81acf22454SAndrew Jeffery2. transport: af-mctp: Stabilise pldm_transport_af_mctp_bind() 82b0c1d20aSAndrew Jeffery3. libpldm: Fix header use 83efb40069SAndrew Jeffery4. libpldm: More fixes for header use 844a307bcaSPavithra Barithaya5. pdr: Stabilise pldm_pdr_find_last_in_range() API 853a267059SPavithra Barithaya6. pdr: Stabilise pldm_entity_association_pdr_add_from_node_with_record_handle() 86a98814fcSAndrew Jeffery7. oem: meta: stabilise decode_oem_meta_file_io_req() 87c6c391d6SGeorge Liu8. pdr: pldm_entity_association_tree_copy_root(): Document preconditions 88acf22454SAndrew Jeffery 89a9f2ffd4SPavithra Barithaya### Deprecated 90a9f2ffd4SPavithra Barithaya 91a9f2ffd4SPavithra Barithaya1. Deprecate `pldm_oem_ibm_fru_field_type` members that that are not prefixed 92a9f2ffd4SPavithra Barithaya with `PLDM_OEM_IBM_` 93a9f2ffd4SPavithra Barithaya 94d12dd36eSAndrew Jeffery### Fixed 95d12dd36eSAndrew Jeffery 96d12dd36eSAndrew Jeffery1. libpldm: Rationalise the local and installed path of pldm.h 9739eb3224SPavithra Barithaya2. pdr: Assign record_handle in entity_association_pdr_add_children() 98cd07fec7SThu Nguyen3. msgbuf: Require sensor data enum in pldm_msgbuf_extract_sensor_value() 9951230a0aSThu Nguyen4. pdr: Remove redundant constant for minimum numeric sensor PDR length 10032df16c4SAndrew Jeffery5. tests: oem: meta: Fix fileio use of msgbuf 101d12dd36eSAndrew Jeffery 1023f39f963SAndrew Jeffery## [0.7.0] - 2023-08-29 1033f39f963SAndrew Jeffery 104f37e4dc8SPavithra Barithaya### Added 105f37e4dc8SPavithra Barithaya 106f37e4dc8SPavithra Barithaya1. state-set: Add new enum for Operational Fault Status enum 1076c835a14SAndrew Jeffery 1086c835a14SAndrew Jeffery### Changed 1096c835a14SAndrew Jeffery 1106c835a14SAndrew Jeffery1. transport: Match specified metadata in pldm_transport_send_recv_msg() 11145816b89SAndrew Jeffery2. transport: mctp-demux: Drop ABI annotation for internal symbols 1120a6d6821SAndrew Jeffery3. transport: Stabilise core transport and implementation APIs 1130a6d6821SAndrew Jeffery 1140a6d6821SAndrew Jeffery This stabilisation covers the following headers and functions: 1150a6d6821SAndrew Jeffery 1160a6d6821SAndrew Jeffery - libpldm/transport.h 1170a6d6821SAndrew Jeffery 1180a6d6821SAndrew Jeffery - pldm_transport_poll() 1190a6d6821SAndrew Jeffery - pldm_transport_send_msg() 1200a6d6821SAndrew Jeffery - pldm_transport_recv_msg() 1210a6d6821SAndrew Jeffery - pldm_transport_send_recv_msg() 1220a6d6821SAndrew Jeffery 1230a6d6821SAndrew Jeffery - libpldm/transport/af-mctp.h 1240a6d6821SAndrew Jeffery 1250a6d6821SAndrew Jeffery - pldm_transport_af_mctp_init() 1260a6d6821SAndrew Jeffery - pldm_transport_af_mctp_destroy() 1270a6d6821SAndrew Jeffery - pldm_transport_af_mctp_core() 1280a6d6821SAndrew Jeffery - pldm_transport_af_mctp_init_pollfd() 1290a6d6821SAndrew Jeffery - pldm_transport_af_mctp_map_tid() 1300a6d6821SAndrew Jeffery - pldm_transport_af_mctp_unmap_tid() 1310a6d6821SAndrew Jeffery 1320a6d6821SAndrew Jeffery - libpldm/transport/mctp-demux.h 1330a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_init() 1340a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_destroy() 1350a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_core() 1360a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_init_pollfd() 1370a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_map_tid() 1380a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_unmap_tid() 1390a6d6821SAndrew Jeffery 1400a6d6821SAndrew Jeffery### Deprecated 1410a6d6821SAndrew Jeffery 1420a6d6821SAndrew Jeffery1. All the existing "requester" APIs from `libpldm/pldm.h` (also known as 1430a6d6821SAndrew Jeffery `libpldm/requester/pldm.h`): 1440a6d6821SAndrew Jeffery 1450a6d6821SAndrew Jeffery - pldm_open() 1460a6d6821SAndrew Jeffery - pldm_send_recv() 1470a6d6821SAndrew Jeffery - pldm_send() 1480a6d6821SAndrew Jeffery - pldm_recv() 1490a6d6821SAndrew Jeffery - pldm_recv_any() 1500a6d6821SAndrew Jeffery - pldm_close() 1510a6d6821SAndrew Jeffery 1520a6d6821SAndrew Jeffery Users should migrate to the newer "transport" APIs instead. 153f37e4dc8SPavithra Barithaya 154ba05dba7SAndrew Jeffery## Fixed 155ba05dba7SAndrew Jeffery 156ba05dba7SAndrew Jeffery1. tests: Exclude transport tests when build excludes testing ABIs 15734ac891fSAndrew Jeffery2. abi: Capture deprecation of pldm_close() 158ba05dba7SAndrew Jeffery 159d2a36a16SAndrew Jeffery## [0.6.0] - 2023-08-22 160d2a36a16SAndrew Jeffery 1617062382aSAndrew Jeffery### Changed 1627062382aSAndrew Jeffery 1637062382aSAndrew Jeffery1. pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity() 1645cf32ea8SAndrew Jeffery2. meson: Apply `b_ndebug=if-release` by default 165e7eebe33SAndrew Jeffery3. pdr : Stabilize pldm_entity_association_tree_add_entity() 16675ce90a5SAndrew Jeffery4. pdr: Stabilise pldm_entity_association_tree_find_with_locality() 167def8e024SPavithra Barithaya5. pdr: Stabilize pldm_entity_node_get_remote_container_id() 168ac24737cSAndrew Jeffery6. transport: af-mctp: Assign out-params on success in \*\_recv() 16924576290SRashmica Gupta7. transport: Generalise the pldm_transport_recv_msg() API 1707062382aSAndrew Jeffery 171255f6549SAndrew Jeffery### Removed 172255f6549SAndrew Jeffery 173255f6549SAndrew Jeffery1. pdr: Remove pldm_entity_association_pdr_add() 1747e3c9e4dSPavithra Barithaya2. state-set: Remove enum pldm_state_set_operational_fault_status_values 175255f6549SAndrew Jeffery 176b4cd5172SDelphine CC Chiu### Fixed 177b4cd5172SDelphine CC Chiu 178b4cd5172SDelphine CC Chiu1. transport: register init_pollfd callback for af-mctp 17936402ffbSBonnieLo-wiwynn2. transport: fix init_pollfd function parameter 180f1ebde49SRashmica Gupta3. transport: Fix doxygen and variables for send and recv functions 1817caa8af1SAndrew Jeffery4. transport: af-mctp: Ensure malloc() succeeds in \*\_recv() 182b4cd5172SDelphine CC Chiu 18320cc060cSAndrew Jeffery## [0.5.0] - 2023-08-09 18420cc060cSAndrew Jeffery 18565945992SAndrew Jeffery### Added 18665945992SAndrew Jeffery 18765945992SAndrew Jeffery1. pdr: Introduce pldm_entity_association_pdr_add_check() 18865945992SAndrew Jeffery 1893b93d09cSAndrew Jeffery### Changed 1903b93d09cSAndrew Jeffery 1913b93d09cSAndrew Jeffery1. pdr: Allow record_handle to be NULL for pldm_pdr_add_check() 1923380a6c6SAndrew Jeffery2. transport: pldm_transport_poll(): Adjust return value semantics 193f56e4dcdSThu Nguyen3. transport: free un-wanted responses in pldm_transport_send_recv_msg() 1943b93d09cSAndrew Jeffery 1958bcbe251SAndrew Jeffery### Deprecated 1968bcbe251SAndrew Jeffery 1978bcbe251SAndrew Jeffery1. state-set: Enum pldm_state_set_operational_fault_status_values 1988bcbe251SAndrew Jeffery 1998bcbe251SAndrew Jeffery The enum operational_fault_status is defined with wrong members and will 2008bcbe251SAndrew Jeffery eventually be replaced with the correct members. Any uses of 2018bcbe251SAndrew Jeffery pldm_state_set_operational_fault_status_values members should move to 2028bcbe251SAndrew Jeffery equivalent pldm_state_set_operational_stress_status_values members if needed. 2038bcbe251SAndrew Jeffery 2048bcbe251SAndrew Jeffery2. platform: Struct field name in fru_record_set PDR 2058bcbe251SAndrew Jeffery 2068bcbe251SAndrew Jeffery References to entity_instance_num should be changed to entity_instance 2078bcbe251SAndrew Jeffery 2088bcbe251SAndrew Jeffery3. platform: Struct field name in numeric sensor value PDR 2098bcbe251SAndrew Jeffery 2108bcbe251SAndrew Jeffery References to entity_instance_num should be changed to entity_instance 2118bcbe251SAndrew Jeffery 2120ecf6bcfSAndrew Jeffery### Removed 2130ecf6bcfSAndrew Jeffery 2140ecf6bcfSAndrew Jeffery1. bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length() 2158b1c0340SAndrew Jeffery2. bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum() 21646d07685SAndrew Jeffery3. bios_table: Remove pldm_bios_table_attr_value_entry_encode_string() 2174e1f131cSAndrew Jeffery4. bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer() 21850dd159eSAndrew Jeffery5. bios_table: Remove pldm_bios_table_append_pad_checksum() 2198810feceSAndrew Jeffery6. fru: Remove get_fru_record_by_option() 220d09b1af0SAndrew Jeffery7. pdr: Make is_present() static 221c79a5df5SAndrew Jeffery8. pdr: Remove pldm_pdr_add() 22214d2984bSAndrew Jeffery9. pdr: Remove pldm_pdr_add_fru_record_set() 2238985dfd1SAndrew Jeffery10. pdr: Remove pldm_entity_association_pdr_add_from_node() 224643c443bSAndrew Jeffery11. pdr: Make find_entity_ref_in_tree() static 22554d91e81SAndrew Jeffery12. pdr: Make entity_association_tree_find() static 2260ecf6bcfSAndrew Jeffery 22743a7985dSThu Nguyen### Fixed 22843a7985dSThu Nguyen 22943a7985dSThu Nguyen1. requester: Fix response buffer cast in pldm_send_recv() 230c6cc028fSAndrew Jeffery2. pdr: Hoist record handle overflow test to avoid memory leak 231ef485068SThu Nguyen3. transport: Correct comparison in while loop condition 23243a7985dSThu Nguyen 2338a4b5336SAndrew Jeffery## [0.4.0] - 2023-07-14 2348a4b5336SAndrew Jeffery 235044ee19aSAndrew Jeffery### Added 236044ee19aSAndrew Jeffery 237044ee19aSAndrew Jeffery1. bios_table: Introduce pldm_bios_table_append_pad_checksum_check() 2387cd16ff8SAndrew Jeffery2. fru: Introduce get_fru_record_by_option_check() 239cc394529SAndrew Jeffery3. pdr: Introduce pldm_entity_association_pdr_add_from_node_check() 240572a3950SAndrew Jeffery4. pdr: Introduce pldm_pdr_add_check() 241c821a700SAndrew Jeffery5. pdr: Introduce pldm_pdr_add_fru_record_set_check() 242044ee19aSAndrew Jeffery 243986df2a1SAndrew Jeffery### Changed 244986df2a1SAndrew Jeffery 245986df2a1SAndrew Jeffery1. requester: Mark pldm_close() as LIBPLDM_ABI_TESTING 2465fb9680bSAndrew Jeffery2. requester: Expose pldm_close() in header 247a873eca0SAndrew Jeffery3. bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow 248757e81a1SAndrew Jeffery4. bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc 24973d9176aSAndrew Jeffery5. bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration 250a8bb22edSAndrew Jeffery6. pdr: pldm_pdr_init(): Return NULL on allocation failure 251fca1b60fSAndrew Jeffery7. pdr: pldm_pdr_destroy(): Exit early if repo is NULL 2525565fcdeSAndrew Jeffery8. pdr: Document preconditions for trivial accessor functions 2535565fcdeSAndrew Jeffery 2545565fcdeSAndrew Jeffery A trivial accessor function is one that exposes properties of an object in a 2555565fcdeSAndrew Jeffery way can't result in an error, beyond passing an invalid argument to the 2565565fcdeSAndrew Jeffery function. For APIs meeting this definition we define a precondition that 2575565fcdeSAndrew Jeffery struct pointers must point to valid objects to avoid polluting the function 2585565fcdeSAndrew Jeffery prototypes. The following APIs now have this precondition explicitly defined: 2595565fcdeSAndrew Jeffery 2605565fcdeSAndrew Jeffery - pldm_entity_extract() 2615565fcdeSAndrew Jeffery - pldm_entity_get_parent() 2625565fcdeSAndrew Jeffery - pldm_entity_is_exist_parent() 2635565fcdeSAndrew Jeffery - pldm_entity_is_node_parent() 2645565fcdeSAndrew Jeffery - pldm_is_current_parent_child 2655565fcdeSAndrew Jeffery - pldm_is_empty_entity_assoc_tree() 2665565fcdeSAndrew Jeffery - pldm_pdr_get_record_count() 2675565fcdeSAndrew Jeffery - pldm_pdr_get_record_handle() 2685565fcdeSAndrew Jeffery - pldm_pdr_get_repo_size() 2695565fcdeSAndrew Jeffery - pldm_pdr_record_is_remote() 270986df2a1SAndrew Jeffery 27115b8818cSAndrew Jeffery9. pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor 27201425e96SAndrew Jeffery10. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments 273c40037d5SAndrew Jeffery11. pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc 2748e9b0de8SAndrew Jeffery12. pdr: pldm_entity_association_tree_visit(): Document preconditions 275cd17e5ccSAndrew Jeffery13. pdr: pldm_entity_association_tree_visit(): Exit early on failure 276a89e015cSAndrew Jeffery14. pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument 2776e8a2617SAndrew Jeffery15. pdr: pldm_entity_get_num_children(): Return zero for invalid arguments 278375d9fc1SAndrew Jeffery16. pdr: pldm_is_current_parent_child(): Return false for invalid arguments 279c788348eSAndrew Jeffery17. pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments 280ba47e83eSAndrew Jeffery18. pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments 28194e364dbSAndrew Jeffery19. pdr: pldm_entity_association_tree_find(): Early exit on bad arguments 28285d7a056SAndrew Jeffery20. pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg 2833a5c46b4SAndrew Jeffery21. pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments 2840dbaa70fSAndrew Jeffery22. pdr: pldm_entity_association_pdr_extract(): Assign out params at exit 285c83ef86dSAndrew Jeffery23. pdr: pldm_entity_get_num_children(): Don't return invalid values 2868526892fSAndrew Jeffery24. libpldm: Lift or remove asserts where a subsequent check exists 28715b8818cSAndrew Jeffery 288fe0f01d8SAndrew Jeffery### Deprecated 289fe0f01d8SAndrew Jeffery 290fe0f01d8SAndrew Jeffery1. pldm_bios_table_attr_entry_integer_encode() 291fe0f01d8SAndrew Jeffery 292fe0f01d8SAndrew Jeffery Migrate to pldm_bios_table_attr_entry_integer_encode_check() 293fe0f01d8SAndrew Jeffery 2947aeb7edbSAndrew Jeffery2. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum() 2957aeb7edbSAndrew Jeffery 2967aeb7edbSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_enum_check() 2977aeb7edbSAndrew Jeffery 2982d66393fSAndrew Jeffery3. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string() 2992d66393fSAndrew Jeffery 3002d66393fSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_string_check() 3012d66393fSAndrew Jeffery 3020088a6aeSAndrew Jeffery4. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer() 3030088a6aeSAndrew Jeffery 3040088a6aeSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_integer_check() 3050088a6aeSAndrew Jeffery 306d11bf9f7SAndrew Jeffery5. pdr: Deprecate is_present() 307d11bf9f7SAndrew Jeffery 308d11bf9f7SAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 309d11bf9f7SAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 310d11bf9f7SAndrew Jeffery release after deprecation. 311d11bf9f7SAndrew Jeffery 312bfeb65ebSAndrew Jeffery6. pdr: Deprecate find_entity_ref_in_tree() 313bfeb65ebSAndrew Jeffery 314bfeb65ebSAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 315bfeb65ebSAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 316bfeb65ebSAndrew Jeffery release after deprecation. 317bfeb65ebSAndrew Jeffery 3187f589313SAndrew Jeffery7. pdr: Deprecate entity_association_tree_find() 3197f589313SAndrew Jeffery 3207f589313SAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 3217f589313SAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 3227f589313SAndrew Jeffery release after deprecation. 3237f589313SAndrew Jeffery 3241264fbd9SAndrew Jeffery8. bios_table: Stabilise pldm_bios_table_append_pad_checksum_check() 3251264fbd9SAndrew Jeffery 3261264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of 3271264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum() should migrate to 3281264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum_check() 3291264fbd9SAndrew Jeffery 330962fcec7SAndrew Jeffery9. fru: Stabilise get_fru_record_by_option_check() 331962fcec7SAndrew Jeffery 332962fcec7SAndrew Jeffery get_fru_record_by_option() is deprecated by this change. Users of 333962fcec7SAndrew Jeffery get_fru_record_by_option() should migrate to get_fru_record_by_option_check() 334962fcec7SAndrew Jeffery 3351354a6eeSAndrew Jeffery10. pdr: Stabilise pldm_entity_association_pdr_add_from_node_check() 3361354a6eeSAndrew Jeffery 3371354a6eeSAndrew Jeffery pldm_entity_association_pdr_add_from_node() is deprecated by this change. 3381354a6eeSAndrew Jeffery Users of pldm_entity_association_pdr_add_from_node() should migrate to 3391354a6eeSAndrew Jeffery pldm_entity_association_pdr_add_from_node_check() 3401354a6eeSAndrew Jeffery 341ca248ce3SAndrew Jeffery11. pdr: Stabilise pldm_pdr_add_check() 342ca248ce3SAndrew Jeffery 343ca248ce3SAndrew Jeffery pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should 344ca248ce3SAndrew Jeffery migrate to pldm_pdr_add_check() 345ca248ce3SAndrew Jeffery 346a2c69117SAndrew Jeffery12. pdr: Stabilise pldm_pdr_add_fru_record_set_check() 347a2c69117SAndrew Jeffery 348a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set() is deprecated by this change. Users of 349a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set() should migrate to 350a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set_check() 351a2c69117SAndrew Jeffery 3526409c8a0SAndrew Jeffery### Removed 3536409c8a0SAndrew Jeffery 3546409c8a0SAndrew Jeffery1. bios_table: Remove deprecated APIs sanitized by assert(): 3556409c8a0SAndrew Jeffery 3566409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_encode() 3576409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 3586409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 3596409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 3606409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 3616409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 3626409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 3636409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 3646409c8a0SAndrew Jeffery 36509778a82SAndrew Jeffery### Fixed 366ffd5342cSPavithra Barithaya 367ffd5342cSPavithra Barithaya1. pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API 3688cf70456SPavithra Barithaya2. pdr: Rework pldm_pdr_find_container_id_range_exclude() API 369a4da6858SAndrew Jeffery3. transport: mctp-demux: Don't test socket for non-zero value 3704e1ba8a7SAndrew Jeffery4. requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error 371af7a4d82SAndrew Jeffery5. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return 372178531a0SRashmica Gupta6. transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init() 373cd732d14SAndrew Jeffery7. abi: Update to remove pldm_close() from reference dumps 3749e33be96SAndrew Jeffery8. bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer() 375ffd5342cSPavithra Barithaya 376291da195SAndrew Jeffery## [0.3.0] - 2023-06-23 377291da195SAndrew Jeffery 3787c250340SDung Cao### Added 3797c250340SDung Cao 3807c250340SDung Cao1. Add encode/decode pldmMessagePollEvent data 38183841fb5SAndrew Jeffery2. README: Add a section on working with libpldm 38239bd2ea5SArchanaKakani3. pdr: Introduce remote_container_id and associated APIs 3839947f9d6SPavithra Barithaya4. pdr: Add APIs for creating and locating remote PDRs 3844d694346SPavithra Barithaya5. pdr: Add pldm_pdr_find_last_in_range() 38525ddbccfSPavithra Barithaya6. pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle() 3865dc02571SPavithra Barithaya7. pdr: Add pldm_pdr_find_container_id_range_exclude() 3877c250340SDung Cao 388b443b487SRashmica Gupta### Changed 389b443b487SRashmica Gupta 390b443b487SRashmica Gupta1. include: Move installed transport.h under libpldm/ 39183841fb5SAndrew Jeffery2. libpldm: Explicit deprecated, stable and testing ABI classes 3928de8e1ecSAndrew Jeffery3. meson: Reduce strength of oem-ibm requirements from enabled to allowed 3938de8e1ecSAndrew Jeffery 3948de8e1ecSAndrew Jeffery The `oem-ibm` feature is now enabled by the default meson configuration, for 3958de8e1ecSAndrew Jeffery CI purposes. `oem-ibm` is still disabled by default in the `libpldm` bitbake 3968de8e1ecSAndrew Jeffery recipe: 3978de8e1ecSAndrew Jeffery 3988de8e1ecSAndrew Jeffery https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb#L10 3998de8e1ecSAndrew Jeffery 4008de8e1ecSAndrew Jeffery To disable `oem-ibm` in your development builds, pass `-Doem-ibm=disabled` 4018de8e1ecSAndrew Jeffery when invoking `meson setup` 402b443b487SRashmica Gupta 40398c1e69dSAndrew Jeffery4. bios_table: Relax pldm_bios_table_string_entry_decode_string_check() 4040c9f5a8aSAndrew Jeffery5. bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check() 40598c1e69dSAndrew Jeffery 406d47e8ab8SAndrew Jeffery### Deprecated 407d47e8ab8SAndrew Jeffery 408d47e8ab8SAndrew Jeffery1. bios_table: Deprecate APIs with arguments sanitized using assert() 409d47e8ab8SAndrew Jeffery 410d47e8ab8SAndrew Jeffery C provides enough foot-guns without us encoding them into library APIs. 411d47e8ab8SAndrew Jeffery Specifically, deprecate the following in favour of their `*_check()` variants 412d47e8ab8SAndrew Jeffery which ensure assertions won't fail or otherwise invoke UB: 413d47e8ab8SAndrew Jeffery 414d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_encode() 415d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 416d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 417d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 418d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 419d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 420d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 421d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 422d47e8ab8SAndrew Jeffery 4234b4603b3SAndrew Jeffery### Removed 4244b4603b3SAndrew Jeffery 4254b4603b3SAndrew Jeffery1. libpldm: Remove the requester-api option 4264b4603b3SAndrew Jeffery 42739f88325SRashmica Gupta### Fixed 42839f88325SRashmica Gupta 42939f88325SRashmica Gupta1. requester: Make pldm_open() return existing fd 430abaf61f4SDung Cao2. transport: Prevent sticking in waiting for response 431b01fb1ccSThu Nguyen3. transport: Match on response in pldm_transport_send_recv_msg() 432a3035938SRashmica Gupta4. requester: Add check before accessing hdr in pldm_recv() 433df02e360SAndrew Jeffery5. bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref 434