History log of /openbmc/libpldm/include/ (Results 76 – 100 of 212)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
dacfa35422-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 ...

274732fc05-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 ...

e5469f5406-Jul-2024 Thu Nguyen <thu@os.amperecomputing.com>

platform: Define macros for the responded transferflags

`Table 16: PollForPlatformEventMessage command format` and `Table 68:
GetPDR command format` in DSP0248 v1.2.2 define the values of the
respon

platform: Define macros for the responded transferflags

`Table 16: PollForPlatformEventMessage command format` and `Table 68:
GetPDR command format` in DSP0248 v1.2.2 define the values of the
responded `transferflag` for PLDM platform and control commands.
Add the definition for further using.

Change-Id: Ibd97918a7a5add10dbb5db7c044c71daa5bbaa4e
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>

show more ...

a1efaa2e19-Jun-2024 Andrew Jeffery <andrew@codeconstruct.com.au>

include: Drop compat symlinks for IBM OEM headers

These symlinks have been in-place long enough for people to migrate.
Provide a coccinelle semantic patch to help anyone who hasn't.

Change-Id: Iab4

include: Drop compat symlinks for IBM OEM headers

These symlinks have been in-place long enough for people to migrate.
Provide a coccinelle semantic patch to help anyone who hasn't.

Change-Id: Iab456ebba8d87c57eb2d573b7a8bffb394e0bb00
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>

show more ...

9e3a5d4517-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 ...

d9b70ba708-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 ...

0ee03b5b11-Jun-2024 Thu Nguyen <thu@os.amperecomputing.com>

base: Define macros for reserved TIDs

Move the definition of `PLDM_TID_RESERVED` from platform.h to base.h as
the value is defined in the base specification (DSP0240). platform.h
already includes ba

base: Define macros for reserved TIDs

Move the definition of `PLDM_TID_RESERVED` from platform.h to base.h as
the value is defined in the base specification (DSP0240). platform.h
already includes base.h so the move is not an API-breaking change.

Further, add the definition for `PLDM_TID_UNASSIGNED`, which is the
other reserved TID value.

Change-Id: I191bee73e091a4b0e83c4bffcee38bff3c88ed96
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>

show more ...

37552b9912-Feb-2024 Varsha Kaverappa <vkaverap@in.ibm.com>

pdr: Add contained entity to an association PDR

Include function to add a contained entity into an entity association
PDR. A contained entity may be added to an existing container thereby
Imodifying

pdr: Add contained entity to an association PDR

Include function to add a contained entity into an entity association
PDR. A contained entity may be added to an existing container thereby
Imodifying the association PDR or it can be added to the association
PDR by attaching both the container and its contained entity. This API
covers both these cases.

DSP0248_1.2.0 - SECTION 11 explains entity association PDR

Tested By: Adding/Removing an entity(FRU) to an existing PDR on
SIMICS.

Change-Id: Id4ac34f03311dbc7633e7fd6db7f772cfd811a2d
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>

show more ...

a6fa555905-May-2024 Tal Yacobi <talycb8@gmail.com>

platform: Add support for GetStateEffecterStates command

Based on DSP0248 PLDM for Platform Monitoring
and Control Specification version 1.2.0a Section 22.6

Implement encode and decode for both req

platform: Add support for GetStateEffecterStates command

Based on DSP0248 PLDM for Platform Monitoring
and Control Specification version 1.2.0a Section 22.6

Implement encode and decode for both request and response
for GetStateEffecterStates PLDM command.

Include unit-tests.

Change-Id: Ia3bd71151d40b56f91afe2fe23b8bf2f26915b64
Signed-off-by: Tal Yacobi <talycb8@gmail.com>

show more ...

458475a926-Mar-2024 Chris Wang <Chris_Wang@wiwynn.com>

fw_update: Add encode req & decode resp for query_downtream_identifiers

Add support for Query Downstream Identifiers to ask all downstream
devices' Descriptors managed by a endpoint.

The code is de

fw_update: Add encode req & decode resp for query_downtream_identifiers

Add support for Query Downstream Identifiers to ask all downstream
devices' Descriptors managed by a endpoint.

The code is developed based on the definition of
'QueryDownstreamIdentifiers' in DSP0267_1.1.0 Section 10.4

Change-Id: I6282a894c73b78470c147e77d81e5a4ddd6a39a8
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...

4c1f2c7221-Mar-2024 Chris Wang <Chris_Wang@wiwynn.com>

fw_update: Add encode req & decode resp for query_downstream_devices

Add support for Query Downstream Devices to ask if a endpoint supports
downstream devices.

The code is developed based on the de

fw_update: Add encode req & decode resp for query_downstream_devices

Add support for Query Downstream Devices to ask if a endpoint supports
downstream devices.

The code is developed based on the definition of
'QueryDownstreamDevices' in DSP0267_1.1.0. Section 10.3

Change-Id: I5925290de5023eb48f675e736429fe9f257170c8
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...

ea435c9f30-Apr-2024 Jayashankar Padath <jayashankar.padath@in.ibm.com>

oem: ibm: Support for the Real SAI entity id

