Feedback on Current OpenBMC and Proposing Some Improvements ---- "Improvements" Ideas

Alex Qiu xqiu at google.com
Tue Jun 30 08:09:36 AEST 2020


On Mon, Jun 29, 2020 at 7:53 AM Ed Tanous <ed at tanous.net> wrote:
>
>
> On Thu, Jun 25, 2020 at 6:08 PM Alex Qiu <xqiu at google.com> wrote:
> > Yes, there are some restrictions in my current demo, and I'm afraid
> > that I may not have the bandwidth to cover it further alone. My point
> > is that, sometimes hardwares is designed with some unexpected
> > complexity on topology (EEPROM behind MUX for example).
> To my understanding this case is already handled.  Assign the mux to the parent FRU config file, and the eeprom behind it will be detected correctly.  With that said, this type of hardware (optional mux with an eeprom behind it) is difficult to identify automatically with no other impact, hence needing to explicitly add it to the parent board.  Can you think of any other examples of unexpected topology that aren't covered?

There's no parent FRU in this case; the MUX belongs to the specific
FRU, and its EEPROM is behind the MUX. Unfortunately, maybe usually we
only realize some hardware design is problematic to the software until
we see it? :) I haven't started in Google when these boards were
designed, and I'm not so sure if I could point it out even if I had
been started in Google.

>
>
> > Having the
> > ability to aid the topology discovery with code, and having the
> > topology info available to other functionalities can help a lot. JSON
> > config files are having a hard time bearing these logics, and any
> > extra logic implemented in JSON config files requires some kind of
> > script parser in daemons processing them.
> The majority of the config parsing is also able to be done at compile time, it just isn't implemented today.  With that said, the config file parsing in practice takes up very little CPU time in the last profile I did, so it hasn't been a priority.

I'm not quite concerned about CPU time on the parsing, but more on the
burden of developing. Because right now I feel like we need to
implement a parser per daemon for what it's consuming. Unless we agree
on a format and implement an OpenBMC library for it. Take the Virtual
Sensor design doc under review for example:
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/32345/ I think it
will also have its own parser to deal with the "Algo" attribute. To
make more fragments, right now entity-manager does the calculation
without support for parenthesis and does not follow arithmetic order
of operations, and we are trying to come up with one supporting
parenthesis without breaking the compatibility.

>
>
> > Based on your replies, the
> > concept for functionally extensions that I was asking for should be
> > implemented as daemons either standalone or plugged onto dbus?
>
> I'm not understanding the distinction of standalone vs plugged into dbus, but I'll hazard a guess, and say yes, the dbus interfaces to the rest of the system is (one of) the project's intended extension points.  You can either manipulate them from an existing daemon, or create an all new daemon that has exactly the behavior you want.
>
>
> >
> > On "reading sensors within the BMC console", I'm actually using a
> > script to directly read from hwmon right now, because we are having
> > sensor number limit on IPMI and performance issues with IPMI and dbus.
> > We are still actively investigating these performance issues now to
> > unblock the project, but based on the current findings, I think it's
> > better to have this tool before the protocol layers.
> Have you considered opening a review with this tool to make it available to others?  I'd recommend opening a review to put it in here:
> https://github.com/openbmc/openbmc-tools
> This repo is much less formal, but gives people a place for these "might be useful to others" type scripts.  Write up a commit message with something to the effect of "I wrote this tool, this is how you use it, I find it makes platform development easier because X." and get it checked in.

It had topology information and sensor information that we would like
baked in as its major part, so unfortunately it's not an upstream-able
script...

>
>
> >
> > On issues like uint8_t, yes, we've noted them down, but they are still
> > tech debts on our backlog, and dealing with the performance issue
> > described above remains as our priority right now.
>
> It sounds like you're swamped for time, which I can respect.  With that said, If you start by making technical improvements on small things like the above, you're much more likely to have feedback (and help) when you propose more wide sweeping changes, like your python example.
> If you ever get free time, and want to continue moving your proposal more toward an actionable change we can make, I'm happy to help discuss options.  To be clear, I think if you can resolve some of the technical limitations of your proposal, and put together a patchset that implements it in a language that the project can use on a majority of platforms, I think it could be a better developer experience.  We just can't remove some of the user facing features that are implemented and/or planned already.

Makes sense. We'll see if we could gather enough resources at some
time to actually make it a concrete product, or we can come up with a
plan to improve the existing ones bit by bit. It's been a pleasure to
hear from you on what I haven't realized or taken into account yet,
because my team was more hardware project focused and had less
exposure to the general OpenBMC discussions or design philosophies.
Thank you!

- Alex Qiu


More information about the openbmc mailing list