All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Williams <patrick@stwcx.xyz>
To: Jason Ling <jasonling@google.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: [pmbusplus] userspace i2c, pmbus interactions
Date: Fri, 30 Apr 2021 15:47:25 -0500	[thread overview]
Message-ID: <YIxs3WRvvOujqmNB@heinlein> (raw)
In-Reply-To: <CAHBbfcVBH803ADi0+Xm-0MT5TfOtDPD1TLU0rXzdKmz-=-5Uuw@mail.gmail.com>

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

On Fri, Apr 30, 2021 at 08:53:27AM -0700, Jason Ling wrote:
> Yup, this definitely isn't pleasant but it's doable. Have you had
> experiences where unbinding/binding caused lots of pain? The only pain that
> I've seen is that telemetry daemons generally don't take well to having
> hwmon sysfs attributes yanked from underneath them.

Yes, our current hwmon daemons don't take kindly to the device being
pulled out from underneath them.  That's the big concern.

On top of that, other daemons that consume those sensor readings don't
really like the sensor going away either.

> Just spitballing.. but for devices that need to be upgradeable *and* need
> to report telemetry, that such things should be done in a single service
> and perhaps it makes the most sense to do it all in userspace (to avoid
> ugly unbinding/binding).

This is not ideal to me, if I'm understanding what you wrote correctly.
It means that any PMBus device for which we want to do upgrade we won't
be using the pmbus+hwmon subsystem but instead have to rewrite it all
ourselves in userspace.

My top preference would be to work with upstream about supporting field
upgrade on devices.  Second would be to figure out how to safely
bind/unbind.  Reimplenting what the kernel already has and we already
leverage should be way down our preference list.

-- 
Patrick Williams

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

  reply	other threads:[~2021-04-30 20:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 22:22 [pmbusplus] userspace i2c, pmbus interactions Jason Ling
2021-04-27  1:27 ` Andrew Jeffery
2021-04-27  2:32 ` Mike Jones
2021-04-27 16:20   ` Jason Ling
2021-04-27 18:00     ` Mike Jones
2021-04-27 19:49       ` Vivek Gani
2021-04-30 14:18 ` Patrick Williams
2021-04-30 14:52   ` Jason Ling
2021-04-30 15:10     ` Patrick Williams
2021-04-30 15:43       ` Mike Jones
2021-04-30 20:54         ` Patrick Williams
2021-04-30 21:00           ` Jason Ling
2021-04-30 21:50             ` Mike Jones
2021-04-30 21:42           ` Mike Jones
2021-05-07 21:11             ` Alex Qiu
2021-04-30 15:45       ` Jason Ling
2021-04-30 15:53         ` Jason Ling
2021-04-30 20:47           ` Patrick Williams [this message]
2021-04-30 20:44         ` Patrick Williams

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=YIxs3WRvvOujqmNB@heinlein \
    --to=patrick@stwcx.xyz \
    --cc=jasonling@google.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.