Adding update shmem support for power smoothing V2 properties fixes jira https://jirasw.nvidia.com/browse/DGXOPENBMC-21509 Signed-off-by: Raghul Rajakumar <rrajakumar@nvidia.com>
diff --git a/nsmd/nsmProcessor/nsmPowerSmoothing.cpp b/nsmd/nsmProcessor/nsmPowerSmoothing.cpp index c072270..4fc3637 100644 --- a/nsmd/nsmProcessor/nsmPowerSmoothing.cpp +++ b/nsmd/nsmProcessor/nsmPowerSmoothing.cpp
@@ -48,8 +48,18 @@ {"PowerSmoothingEnabled", pwrSmoothingIntf->PowerSmoothingIntf::powerSmoothingEnabled()}, {"ImmediateRampDownEnabled", - pwrSmoothingIntf->PowerSmoothingIntf::immediateRampDownEnabled()}}; - + pwrSmoothingIntf->PowerSmoothingIntf::immediateRampDownEnabled()}, + {"DelayedPowerSmoothingSupported", + pwrSmoothingIntf + ->PowerSmoothingIntf::delayedPowerSmoothingSupported()}, + {"FloorWindowMultiplier", + pwrSmoothingIntf->PowerSmoothingIntf::floorWindowMultiplier()}, + {"MinPrimaryFloorActivationOffset", + pwrSmoothingIntf + ->PowerSmoothingIntf::minPrimaryFloorActivationOffset()}, + {"MinPrimaryFloorActivationPoint", + pwrSmoothingIntf + ->PowerSmoothingIntf::minPrimaryFloorActivationPoint()}}; // Update all metrics in shared memory for (const auto& [propName, value] : metrics) { @@ -256,8 +266,19 @@ ->CurrentPowerProfileIntf::rampDownRate()}, {"RampDownHysteresis", pwrSmoothingCurProfileIntf - ->CurrentPowerProfileIntf::rampDownHysteresis()}}; - + ->CurrentPowerProfileIntf::rampDownHysteresis()}, + {"PrimaryFloorActivationOffset", + pwrSmoothingCurProfileIntf + ->CurrentPowerProfileIntf::primaryFloorActivationOffset()}, + {"SecondaryPowerFloorSetting", + pwrSmoothingCurProfileIntf + ->CurrentPowerProfileIntf::secondaryPowerFloorSetting()}, + {"PrimaryFloorActivationWindowMultiplier", + pwrSmoothingCurProfileIntf->CurrentPowerProfileIntf:: + primaryFloorActivationWindowMultiplier()}, + {"PrimaryFloorTargetWindowMultiplier", + pwrSmoothingCurProfileIntf->CurrentPowerProfileIntf:: + primaryFloorTargetWindowMultiplier()}}; // Update all metrics in shared memory for (const auto& [propName, value] : metrics) {