43cb4b5f | 16-Jul-2024 |
Thu Nguyen <thu@os.amperecomputing.com> |
platform: Stabilise related decode_entity_auxiliary_names_pdr*() APIs
See usage example at: https://gerrit.openbmc.org/c/openbmc/pldm/+/72610
Change-Id: I16c6d42ad11afa59b04676fa187f5ea0764d1880 Si
platform: Stabilise related decode_entity_auxiliary_names_pdr*() APIs
See usage example at: https://gerrit.openbmc.org/c/openbmc/pldm/+/72610
Change-Id: I16c6d42ad11afa59b04676fa187f5ea0764d1880 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
show more ...
|
b6ef35b4 | 02-Jul-2024 |
Chris Wang <chris.wang.wiwynn@gmail.com> |
fw_update: Add encode req & decode resp for get_downstream_fw_params
Add support for Get Downstream Firmware Parameters to ask all downstream devices' Firmware Parameters.
The code is developed bas
fw_update: Add encode req & decode resp for get_downstream_fw_params
Add support for Get Downstream Firmware Parameters to ask all downstream devices' Firmware Parameters.
The code is developed based on the definition of 'GetDownstreamFirmwareParameters' in DSP0267_1.1.0. Section 10.5
Change-Id: I291ca3b623be6119434b70494bb9a12b22f600b9 Signed-off-by: Chris Wang <chris.wang.wiwynn@gmail.com> Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
dacfa354 | 22-Jun-2024 |
Thu Nguyen <thu@os.amperecomputing.com> |
pdr: Add related decode_entity_auxiliary_names_pdr*() APIs
Add `decode_entity_auxiliary_names_pdr()` to decode the entity auxiliary names PDR raw data to the data fields as table 95 in DSP0248_1.2.2
pdr: Add related decode_entity_auxiliary_names_pdr*() APIs
Add `decode_entity_auxiliary_names_pdr()` to decode the entity auxiliary names PDR raw data to the data fields as table 95 in DSP0248_1.2.2. The API will not decode the entity auxiliary names directly - to expose the language tags and names fields the caller has to subsequently call `decode_pldm_entity_auxiliary_names_pdr_index()`. Between the API calls the caller must allocate memory for the `names` field as an array of `struct pldm_entity_auxiliary_name` with `name_string_count` elements.
Change-Id: I5fc3989c4c4595546a70c01eb2b6dadcf8c14303 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
274732fc | 05-Jul-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
pdr: Add pldm_pdr_get_terminus_handle() API
Adds a new libpldm API to get the terminus handle of the particular record given as input from the PDR repo.
Change-Id: I3694cc3974a564296f4584b70de7d6d1
pdr: Add pldm_pdr_get_terminus_handle() API
Adds a new libpldm API to get the terminus handle of the particular record given as input from the PDR repo.
Change-Id: I3694cc3974a564296f4584b70de7d6d1dad2a866 Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
9e3a5d45 | 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I25415165df192cfc3bd1405aca81bfa5bf2f7a63 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
d9b70ba7 | 08-Jun-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
dsp: fru: Rename get_fru_record_by_option_check()
We drop the `_check` suffix so that it is now `get_fru_record_by_option()`.
To do so, introduce some infrastructure that makes renaming APIs easier
dsp: fru: Rename get_fru_record_by_option_check()
We drop the `_check` suffix so that it is now `get_fru_record_by_option()`.
To do so, introduce some infrastructure that makes renaming APIs easier and scripts the migration for users. The renaming process comes in several parts, which are captured in the addition to the changes checklist.
The coccinelle script based off the insight at [1].
[1]: https://stackoverflow.com/questions/42776220/coccinelle-help-to-replace-a-function-with-variable-args
Change-Id: I730b76c3e3c92dcc046fecbee76cd6b040f11d21 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
de67ab62 | 30-May-2024 |
Tal Yacobi <talycb8@gmail.com> |
platform: Stabilise GetStateEffecterStates functions
See usage example at: https://gerrit.openbmc.org/c/openbmc/pldm/+/71657
Change-Id: I8ef0961dbc8e87fb4ca8533142104b852a7fb0a4 Signed-off-by: Tal
platform: Stabilise GetStateEffecterStates functions
See usage example at: https://gerrit.openbmc.org/c/openbmc/pldm/+/71657
Change-Id: I8ef0961dbc8e87fb4ca8533142104b852a7fb0a4 Signed-off-by: Tal Yacobi <talycb8@gmail.com> Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
f490a38f | 31-May-2024 |
Tal Yacobi <talycb8@gmail.com> |
platform: Change GetStateEffecterStates API error personality
APIs should return negative errno instead of PLDM completion codes.
Change-Id: Ic7017ecc02f3d969aa8fd5c6b1fa89dced484ab1 Signed-off-by:
platform: Change GetStateEffecterStates API error personality
APIs should return negative errno instead of PLDM completion codes.
Change-Id: Ic7017ecc02f3d969aa8fd5c6b1fa89dced484ab1 Signed-off-by: Tal Yacobi <talycb8@gmail.com> Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
d861a681 | 03-Jun-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
dsp: base: Rework {un,}pack_pldm_header() error handling
The current preference is that library APIs return negative errno values to signal implementation errors. That doesn't jive with existing sta
dsp: base: Rework {un,}pack_pldm_header() error handling
The current preference is that library APIs return negative errno values to signal implementation errors. That doesn't jive with existing stable APIs returning PLDM completion codes, so provide a means to translate between the two.
The first users are the {un,}pack_pldm_header() functions.
Change-Id: I7b7cb97a1d8b96ec0fec1c0a5fbd8503da834d86 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
48761c62 | 03-Jun-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
libpldm: Reorganize source and test files
Primarily this is about moving specification-specific files into 'dsp/' (in the "DMTF Standard Publication" sense[1]) subdirectories of both src/ and tests/
libpldm: Reorganize source and test files
Primarily this is about moving specification-specific files into 'dsp/' (in the "DMTF Standard Publication" sense[1]) subdirectories of both src/ and tests/.
[1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP4014_2.14.0.pdf
libpldm is a concrete C implementation of the PLDM family of specifications. This invokes some accidental complexity[2] such as the msgbuf APIs and other concerns.
[2]: https://en.wikipedia.org/wiki/No_Silver_Bullet
Separate the essential complexity (everything under the dsp/ subdirectories) from the accidental complexity (almost everything else).
While doing so, I took the opportunity to drop the 'libpldm_' prefix and '_test' suffix from a variety of tests. The 'libpldm_' prefix is a hangover from the days when libpldm was a subproject of OpenBMC's pldm repo. The '_test' suffix feels redundant given the parent directory path.
Note that we maintain separation of the src/ and tests/. The test suite is implemented in C++ while libpldm's APIs are declared and defined in C. The ability to chop all the tests and C++ out of the implementation by ignoring a subtree seems like a desirable property when vendoring the library into other projects.
Finally, update the x86_64 GCC ABI dump, as rearranging the source causes a lot of churn in its definitions.
Change-Id: Icffcc6cf48b3101ecd38168827c0a81cffb8f083 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|