Skip to content

pldm: Add Numeric Effecters#50

Merged
spargaon merged 1 commit intointeg_sp8from
fwdevel-170035-review
Mar 13, 2026
Merged

pldm: Add Numeric Effecters#50
spargaon merged 1 commit intointeg_sp8from
fwdevel-170035-review

Conversation

@spargaon
Copy link
Copy Markdown
Collaborator

Add Numeric Effecter PDR for Compact Numeric Sensors. Numeric Effecter and Effecter Auxiliary Name PDRs are are represented using JSON files.
Numeric Effecter PDR act as a control for Compact
Numeric Sensor PDR matched by effecter id.

@spargaon
Copy link
Copy Markdown
Collaborator Author

@spargaon spargaon force-pushed the fwdevel-170035-review branch from cfb5ec1 to 9fa71b3 Compare January 30, 2026 19:44
@spargaon
Copy link
Copy Markdown
Collaborator Author

spargaon commented Feb 4, 2026

fwdev-170035.log.2.txt

@spargaon spargaon force-pushed the fwdevel-170035-review branch from 9fa71b3 to d028ba9 Compare February 4, 2026 06:56
@spargaon
Copy link
Copy Markdown
Collaborator Author

spargaon commented Feb 4, 2026

fwdev-170035.test.3.txt

@spargaon
Copy link
Copy Markdown
Collaborator Author

spargaon commented Feb 4, 2026

fwdev-170035.test.set-property-get-property.txt

Verified on one of the numeric effecters that get-propety and set-property work.

Comment thread common/types.hpp Outdated
Comment thread common/utils.hpp Outdated
std::chrono::seconds(DBUS_TIMEOUT))
.count();

extern "C" {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this code to libpldm, and also add encode/decode routines for effecter enable command.

@spargaon spargaon force-pushed the fwdevel-170035-review branch 3 times, most recently from d300bd6 to 34f64b1 Compare March 10, 2026 17:55
@spargaon
Copy link
Copy Markdown
Collaborator Author

@spargaon spargaon force-pushed the fwdevel-170035-review branch 2 times, most recently from 852d5c3 to 727e0ab Compare March 11, 2026 05:10
@spargaon spargaon requested a review from mahkurap March 11, 2026 05:28
Comment thread platform-mc/numeric_sensor.cpp Outdated
Comment thread platform-mc/sensor_manager.cpp Outdated
Comment thread platform-mc/sensor_manager.cpp Outdated
Comment thread platform-mc/terminus.cpp
Comment thread platform-mc/terminus.cpp
Comment thread platform-mc/terminus.hpp
Comment thread platform-mc/terminus.hpp
Comment thread platform-mc/effecters/numeric/effecter.hpp
@spargaon spargaon force-pushed the fwdevel-170035-review branch 2 times, most recently from ed9058a to bb4c6c8 Compare March 12, 2026 04:29
Add Numeric Effecter PDR for Compact Numeric Sensors.
Numeric Effecter and Effecter Auxiliary Name PDRs are
are represented using JSON files.
Numeric Effecter PDR act as a control for Compact
Numeric Sensor PDR matched by effecter id.

This code is ported code ushered in via commit id
c8bcfa8
which is still being reviewed.
Minor tweaks were applied to port this patch.

===
platform-mc: Add NumericEffecter support as per DSP0248

Implement PDR-driven NumericEffecter class that
follows the PLDM Platform Monitoring and Control
specification, addressing limitations in the existing
dbus_to_terminus_effecters approach.

Features:
- Discovery: Parse Numeric Effecter PDRs (§28.11)
  from device and create D-Bus object
- Following commands are supported:
     - GetNumericEffecterValue (0x32),
     - SetNumericEffecterEnable (0x30),
     - SetNumericEffecterValue (0x31)
- Bidirectional state sync: D-Bus reflects actual
     terminus state via read-after-write verification
 - NumericEffecterDbusInterface: Abstract interface to
   enable D-Bus integration for numeric effecters

Tested.

This patch was tested on Nvidia's GB200 Platform for
    Grace CPU Terminus.
Redfish Testing is still pending.

Pick the following bmcweb patch:
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/86196
===

Signed-off-by: Shirish Pargaonkar <Shirish.Pargaonkar@amd.com>

 #	modified:   ../../../../platform-mc/test/terminus_manager_test.cpp
@spargaon spargaon force-pushed the fwdevel-170035-review branch from bb4c6c8 to 2379f23 Compare March 12, 2026 17:31
@spargaon spargaon merged commit 6b94b0f into integ_sp8 Mar 13, 2026
@spargaon spargaon deleted the fwdevel-170035-review branch March 13, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants