Closed gauravgandhi70 closed 1 year ago
Original commit causing this issue: https://github.com/openbmc/phosphor-pid-control/commit/0e8fc3980a6690d1b2be2b4e96a8018aa1eacc96
@BonnieLo
I have an idea as to how to fix this. Let me see if it works, then I'll put it up for review.
I commit a PR to implement cycle time setting in dbusconfiguration https://gerrit.openbmc.org/c/openbmc/phosphor-pid-control/+/58797
Here's my intended fix: https://gerrit.openbmc.org/c/openbmc/phosphor-pid-control/+/59721
As for https://gerrit.openbmc.org/c/openbmc/phosphor-pid-control/+/58797
Good idea, I like how both of the settings paths were consolidated into a single function. I ended up having to do it slightly differently, as the old JSON path differs a little in the types of the variables from the new D-Bus path.
It should be fixed now! https://gerrit.openbmc.org/c/openbmc/phosphor-pid-control/+/59721 is merged.
Thanks @Krellan , @harveyquta . Closing the issue!
Currently default values for cycleIntervalTimeMS and updateThermalsTimeMS are 100 and 1000. These values provide the counter for how often
processThermals
runs in pidControlLoop. getUpdateThermalsCycle gets updated inbuildPIDsFromJson
function but this is not done in dbusconfiguration. Our platform does not use buildjson; it depends on dbusconfiguration method. Becasue of this by default pidControlLoop runs every 100ms and cycleCnt gets increamented by 1 (every 100ms) and processThermal gets called when cycleCnt is 1000 causing 100 Sec delay.CC: @Krellan