All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Williams <patrick@stwcx.xyz>
To: Alex Qiu <xqiu@google.com>
Cc: Ed Tanous <ed@tanous.net>, Josh Lehan <krellan@google.com>,
	Peter Lundgren <peterlundgren@google.com>,
	Jason Ling <jasonling@google.com>,
	Kais Belgaied <belgaied@google.com>,
	Benjamin Fair <benjaminfair@google.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>,
	Ofer Yehielli <ofery@google.com>,
	Richard Hanley <rhanley@google.com>
Subject: Re: Feedback on Current OpenBMC and Proposing Some Improvements ---- Difficulties and Issue Examples
Date: Tue, 23 Jun 2020 20:20:11 -0500	[thread overview]
Message-ID: <20200624012011.GA3922@heinlein> (raw)
In-Reply-To: <CAA_a9xJFQiYVoAkPOg_g+DDA+jX9N6VA-mOWusC1YuzYeEennw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

Hi Alex,

On Tue, Jun 23, 2020 at 04:47:36PM -0700, Alex Qiu wrote:
> For example, some of our FRU has way too many temperature sensors from
> hardware design, but we only need the maximum temperature among these
> sensors on one FRU to feed to the PID control loop or health
> reporting. It would be great to aggregate the sensors according to
> individual FRUs. You can see this sensor aggregation feature as a
> simple example in my demo:
> https://github.com/alex310110/bmc-proto-20q2/blob/master/downstream/card_example_g.py#L69
> 
> We also encounter voltage regulator devices requiring current reading
> corrections according to their own properties (duty cycle and
> temperature). This correction is not preferred to perform within
> kernel drivers, and we are suggested to deal with them in user space.
> See "Read Output Current" in
> https://www.maximintegrated.com/en/design/technical-documents/app-notes/6/6042.html
> Example in demo:
> https://github.com/alex310110/bmc-proto-20q2/blob/master/device_xam2734.py
> 

We've been discussing a very similar feature to what you're describing
here at Facebook.  There is a very rough design document at:

    https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/32345

We need to have both aggregation sensors (the first) and corrections
(the second).  The design document here allows both.

On correction, my understanding is that we have some sensors that need
an adjustment depending on a *different* sensor value.  For instance, a
voltage regulator might have some error based on the ambient
temperature.

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-06-24  1:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-18 21:25 Feedback on Current OpenBMC and Proposing Some Improvements ---- Difficulties and Issue Examples Alex Qiu
2020-06-21 21:59 ` Ed Tanous
2020-06-23 23:47   ` Alex Qiu
2020-06-24  1:20     ` Patrick Williams [this message]
2020-06-24 16:57       ` Alex Qiu
2020-06-24  2:07     ` Ed Tanous
2020-06-24 23:37       ` Alex Qiu

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=20200624012011.GA3922@heinlein \
    --to=patrick@stwcx.xyz \
    --cc=belgaied@google.com \
    --cc=benjaminfair@google.com \
    --cc=ed@tanous.net \
    --cc=jasonling@google.com \
    --cc=krellan@google.com \
    --cc=ofery@google.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=peterlundgren@google.com \
    --cc=rhanley@google.com \
    --cc=xqiu@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.