This commit adds the Real SAI (System Attention Indicator) oem
entity id.

Real SAI is a physical led indicator which lights up whenever
there is a platf

oem: ibm: Support for the Real SAI entity id

This commit adds the Real SAI (System Attention Indicator) oem
entity id.

Real SAI is a physical led indicator which lights up whenever
there is a platform error (originated from BMC) or a partition
error that is not mapped to any physical FRU (Field Replaceable Unit).

The pldm commit that uses this value is
https://gerrit.openbmc.org/c/openbmc/pldm/+/48906

Change-Id: I3e070303c1a8aed236be05fbf79a402f6b1322f8
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>

show more ...

d4878cdf08-Nov-2023 Thu Nguyen <thu@os.amperecomputing.com>

pdr: Add decode_numeric_effecter_pdr_data()

Add `decode_numeric_effecter_pdr_data` API to decode the numeric
effecter PDR data in DSP0248_1.2.2 table 87. The API will be used to
retrieve the data fi

pdr: Add decode_numeric_effecter_pdr_data()

Add `decode_numeric_effecter_pdr_data` API to decode the numeric
effecter PDR data in DSP0248_1.2.2 table 87. The API will be used to
retrieve the data fields of numeric effecter from the PDRs in `pldmd`.

Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Change-Id: I323a1288cb0262bd39f4f28701ddc7dbb70c33c8

show more ...

64764fd602-Apr-2024 Jinliang Wang <jinliangw@google.com>

libpldm: add enum used by some Network Controller

The network interface connectors and ports connection entity types
(along with Link State set and Redfish Device Resource PDR) are useful
for some N

libpldm: add enum used by some Network Controller

The network interface connectors and ports connection entity types
(along with Link State set and Redfish Device Resource PDR) are useful
for some NIC devices.

Change-Id: I28cd2c9db4ef3bfc9885892b41312d31a709ebbf
Signed-off-by: Jinliang Wang <jinliangw@google.com>

show more ...

819f138a20-Feb-2024 Pavithra Barithaya <pavithra.b@ibm.com>

oem: ibm: Add Firmware UAK as a FRU field type

The oem-ibm FRU field type enumeration is added with a new enum value
for Firmware Update Access Key (UAK) value. The PLDM commit that uses
this enum v

oem: ibm: Add Firmware UAK as a FRU field type

The oem-ibm FRU field type enumeration is added with a new enum value
for Firmware Update Access Key (UAK) value. The PLDM commit that uses
this enum value is [oem-ibm: Access key update support][1]

[1]: https://gerrit.openbmc.org/c/openbmc/pldm/+/49054

Change-Id: I50f12be1dd1a92ad11431e5b2b9573e54b50d1e1
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>

show more ...

a9f2ffd428-Feb-2024 Pavithra Barithaya <pavithra.b@ibm.com>

oem-ibm: Alias pldm_oem_ibm_fru_field_type members as PLDM_OEM_IBM_*

The oem-ibm FRU field type enumeration did not have a IBM prefix in
their enum values. This change is done to give more consisten

oem-ibm: Alias pldm_oem_ibm_fru_field_type members as PLDM_OEM_IBM_*

The oem-ibm FRU field type enumeration did not have a IBM prefix in
their enum values. This change is done to give more consistent names to
the enum constants.

The older version of these duplicate constants will be removed once a
tag containing the new members has been created.

Change-Id: Ibba743c24dc6f41b767e88e27b843a49f8731f5d
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>

show more ...

0ee7766416-Feb-2024 Varsha Kaverappa <vkaverap@in.ibm.com>

platform: Add alias members to PDRRepoChgEvent

Alias constants are added in pldmPDRRepositoryChgEvent
changeRecord event data operation enum. This is done
to give more consistent names to the enum c

platform: Add alias members to PDRRepoChgEvent

Alias constants are added in pldmPDRRepositoryChgEvent
changeRecord event data operation enum. This is done
to give more consistent names to the enum constants.
The older version of these duplicate constants will be
removed after backward compatibility is taken care.

See CHANGELOG.md for more information on this enum.

Change-Id: Ie30f9034d4ca12abd5d2a4b3e584e0f63f55e56b
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>

show more ...

39aa036e12-Feb-2024 Varsha Kaverappa <vkaverap@in.ibm.com>

state-set: Add all system power states (set ID 260)

System power state defines power states of a system
or an entity in the system.

Change-Id: If9b08b6e954fc3d73e98df7307aa7b397f04707c
Signed-off-b

state-set: Add all system power states (set ID 260)

System power state defines power states of a system
or an entity in the system.

Change-Id: If9b08b6e954fc3d73e98df7307aa7b397f04707c
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>

show more ...

e424905708-Feb-2024 Varsha Kaverappa <vkaverap@in.ibm.com>

oem: ibm: Add PCIe slot sensor/effector StateSetId

Adds sensor and effecter state set IDs for all the
PCIe Slots & adapters present on BMC. Possible
conditions of the PLDM_ENTITY_SLOT type of entity

oem: ibm: Add PCIe slot sensor/effector StateSetId

