Skip to contentSkip to conversation

PID control configuration usage

DISCUSSION Matthew Barth 3 participants 4 messages Mar 6, 2019 – Mar 8, 2019

lore
Share & tools
lore
#0 lore raw

I'm investigating the functionality and use of pid-control to what is currently being used on IBM's witherspoon system. Is there a PID control configuration being used that's upstream? I am unable to find any systems in the meta layers using pid-control that provides a direct configuration example. It looks to be used in the Intel layer that pulls a config together from entity-manager and presents it on dbus to pid-control, but I dont follow how the entity-manager json transforms to the consumable pid-control json. Could someone point me to a functional (possibly in-use) example or show the json config produced from entity-manager?

Thanks,
Matt

#1 lore raw
Quoted 2 lines · Matthew Barth

I'm investigating the functionality and use of pid-control to what is currently being used on IBM's witherspoon system.

Sweeeeeet.

Quoted 7 lines

Is there a PID control
configuration being used that's upstream? I am unable to find any systems in the meta layers using pid-control that provides a direct configuration example. It looks to be used in the Intel layer that pulls a config together from entity-manager and presents it on dbus to pid-control, but I dont follow how the entity-manager json transforms to the consumable pid-control json.

It doesn't. When using the entity manager configs, the DBUS data structures are read directly by pid-control, and converted into the C data structures that the JSON would've been encoded to at build time. no json is created or destroyed.

Quoted 3 lines

Could someone point me to a functional
(possibly in-use) example or show the json config produced from entity-manager?

I thought the Quanta system used it, but I'm not seeing the JSON. Patrick checked in a basic example here:
https://github.com/openbmc/phosphor-pid-control/blob/master/examples/fan-info.json
But I'm guessing you already found that.

I'm not sure if it helps, but here's a dump of the entity-manager dbus interfaces, on a system with a dozen or so add in fru devices detected. Each fru device has its own thermal controllers installed and exposed to dbus.

https://pastebin.com/jaKw5TJa

-Ed

#2 lore raw
Quoted 12 lines · Ed Tanous
Quoted 2 lines · Matthew Barth

I'm investigating the functionality and use of pid-control to what is currently being used on IBM's witherspoon system.

Sweeeeeet.

Quoted 7 lines

Is there a PID control
configuration being used that's upstream? I am unable to find any systems in the meta layers using pid-control that provides a direct configuration example. It looks to be used in the Intel layer that pulls a config together from entity-manager and presents it on dbus to pid-control, but I dont follow how the entity-manager json transforms to the consumable pid-control json.

Quoted 5 lines

It doesn't. When using the entity manager configs, the DBUS data structures are read directly by pid-control, and converted into the C data structures that the JSON would've been encoded to at build time. no json is created or destroyed.

Thanks for clarifying that

Quoted 7 lines
Quoted 3 lines

Could someone point me to a functional
(possibly in-use) example or show the json config produced from entity-manager?

I thought the Quanta system used it, but I'm not seeing the JSON. Patrick checked in a basic example here:
https://github.com/openbmc/phosphor-pid-control/blob/master/examples/fan-info.json
But I'm guessing you already found that.

I did see that. I used that as my starting point, but its quite a simple config that I was interested in seeing a more complex example that's in use.

Quoted 7 lines

I'm not sure if it helps, but here's a dump of the entity-manager dbus interfaces, on a system with a dozen or so add in fru devices detected. Each fru device has its own thermal controllers installed and exposed to dbus.

https://pastebin.com/jaKw5TJa

Thanks, I'll dig thru this to see if I can associate the corresponding json entries I'd setup and give to swampd at startup.

Matt

Quoted 3 lines

-Ed

#3 lore raw
Quoted 10 lines
Quoted 7 lines
Quoted 3 lines

Could someone point me to a functional
(possibly in-use) example or show the json config produced from entity-manager?

I thought the Quanta system used it, but I'm not seeing the JSON. Patrick checked in a basic example here:
https://github.com/openbmc/phosphor-pid-control/blob/master/examples/fan-info.json
But I'm guessing you already found that.

I did see that. I used that as my starting point, but its quite a simple config that I was interested in seeing a more complex example that's in use.

I tried pid-control on Romulus before and here is a working config for Romulus, just for testing purpose.
https://github.com/mine260309/openbmc/blob/3d45a1b452d9150da89e058bcc544d9f5525cf27/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/fans/romulus-fans-sensor-list/pid-list.yaml

The above config does below settings:
1. Set the outlet temperature set-point to 45, so when the temperature is above 45, the fan speed is increased, and when it's lower than 45, the fan peed is decreased.
2. Romulus' fan0/2 uses the same pwm, so they are controlled in a same group.
3. The fan1 uses a separated pwm, so it's in a separated group.
4. I tried to use cpu core temperature as set-point, but that requires the cores described in the config file are all available.
If a core temperature is missing (e.g. the CPU does not have all the cores), phosphor-pid-control throws and exits.
On my Romulus it has 4-core CPUs, so I need to put the specific 8 cores in the config to make it work.