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 20acf22454SAndrew Jeffery### Added 21acf22454SAndrew Jeffery 22acf22454SAndrew Jeffery1. base: Provide pldm_msg_hdr_correlate_response() 23acf22454SAndrew Jeffery2. transport: af-mctp: Add pldm_transport_af_mctp_bind() 24499389ecSKamalkumar Patel3. oem: ibm: Add chapdata file type support 256967fc73SManojkiran Eda4. base: Added PLDM_SMBIOS & PLDM_RDE message types 26acf22454SAndrew Jeffery 27acf22454SAndrew Jeffery### Changed 28acf22454SAndrew Jeffery 29acf22454SAndrew Jeffery1. base: Stabilise pldm_msg_hdr_correlate_response() 30acf22454SAndrew Jeffery2. transport: af-mctp: Stabilise pldm_transport_af_mctp_bind() 31b0c1d20aSAndrew Jeffery3. libpldm: Fix header use 32efb40069SAndrew Jeffery4. libpldm: More fixes for header use 33*4a307bcaSPavithra Barithaya5. pdr: Stabilise pldm_pdr_find_last_in_range() API 34acf22454SAndrew Jeffery 35d12dd36eSAndrew Jeffery### Fixed 36d12dd36eSAndrew Jeffery 37d12dd36eSAndrew Jeffery1. libpldm: Rationalise the local and installed path of pldm.h 38d12dd36eSAndrew Jeffery 393f39f963SAndrew Jeffery## [0.7.0] - 2023-08-29 403f39f963SAndrew Jeffery 41f37e4dc8SPavithra Barithaya### Added 42f37e4dc8SPavithra Barithaya 43f37e4dc8SPavithra Barithaya1. state-set: Add new enum for Operational Fault Status enum 446c835a14SAndrew Jeffery 456c835a14SAndrew Jeffery### Changed 466c835a14SAndrew Jeffery 476c835a14SAndrew Jeffery1. transport: Match specified metadata in pldm_transport_send_recv_msg() 4845816b89SAndrew Jeffery2. transport: mctp-demux: Drop ABI annotation for internal symbols 490a6d6821SAndrew Jeffery3. transport: Stabilise core transport and implementation APIs 500a6d6821SAndrew Jeffery 510a6d6821SAndrew Jeffery This stabilisation covers the following headers and functions: 520a6d6821SAndrew Jeffery 530a6d6821SAndrew Jeffery - libpldm/transport.h 540a6d6821SAndrew Jeffery 550a6d6821SAndrew Jeffery - pldm_transport_poll() 560a6d6821SAndrew Jeffery - pldm_transport_send_msg() 570a6d6821SAndrew Jeffery - pldm_transport_recv_msg() 580a6d6821SAndrew Jeffery - pldm_transport_send_recv_msg() 590a6d6821SAndrew Jeffery 600a6d6821SAndrew Jeffery - libpldm/transport/af-mctp.h 610a6d6821SAndrew Jeffery 620a6d6821SAndrew Jeffery - pldm_transport_af_mctp_init() 630a6d6821SAndrew Jeffery - pldm_transport_af_mctp_destroy() 640a6d6821SAndrew Jeffery - pldm_transport_af_mctp_core() 650a6d6821SAndrew Jeffery - pldm_transport_af_mctp_init_pollfd() 660a6d6821SAndrew Jeffery - pldm_transport_af_mctp_map_tid() 670a6d6821SAndrew Jeffery - pldm_transport_af_mctp_unmap_tid() 680a6d6821SAndrew Jeffery 690a6d6821SAndrew Jeffery - libpldm/transport/mctp-demux.h 700a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_init() 710a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_destroy() 720a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_core() 730a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_init_pollfd() 740a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_map_tid() 750a6d6821SAndrew Jeffery - pldm_transport_mctp_demux_unmap_tid() 760a6d6821SAndrew Jeffery 770a6d6821SAndrew Jeffery### Deprecated 780a6d6821SAndrew Jeffery 790a6d6821SAndrew Jeffery1. All the existing "requester" APIs from `libpldm/pldm.h` (also known as 800a6d6821SAndrew Jeffery `libpldm/requester/pldm.h`): 810a6d6821SAndrew Jeffery 820a6d6821SAndrew Jeffery - pldm_open() 830a6d6821SAndrew Jeffery - pldm_send_recv() 840a6d6821SAndrew Jeffery - pldm_send() 850a6d6821SAndrew Jeffery - pldm_recv() 860a6d6821SAndrew Jeffery - pldm_recv_any() 870a6d6821SAndrew Jeffery - pldm_close() 880a6d6821SAndrew Jeffery 890a6d6821SAndrew Jeffery Users should migrate to the newer "transport" APIs instead. 90f37e4dc8SPavithra Barithaya 91ba05dba7SAndrew Jeffery## Fixed 92ba05dba7SAndrew Jeffery 93ba05dba7SAndrew Jeffery1. tests: Exclude transport tests when build excludes testing ABIs 9434ac891fSAndrew Jeffery2. abi: Capture deprecation of pldm_close() 95ba05dba7SAndrew Jeffery 96d2a36a16SAndrew Jeffery## [0.6.0] - 2023-08-22 97d2a36a16SAndrew Jeffery 987062382aSAndrew Jeffery### Changed 997062382aSAndrew Jeffery 1007062382aSAndrew Jeffery1. pdr: Avoid ID overflow in pldm_entity_association_tree_add_entity() 1015cf32ea8SAndrew Jeffery2. meson: Apply `b_ndebug=if-release` by default 102e7eebe33SAndrew Jeffery3. pdr : Stabilize pldm_entity_association_tree_add_entity() 10375ce90a5SAndrew Jeffery4. pdr: Stabilise pldm_entity_association_tree_find_with_locality() 104def8e024SPavithra Barithaya5. pdr: Stabilize pldm_entity_node_get_remote_container_id() 105ac24737cSAndrew Jeffery6. transport: af-mctp: Assign out-params on success in \*\_recv() 10624576290SRashmica Gupta7. transport: Generalise the pldm_transport_recv_msg() API 1077062382aSAndrew Jeffery 108255f6549SAndrew Jeffery### Removed 109255f6549SAndrew Jeffery 110255f6549SAndrew Jeffery1. pdr: Remove pldm_entity_association_pdr_add() 1117e3c9e4dSPavithra Barithaya2. state-set: Remove enum pldm_state_set_operational_fault_status_values 112255f6549SAndrew Jeffery 113b4cd5172SDelphine CC Chiu### Fixed 114b4cd5172SDelphine CC Chiu 115b4cd5172SDelphine CC Chiu1. transport: register init_pollfd callback for af-mctp 11636402ffbSBonnieLo-wiwynn2. transport: fix init_pollfd function parameter 117f1ebde49SRashmica Gupta3. transport: Fix doxygen and variables for send and recv functions 1187caa8af1SAndrew Jeffery4. transport: af-mctp: Ensure malloc() succeeds in \*\_recv() 119b4cd5172SDelphine CC Chiu 12020cc060cSAndrew Jeffery## [0.5.0] - 2023-08-09 12120cc060cSAndrew Jeffery 12265945992SAndrew Jeffery### Added 12365945992SAndrew Jeffery 12465945992SAndrew Jeffery1. pdr: Introduce pldm_entity_association_pdr_add_check() 12565945992SAndrew Jeffery 1263b93d09cSAndrew Jeffery### Changed 1273b93d09cSAndrew Jeffery 1283b93d09cSAndrew Jeffery1. pdr: Allow record_handle to be NULL for pldm_pdr_add_check() 1293380a6c6SAndrew Jeffery2. transport: pldm_transport_poll(): Adjust return value semantics 130f56e4dcdSThu Nguyen3. transport: free un-wanted responses in pldm_transport_send_recv_msg() 1313b93d09cSAndrew Jeffery 1328bcbe251SAndrew Jeffery### Deprecated 1338bcbe251SAndrew Jeffery 1348bcbe251SAndrew Jeffery1. state-set: Enum pldm_state_set_operational_fault_status_values 1358bcbe251SAndrew Jeffery 1368bcbe251SAndrew Jeffery The enum operational_fault_status is defined with wrong members and will 1378bcbe251SAndrew Jeffery eventually be replaced with the correct members. Any uses of 1388bcbe251SAndrew Jeffery pldm_state_set_operational_fault_status_values members should move to 1398bcbe251SAndrew Jeffery equivalent pldm_state_set_operational_stress_status_values members if needed. 1408bcbe251SAndrew Jeffery 1418bcbe251SAndrew Jeffery2. platform: Struct field name in fru_record_set PDR 1428bcbe251SAndrew Jeffery 1438bcbe251SAndrew Jeffery References to entity_instance_num should be changed to entity_instance 1448bcbe251SAndrew Jeffery 1458bcbe251SAndrew Jeffery3. platform: Struct field name in numeric sensor value PDR 1468bcbe251SAndrew Jeffery 1478bcbe251SAndrew Jeffery References to entity_instance_num should be changed to entity_instance 1488bcbe251SAndrew Jeffery 1490ecf6bcfSAndrew Jeffery### Removed 1500ecf6bcfSAndrew Jeffery 1510ecf6bcfSAndrew Jeffery1. bios_table: Remove pldm_bios_table_attr_entry_integer_encode_length() 1528b1c0340SAndrew Jeffery2. bios_table: Remove pldm_bios_table_attr_value_entry_encode_enum() 15346d07685SAndrew Jeffery3. bios_table: Remove pldm_bios_table_attr_value_entry_encode_string() 1544e1f131cSAndrew Jeffery4. bios_table: Remove pldm_bios_table_attr_value_entry_encode_integer() 15550dd159eSAndrew Jeffery5. bios_table: Remove pldm_bios_table_append_pad_checksum() 1568810feceSAndrew Jeffery6. fru: Remove get_fru_record_by_option() 157d09b1af0SAndrew Jeffery7. pdr: Make is_present() static 158c79a5df5SAndrew Jeffery8. pdr: Remove pldm_pdr_add() 15914d2984bSAndrew Jeffery9. pdr: Remove pldm_pdr_add_fru_record_set() 1608985dfd1SAndrew Jeffery10. pdr: Remove pldm_entity_association_pdr_add_from_node() 161643c443bSAndrew Jeffery11. pdr: Make find_entity_ref_in_tree() static 16254d91e81SAndrew Jeffery12. pdr: Make entity_association_tree_find() static 1630ecf6bcfSAndrew Jeffery 16443a7985dSThu Nguyen### Fixed 16543a7985dSThu Nguyen 16643a7985dSThu Nguyen1. requester: Fix response buffer cast in pldm_send_recv() 167c6cc028fSAndrew Jeffery2. pdr: Hoist record handle overflow test to avoid memory leak 168ef485068SThu Nguyen3. transport: Correct comparison in while loop condition 16943a7985dSThu Nguyen 1708a4b5336SAndrew Jeffery## [0.4.0] - 2023-07-14 1718a4b5336SAndrew Jeffery 172044ee19aSAndrew Jeffery### Added 173044ee19aSAndrew Jeffery 174044ee19aSAndrew Jeffery1. bios_table: Introduce pldm_bios_table_append_pad_checksum_check() 1757cd16ff8SAndrew Jeffery2. fru: Introduce get_fru_record_by_option_check() 176cc394529SAndrew Jeffery3. pdr: Introduce pldm_entity_association_pdr_add_from_node_check() 177572a3950SAndrew Jeffery4. pdr: Introduce pldm_pdr_add_check() 178c821a700SAndrew Jeffery5. pdr: Introduce pldm_pdr_add_fru_record_set_check() 179044ee19aSAndrew Jeffery 180986df2a1SAndrew Jeffery### Changed 181986df2a1SAndrew Jeffery 182986df2a1SAndrew Jeffery1. requester: Mark pldm_close() as LIBPLDM_ABI_TESTING 1835fb9680bSAndrew Jeffery2. requester: Expose pldm_close() in header 184a873eca0SAndrew Jeffery3. bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow 185757e81a1SAndrew Jeffery4. bios_table: pldm_bios_table_iter_create(): Return NULL on failed alloc 18673d9176aSAndrew Jeffery5. bios_table: pldm_bios_table_iter_next(): Invalid entry halts iteration 187a8bb22edSAndrew Jeffery6. pdr: pldm_pdr_init(): Return NULL on allocation failure 188fca1b60fSAndrew Jeffery7. pdr: pldm_pdr_destroy(): Exit early if repo is NULL 1895565fcdeSAndrew Jeffery8. pdr: Document preconditions for trivial accessor functions 1905565fcdeSAndrew Jeffery 1915565fcdeSAndrew Jeffery A trivial accessor function is one that exposes properties of an object in a 1925565fcdeSAndrew Jeffery way can't result in an error, beyond passing an invalid argument to the 1935565fcdeSAndrew Jeffery function. For APIs meeting this definition we define a precondition that 1945565fcdeSAndrew Jeffery struct pointers must point to valid objects to avoid polluting the function 1955565fcdeSAndrew Jeffery prototypes. The following APIs now have this precondition explicitly defined: 1965565fcdeSAndrew Jeffery 1975565fcdeSAndrew Jeffery - pldm_entity_extract() 1985565fcdeSAndrew Jeffery - pldm_entity_get_parent() 1995565fcdeSAndrew Jeffery - pldm_entity_is_exist_parent() 2005565fcdeSAndrew Jeffery - pldm_entity_is_node_parent() 2015565fcdeSAndrew Jeffery - pldm_is_current_parent_child 2025565fcdeSAndrew Jeffery - pldm_is_empty_entity_assoc_tree() 2035565fcdeSAndrew Jeffery - pldm_pdr_get_record_count() 2045565fcdeSAndrew Jeffery - pldm_pdr_get_record_handle() 2055565fcdeSAndrew Jeffery - pldm_pdr_get_repo_size() 2065565fcdeSAndrew Jeffery - pldm_pdr_record_is_remote() 207986df2a1SAndrew Jeffery 20815b8818cSAndrew Jeffery9. pdr: pldm_entity_node_get_remote_container_id() is a trivial accessor 20901425e96SAndrew Jeffery10. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Exit early on NULL arguments 210c40037d5SAndrew Jeffery11. pdr: pldm_entity_association_tree_init(): Return NULL on failed alloc 2118e9b0de8SAndrew Jeffery12. pdr: pldm_entity_association_tree_visit(): Document preconditions 212cd17e5ccSAndrew Jeffery13. pdr: pldm_entity_association_tree_visit(): Exit early on failure 213a89e015cSAndrew Jeffery14. pdr: pldm_entity_association_tree_destroy(): Exit early on bad argument 2146e8a2617SAndrew Jeffery15. pdr: pldm_entity_get_num_children(): Return zero for invalid arguments 215375d9fc1SAndrew Jeffery16. pdr: pldm_is_current_parent_child(): Return false for invalid arguments 216c788348eSAndrew Jeffery17. pdr: pldm_entity_association_pdr_add(): Exit early on bad arguments 217ba47e83eSAndrew Jeffery18. pdr: pldm_find_entity_ref_in_tree(): Exit early on bad arguments 21894e364dbSAndrew Jeffery19. pdr: pldm_entity_association_tree_find(): Early exit on bad arguments 21985d7a056SAndrew Jeffery20. pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg 2203a5c46b4SAndrew Jeffery21. pdr: pldm_entity_association_pdr_extract(): Early exit on bad arguments 2210dbaa70fSAndrew Jeffery22. pdr: pldm_entity_association_pdr_extract(): Assign out params at exit 222c83ef86dSAndrew Jeffery23. pdr: pldm_entity_get_num_children(): Don't return invalid values 2238526892fSAndrew Jeffery24. libpldm: Lift or remove asserts where a subsequent check exists 22415b8818cSAndrew Jeffery 225fe0f01d8SAndrew Jeffery### Deprecated 226fe0f01d8SAndrew Jeffery 227fe0f01d8SAndrew Jeffery1. pldm_bios_table_attr_entry_integer_encode() 228fe0f01d8SAndrew Jeffery 229fe0f01d8SAndrew Jeffery Migrate to pldm_bios_table_attr_entry_integer_encode_check() 230fe0f01d8SAndrew Jeffery 2317aeb7edbSAndrew Jeffery2. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum() 2327aeb7edbSAndrew Jeffery 2337aeb7edbSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_enum_check() 2347aeb7edbSAndrew Jeffery 2352d66393fSAndrew Jeffery3. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string() 2362d66393fSAndrew Jeffery 2372d66393fSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_string_check() 2382d66393fSAndrew Jeffery 2390088a6aeSAndrew Jeffery4. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_integer() 2400088a6aeSAndrew Jeffery 2410088a6aeSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_integer_check() 2420088a6aeSAndrew Jeffery 243d11bf9f7SAndrew Jeffery5. pdr: Deprecate is_present() 244d11bf9f7SAndrew Jeffery 245d11bf9f7SAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 246d11bf9f7SAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 247d11bf9f7SAndrew Jeffery release after deprecation. 248d11bf9f7SAndrew Jeffery 249bfeb65ebSAndrew Jeffery6. pdr: Deprecate find_entity_ref_in_tree() 250bfeb65ebSAndrew Jeffery 251bfeb65ebSAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 252bfeb65ebSAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 253bfeb65ebSAndrew Jeffery release after deprecation. 254bfeb65ebSAndrew Jeffery 2557f589313SAndrew Jeffery7. pdr: Deprecate entity_association_tree_find() 2567f589313SAndrew Jeffery 2577f589313SAndrew Jeffery There should be no users of this symbol. If you are a user, you should figure 2587f589313SAndrew Jeffery out how to stop, or get in touch. This symbol will be marked static the 2597f589313SAndrew Jeffery release after deprecation. 2607f589313SAndrew Jeffery 2611264fbd9SAndrew Jeffery8. bios_table: Stabilise pldm_bios_table_append_pad_checksum_check() 2621264fbd9SAndrew Jeffery 2631264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum() is deprecated by this change. Users of 2641264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum() should migrate to 2651264fbd9SAndrew Jeffery pldm_bios_table_append_pad_checksum_check() 2661264fbd9SAndrew Jeffery 267962fcec7SAndrew Jeffery9. fru: Stabilise get_fru_record_by_option_check() 268962fcec7SAndrew Jeffery 269962fcec7SAndrew Jeffery get_fru_record_by_option() is deprecated by this change. Users of 270962fcec7SAndrew Jeffery get_fru_record_by_option() should migrate to get_fru_record_by_option_check() 271962fcec7SAndrew Jeffery 2721354a6eeSAndrew Jeffery10. pdr: Stabilise pldm_entity_association_pdr_add_from_node_check() 2731354a6eeSAndrew Jeffery 2741354a6eeSAndrew Jeffery pldm_entity_association_pdr_add_from_node() is deprecated by this change. 2751354a6eeSAndrew Jeffery Users of pldm_entity_association_pdr_add_from_node() should migrate to 2761354a6eeSAndrew Jeffery pldm_entity_association_pdr_add_from_node_check() 2771354a6eeSAndrew Jeffery 278ca248ce3SAndrew Jeffery11. pdr: Stabilise pldm_pdr_add_check() 279ca248ce3SAndrew Jeffery 280ca248ce3SAndrew Jeffery pldm_pdr_add() is deprecated by this change. Users of pldm_pdr_add() should 281ca248ce3SAndrew Jeffery migrate to pldm_pdr_add_check() 282ca248ce3SAndrew Jeffery 283a2c69117SAndrew Jeffery12. pdr: Stabilise pldm_pdr_add_fru_record_set_check() 284a2c69117SAndrew Jeffery 285a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set() is deprecated by this change. Users of 286a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set() should migrate to 287a2c69117SAndrew Jeffery pldm_pdr_add_fru_record_set_check() 288a2c69117SAndrew Jeffery 2896409c8a0SAndrew Jeffery### Removed 2906409c8a0SAndrew Jeffery 2916409c8a0SAndrew Jeffery1. bios_table: Remove deprecated APIs sanitized by assert(): 2926409c8a0SAndrew Jeffery 2936409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_encode() 2946409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 2956409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 2966409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 2976409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 2986409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 2996409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 3006409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 3016409c8a0SAndrew Jeffery 30209778a82SAndrew Jeffery### Fixed 303ffd5342cSPavithra Barithaya 304ffd5342cSPavithra Barithaya1. pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API 3058cf70456SPavithra Barithaya2. pdr: Rework pldm_pdr_find_container_id_range_exclude() API 306a4da6858SAndrew Jeffery3. transport: mctp-demux: Don't test socket for non-zero value 3074e1ba8a7SAndrew Jeffery4. requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error 308af7a4d82SAndrew Jeffery5. pdr: pldm_pdr_fru_record_set_find_by_rsi(): Document reality of return 309178531a0SRashmica Gupta6. transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init() 310cd732d14SAndrew Jeffery7. abi: Update to remove pldm_close() from reference dumps 3119e33be96SAndrew Jeffery8. bios_table: Annotate pldm_bios_table_attr_value_entry_encode_integer() 312ffd5342cSPavithra Barithaya 313291da195SAndrew Jeffery## [0.3.0] - 2023-06-23 314291da195SAndrew Jeffery 3157c250340SDung Cao### Added 3167c250340SDung Cao 3177c250340SDung Cao1. Add encode/decode pldmMessagePollEvent data 31883841fb5SAndrew Jeffery2. README: Add a section on working with libpldm 31939bd2ea5SArchanaKakani3. pdr: Introduce remote_container_id and associated APIs 3209947f9d6SPavithra Barithaya4. pdr: Add APIs for creating and locating remote PDRs 3214d694346SPavithra Barithaya5. pdr: Add pldm_pdr_find_last_in_range() 32225ddbccfSPavithra Barithaya6. pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle() 3235dc02571SPavithra Barithaya7. pdr: Add pldm_pdr_find_container_id_range_exclude() 3247c250340SDung Cao 325b443b487SRashmica Gupta### Changed 326b443b487SRashmica Gupta 327b443b487SRashmica Gupta1. include: Move installed transport.h under libpldm/ 32883841fb5SAndrew Jeffery2. libpldm: Explicit deprecated, stable and testing ABI classes 3298de8e1ecSAndrew Jeffery3. meson: Reduce strength of oem-ibm requirements from enabled to allowed 3308de8e1ecSAndrew Jeffery 3318de8e1ecSAndrew Jeffery The `oem-ibm` feature is now enabled by the default meson configuration, for 3328de8e1ecSAndrew Jeffery CI purposes. `oem-ibm` is still disabled by default in the `libpldm` bitbake 3338de8e1ecSAndrew Jeffery recipe: 3348de8e1ecSAndrew Jeffery 3358de8e1ecSAndrew Jeffery https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb#L10 3368de8e1ecSAndrew Jeffery 3378de8e1ecSAndrew Jeffery To disable `oem-ibm` in your development builds, pass `-Doem-ibm=disabled` 3388de8e1ecSAndrew Jeffery when invoking `meson setup` 339b443b487SRashmica Gupta 34098c1e69dSAndrew Jeffery4. bios_table: Relax pldm_bios_table_string_entry_decode_string_check() 3410c9f5a8aSAndrew Jeffery5. bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check() 34298c1e69dSAndrew Jeffery 343d47e8ab8SAndrew Jeffery### Deprecated 344d47e8ab8SAndrew Jeffery 345d47e8ab8SAndrew Jeffery1. bios_table: Deprecate APIs with arguments sanitized using assert() 346d47e8ab8SAndrew Jeffery 347d47e8ab8SAndrew Jeffery C provides enough foot-guns without us encoding them into library APIs. 348d47e8ab8SAndrew Jeffery Specifically, deprecate the following in favour of their `*_check()` variants 349d47e8ab8SAndrew Jeffery which ensure assertions won't fail or otherwise invoke UB: 350d47e8ab8SAndrew Jeffery 351d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_encode() 352d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 353d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 354d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 355d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 356d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 357d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 358d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 359d47e8ab8SAndrew Jeffery 3604b4603b3SAndrew Jeffery### Removed 3614b4603b3SAndrew Jeffery 3624b4603b3SAndrew Jeffery1. libpldm: Remove the requester-api option 3634b4603b3SAndrew Jeffery 36439f88325SRashmica Gupta### Fixed 36539f88325SRashmica Gupta 36639f88325SRashmica Gupta1. requester: Make pldm_open() return existing fd 367abaf61f4SDung Cao2. transport: Prevent sticking in waiting for response 368b01fb1ccSThu Nguyen3. transport: Match on response in pldm_transport_send_recv_msg() 369a3035938SRashmica Gupta4. requester: Add check before accessing hdr in pldm_recv() 370df02e360SAndrew Jeffery5. bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref 371