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:44:33 -0500 [thread overview]
Message-ID: <YIxsMQdhrkg7PYlE@heinlein> (raw)
In-Reply-To: <CAHBbfcWK3nRA3j96EQW38FYJ3gBtn2rkEZLrgGrrwTCaU=Reng@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]
On Fri, Apr 30, 2021 at 08:45:14AM -0700, Jason Ling wrote:
> On Fri, Apr 30, 2021 at 07:52:36AM -0700, Jason Ling wrote:
> Whew...took a lot longer to find the thread but here is the explicit
> rejection of firmware and configuration upgrade from within the kernel
>
> https://lkml.org/lkml/2020/8/7/565
I feel like we're not really engaging well with Guenter on some of these
hwmon/pmbus use cases. He rejected it but there was not any response
from the author on why this is useful, or any engagement on how we
handle this.
He said:
This should be done ... in a controlled environment (eg manufacturing).
It can easily brick the hardware, and should not be done in the driver.
We do upgrades of firmware outside of manufacturing all the time. We
need to engage in a real discussion with him. If we are comfortable
doing this, why can't we do it? If he is worried about other
environments, like a general Linux desktop that happened to hook up a
PMBus to a power supply, then lets make it a compile option.
There is other firmware update support in the kernel so the "possibility
of bricking" is not a convincing argument to me.
> other things like don't put in ioctls
>
> https://lkml.org/lkml/2020/6/24/830
Not putting in ioctls isn't unreasonable if there is another way to
accomplish this. In general, adding ioctls seems to be a rare activity
and there is a preference for sysfs or debugfs interfaces.
> I suspect that things like adjusting voltages would similarly be rejected
> but honestly we haven't gone down that path yet.
About two years ago I was able to modify the voltage on a VR using the
PMBus subsystem and a one-line change to set a sysfs to R/W instead of
R/O. I didn't contribute it upstream because of [reasons given by a
former employer], but it doesn't seem non-doable. Again, I think we'd
need to engage if we're rejected on first pass.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2021-04-30 20:45 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
2021-04-30 20:44 ` Patrick Williams [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=YIxsMQdhrkg7PYlE@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.