From: chunhui.jia <chunhui.jia@linux.intel.com>
To: "Tanous, Ed" <ed.tanous@intel.com>,
"Patrick Venture" <venture@google.com>
Cc: "kuiying.wang" <kuiying.wang@intel.com>,
"Mihm, James" <james.mihm@intel.com>,
"Nguyen, Hai V" <hai.v.nguyen@intel.com>,
"Feist, James" <james.feist@intel.com>,
"Jia, Chunhui" <chunhui.jia@intel.com>,
"OpenBMC Maillist" <openbmc@lists.ozlabs.org>,
"Li, Yong B" <yong.b.li@intel.com>,
"Yang, Cheng C" <cheng.c.yang@intel.com>,
"Brad Bishop" <bradleyb@fuzziesquirrel.com>,
"Xu, Qiang" <qiang.xu@intel.com>,
"kun.yi.731@gmail.com" <kun.yi.731@gmail.com>,
"geissonator@yahoo.com" <geissonator@yahoo.com>
Subject: Re: RE: Proposal for caching/buffering POST codes list for one boot process.
Date: Mon, 27 Aug 2018 15:59:34 +0800 [thread overview]
Message-ID: <2018082715593358738018@linux.intel.com> (raw)
In-Reply-To: 7E9441B1E5EFFD4681F54958E8216993458355BC@ORSMSX114.amr.corp.intel.com
[-- Attachment #1: Type: text/plain, Size: 2169 bytes --]
Ed, Venture,
Could you confirm if the "/xyz/openbmc_project/host/post/1" that we talked here contains a list of post code for one cycle?
From my understanding, it should be like:
/xyz/openbmc_project/host/post/current (objpath)
->xyz.openbmc_project.Host.State.Boot.Raw (intf)
---->Value (a list of POST code for current POST) (property)
/xyz/openbmc_project/host/post/1
->xyz.openbmc_project.Host.State.Boot.Raw
---->Value (a list of POST code for previous POST)
/xyz/openbmc_project/host/post/2
->xyz.openbmc_project.Host.State.Boot.Raw
---->Value (a list of POST code for the time before previous)
Is that correct?
The reason I am asking is that the orginal post code interface only keep *one* post code. Even if one DC cycle could generate 30~40 post code, it just keep latest and previous one.
I assume the objpath /xyz/openbmc_project/host/post/1 contains a list. Otherwise, it will just represent one post code in one cycle. In the latter case, we will have /xyz/openbmc_project/host/post/[0~40] objects for one cycle and it looks ugly.
chunhui.jia
From: Tanous, Ed
Date: 2018-08-25 03:33
To: Patrick Venture
CC: Wang, Kuiying; Mihm, James; Nguyen, Hai V; Feist, James; Jia, Chunhui; OpenBMC Maillist; Li, Yong B; Yang, Cheng C; Brad Bishop; Xu, Qiang; kun.yi.731@gmail.com; geissonator@yahoo.com
Subject: RE: Proposal for caching/buffering POST codes list for one boot process.
>
> I like this approach, but one would need to enumerate the tree to know how
> many there are cached available. Albeit, maybe that's trivial :D
A DBus call to Objectmapper would tell you how many objects you have.
GetSubtree path:/xyz/openbmc_project/host/post depth: 0 interfaces ["xyz.openbmc_project.Host.State.Boot.Raw"] would get you a list of all Post code interfaces
Depending on the context you might also be able to get away with just GetSubtreePaths.
I wouldn't call it trivial, but it falls in the category of doable.
Alternatively, if you know you need all of them for whatever response you're building, GetManagedObjects to the Post code daemon directly would save you a round trip through DBus.
[-- Attachment #2: Type: text/html, Size: 7388 bytes --]
next prev parent reply other threads:[~2018-08-27 7:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 7:28 Proposal for caching/buffering POST codes list for one boot process Wang, Kuiying
2018-08-24 16:12 ` Tanous, Ed
2018-08-24 18:07 ` Patrick Venture
2018-08-24 19:33 ` Tanous, Ed
2018-08-27 7:59 ` chunhui.jia [this message]
2018-08-27 15:45 ` Tanous, Ed
2018-08-27 23:52 ` Kun Yi
2018-08-27 23:55 ` Kun Yi
2018-08-27 23:58 ` Kun Yi
2018-08-28 6:09 ` Tanous, Ed
2018-08-29 4:44 ` Wang, Kuiying
2018-08-29 12:19 ` Brad Bishop
2018-08-30 7:23 ` Wang, Kuiying
2018-09-04 20:12 ` Brad Bishop
2018-09-05 7:25 ` Wang, Kuiying
2018-09-05 12:17 ` Brad Bishop
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=2018082715593358738018@linux.intel.com \
--to=chunhui.jia@linux.intel.com \
--cc=bradleyb@fuzziesquirrel.com \
--cc=cheng.c.yang@intel.com \
--cc=chunhui.jia@intel.com \
--cc=ed.tanous@intel.com \
--cc=geissonator@yahoo.com \
--cc=hai.v.nguyen@intel.com \
--cc=james.feist@intel.com \
--cc=james.mihm@intel.com \
--cc=kuiying.wang@intel.com \
--cc=kun.yi.731@gmail.com \
--cc=openbmc@lists.ozlabs.org \
--cc=qiang.xu@intel.com \
--cc=venture@google.com \
--cc=yong.b.li@intel.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.