All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lei YU <mine260309@gmail.com>
To: Patrick Venture <venture@google.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>,
	Benjamin Fair <benjaminfair@google.com>
Subject: Re: psu code mgmt
Date: Mon, 26 Aug 2019 15:02:23 +0800	[thread overview]
Message-ID: <CAARXrtnRg0xSQ8mRS6XVqHyEJXS7TobqGjdwTeoyhapRoZS59g@mail.gmail.com> (raw)
In-Reply-To: <CAO=notwjUWqOjBt7oRQpr7F95yANHT_SicGz-XVSXDPYNywKfw@mail.gmail.com>

On Thu, Aug 22, 2019 at 6:47 AM Patrick Venture <venture@google.com> wrote:
>
> Lei Yu;
>
> I wanted to ask about the psu-code-mgmt, will it be exposing dbus
> interfaces similarly to bmc-code-mgmt (I think I see that it is).  I

Yes, it will expose the exact same dbus interfaces as to bmc/pnor-code-mgmt,
e.g.

# /xyz/openbmc_project/software/82b2c6e0
  "data": {
    "Activation": "xyz.openbmc_project.Software.Activation.Activations.Ready",
    "ExtendedVersion": "psu-dummy1-v1.2,psu-dummy2-v2.3,psu-dummy3-v3.4",
    "Path": "/tmp/images/82b2c6e0",
    "Purpose": "xyz.openbmc_project.Software.Version.VersionPurpose.PSU",
    "RequestedActivation":
"xyz.openbmc_project.Software.Activation.RequestedActivations.None",
    "Version": "psu-dummy-test.v0.1"
  },

> wanted to confirm that we could write a simple handler or type for
> talking to psu-code-mgmt from phosphor-ipmi-flash.  Today I wrote a
> guide on how to do part of that --
> https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-ipmi-flash/+/24606
>
> We'd add something like:
>
> [{
>     "blob": "/flash/psu",
>     "handler": { "type": "file", "path": "/tmp/psu-firmware" },
>     "actions": {
>         "preparation": {
>             "type": "systemd",
>             "unit": "phosphor-ipmi-flash-psu-prepare.target"
>         },
>         "verification": { "type": "psuSystemdVerification" },
>         "update": { "type": "psuSystemdActivation" }
>     }
> }]
>
> So then if we implement a psuSystemdVerification and
> psuSystemdActivation, those can all the things you expect and stage
> the file where you expect, etc.

Yup, it should work the same as BMC software.

>
> Patrick

      reply	other threads:[~2019-08-26  7:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21 22:47 psu code mgmt Patrick Venture
2019-08-26  7:02 ` Lei YU [this message]

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=CAARXrtnRg0xSQ8mRS6XVqHyEJXS7TobqGjdwTeoyhapRoZS59g@mail.gmail.com \
    --to=mine260309@gmail.com \
    --cc=benjaminfair@google.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=venture@google.com \
    /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.