Skeleton power control machine configuration

Joel Stanley joel at
Fri Sep 23 15:26:55 AEST 2016

Hey Xo,

On Fri, Sep 23, 2016 at 10:28 AM, Xo Wang <xow at> wrote:
> Hi folks,
> I was adding power sequencing and buttons for our P9 machine and I
> noticed that Firestone, Garrison, and Witherspoon had patches to
> op-pwrctl that replaced the net names on the power pins, added more
> reset complexes, etc.
> I didn't want to do the same for our machine. I propose moving machine
> specific options to the Python configuration so we can eliminate the
> skeleton patches.

Great! This was an area of concern for me as well.

I'm not sure what the future plans are for this part of the codebase.
I think that fixing it to remove the out of tree patches and enable
new machines is great for the time being. We should check with Patrick
and Brad as to their plans for the future, so we don't waste time on
code that will be reworked.

> I mailed my prototype to the Gerrit that adds a dbus call to
> system_manager, C bindings, and power control logic to handle the
> abstraction. Please take a look.
> I'm planning to also extend the GPIO/net name abstraction to reset and
> power buttons, since they're also using net names directly in their
> sources.

I had a brief look at the patches and they look good to me. I left
some minor comments in gerrit.

In the future we want to ensure that all of the GPIOs are configured
correctly to a known state at BMC boot.



More information about the openbmc mailing list