All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yong Li" <yong.b.li@linux.intel.com>
To: "'Brad Bishop'" <bradleyb@fuzziesquirrel.com>
Cc: "'OpenBMC Maillist'" <openbmc@lists.ozlabs.org>
Subject: RE: chassis_control.py in skeleton
Date: Wed, 29 Nov 2017 09:40:34 +0800	[thread overview]
Message-ID: <000001d368b3$0d4644e0$27d2cea0$@linux.intel.com> (raw)
In-Reply-To: <1ABEA804-8141-49CA-AFBF-B47C8D0ABD31@fuzziesquirrel.com>

Thanks Brad for your message!

I studied on these state-manager services, It seems that the chassis_control.py can be replaced by chassis_state and host_state .cpp files. I will perform some tests to check if there any changes needed.

I also found that some of .cpp services  still need these apps in skeleton. Below is an example, it needs the skeleton/op-pwrctl/power_control.obj.c:
https://github.com/openbmc/phosphor-state-manager/blob/master/chassis_state_manager.cpp#L56

I would like to start to modify/rewrite these buton/power(gpio control related) tools in skeleton, using C++ and sdbusplus, and support multi platforms(X86). Could you share some comments/suggestions?
Create a new project such as power-button-manager, or add them into this phosphor-state-manager? 

Thanks,
Yong Li

-----Original Message-----
From: Brad Bishop [mailto:bradleyb@fuzziesquirrel.com] 
Sent: Wednesday, November 29, 2017 4:53 AM
To: Yong Li <yong.b.li@linux.intel.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>; Li, Yong B <yong.b.li@intel.com>
Subject: Re: chassis_control.py in skeleton


> On Nov 23, 2017, at 12:38 AM, Yong Li <yong.b.li@linux.intel.com> wrote:
> 
> Hi All,
> 
> Based on my understanding, these chassis control/system manager 
> related projects in skeleton should be initial/reference code, and 
> will be

This is correct.  The intent is to remove them eventually.

The replacement for the chassis manager is https://github.com/openbmc/phosphor-state-manager

The functions of the system manager have gradually been replicated elsewhere.  For instance its state management functions were moved to phosphor-state-manager or systemd.  Other functions were distributed amongst configuration files and other applications.

They have not been removed from the current systems because they all need to be scrubbed for any remaining usage.

> rewritten/reimplementation. I would like to know if there is any plan 
> or on-going projects on them?

The plan is to scrub the existing systems and eliminate use of these programs.  This means identifying any functional gaps in the replacements and implementing those.  I don’t think anyone is working on that at the moment.

Ideally any new layers/platforms being added would just not use these programs, but I understand if that requires replacement function that isn’t available and wouldn’t want that to hinder upstreaming of a new platform.

If I were to begin to work on this, I would start by building images for the current systems, remove these applications from the image and see what breaks.	


> 
> Thanks,
> Yong Li


-brad=

  reply	other threads:[~2017-11-29  1:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23  5:38 chassis_control.py in skeleton Yong Li
2017-11-28 20:52 ` Brad Bishop
2017-11-29  1:40   ` Yong Li [this message]
2017-11-30 14:00     ` Brad Bishop
2017-12-01  5:20       ` Yong Li
2017-12-05 10:19         ` Brad Bishop
2017-12-07  8:41           ` Yong Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001d368b3$0d4644e0$27d2cea0$@linux.intel.com' \
    --to=yong.b.li@linux.intel.com \
    --cc=bradleyb@fuzziesquirrel.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.