Adds sensor and effecter state set IDs for all the
PCIe Slots & adapters present on BMC. Possible
conditions of the PLDM_ENTITY_SLOT type of entity
are defined by PLDM_OEM_IBM_SLOT_ENABLE_SENSOR_STATE.

Slot sensor state set ID is required to find the sensor
state of the PCIE slot. Sensor state value of a PCIE
slot can be enabled, disabled or unknown.

PCIE slot is enabled with the effector state set ID
defined with this commit.

Tested By: Using pldmtool set effecter state and read
sensor state for PCIE slot was verified for this change

1.pldmtool platform SetStateEffecterStates -i 124 -c 1 -d 01 02 -v
2.pldmtool platform GetStateSensorReadings -i 208 -r 01

Change-Id: I87f4f76ff6f3dc6e15b4677ad42e7b28e1c40aa2
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com>

show more ...

dc7d3b5b06-Feb-2024 Pavithra Barithaya <pavithra.b@ibm.com>

libpldm: Change hexadecimal literals to lowercase

As per a comment at [1].

The change was generated with the following:

```
sed -Ei 's/0[xX]([0-9]*[A-F][0-9]*)+/\L\0/g' $(git ls-files)
```

[1]: h

libpldm: Change hexadecimal literals to lowercase

As per a comment at [1].

The change was generated with the following:

```
sed -Ei 's/0[xX]([0-9]*[A-F][0-9]*)+/\L\0/g' $(git ls-files)
```

[1]: https://gerrit.openbmc.org/c/openbmc/libpldm/+/69192

Change-Id: Ib0a41dfaf626aec3167e773262883f9c1de797b2
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>

show more ...

c347201c05-Feb-2024 Pavithra Barithaya <pavithra.b@ibm.com>

oem-ibm : Add an enum for oem-ibm FRU type

The oem-ibm FRU field type enumeration is added with a
new enum value for PCIE Config Space Data. The PLDM commit
that uses this enum value is
https://gerr

oem-ibm : Add an enum for oem-ibm FRU type

The oem-ibm FRU field type enumeration is added with a
new enum value for PCIE Config Space Data. The PLDM commit
that uses this enum value is
https://gerrit.openbmc.org/c/openbmc/pldm/+/45144.

Change-Id: Ifbac52020677f1361c9a79c0008c2d0d7e75e5dc
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>

show more ...

24ae239a01-Feb-2024 Riya Dixit <riyadixitagra@gmail.com>

state-set: Add the enum for Device Power State

As per the spec DSP0249 the PLDM state set Device
Power State [Set ID: 257] can have four enumeration
values defined. This commit adds the unknown, on

state-set: Add the enum for Device Power State

As per the spec DSP0249 the PLDM state set Device
Power State [Set ID: 257] can have four enumeration
values defined. This commit adds the unknown, on
and off state in enum for the same.

Change-Id: I8565df98006c183df50d8220db02fdb61a3eae04
Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>

show more ...

cca12d0615-Jan-2024 Jayashankar Padath <jayashankar.padath@in.ibm.com>

oem-ibm: User password file types support

This commit adds the new file types for user password authentication
and user password change.

If host passes the username and password credentials to the

oem-ibm: User password file types support

This commit adds the new file types for user password authentication
and user password change.

If host passes the username and password credentials to the BMC, it
should support below requirements through any password validation
mechanism (Ex: PAM module)
1. Password authentication
2. Password change if the password has been expired

Change-Id: I2daa1e6388d1a2abf8193453728ef8a80b3b24b7
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>

show more ...

c6c391d608-Nov-2023 George Liu <liuxiwei@inspur.com>

pdr: Add preconditions for pldm_entity_association_tree_copy_root()

pldm_entity_association_tree_copy_root() requires that the arguments
passed point to valid objects. Ensure this is documented, and

pdr: Add preconditions for pldm_entity_association_tree_copy_root()

pldm_entity_association_tree_copy_root() requires that the arguments
passed point to valid objects. Ensure this is documented, and add
assert()s for early warning of precondition violation in debug builds

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I15f4f10d5e7a8cebfffae94bb868a905c7c98f3d

show more ...

22fad39526-Oct-2023 Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

oem: meta: Add decode_oem_meta_file_io_req()

Support decode_oem_meta_file_io_req() cmd to decode the incoming post
code.

PLDM OEM Meta Write File IO cmd:
Example:
Request:
Byte 0: 0x3F (OEM c

oem: meta: Add decode_oem_meta_file_io_req()

Support decode_oem_meta_file_io_req() cmd to decode the incoming post
code.

PLDM OEM Meta Write File IO cmd:
Example:
Request:
Byte 0: 0x3F (OEM cmd)
Byte 1: 0x02 (FILE IO)
Byte 2: 0x00 (File io type : POST CODE)
Byte 3-6: 0x04 (Data length)
Byte 7-10: 0x93 0xE0 0x00 0xEA (post code)

Response:
Byte 0: 0x00 (success)

Tested:
- Unit Tests passed.

Change-Id: I85437698642dd3cbe6084acf1feada842d206eac
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...

123456789