From: Patrick Williams <patrick@stwcx.xyz>
To: Arvind Nandanahosur Ramesh <arvindna@microsoft.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
Date: Sun, 17 Jul 2022 05:58:56 -0500 [thread overview]
Message-ID: <YtPrcDzaxXiM6vYJ@heinlein.stwcx.org.github.beta.tailscale.net> (raw)
In-Reply-To: <MN2PR21MB118426E5D86B645A1ADF887AC8889@MN2PR21MB1184.namprd21.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]
On Thu, Jul 14, 2022 at 09:52:57PM +0000, Arvind Nandanahosur Ramesh wrote:
> Hi Everyone,
Hello Arvind,
> We have been toying with the idea of extending the phosphor-gpio-monitor to expose the the gpio objects it manages on dbus in addition to its current functionality of executing a specified systemd target. This additional functionality can be enabled by an additional parameter in the phosphor-multi-gpio-monitor.json file. Before going down the path of implementing this and upstreaming the changes, I wanted to get a sense on if this is a good or a bad idea. Essentially this would be useful for other services to query the current GPIO value of input signals over dbus or react to changes in its value. What did you all think ?
I'd say about every 6 months someone proposes a change to
phosphor-dbus-interface with the addition of a "Generic GPIO interface"
and it has always been rejected. This has gotten to be so regular that
I should probably try to track them down in a list so the discussions
there can be easily referred to.
The two primary issues with a generic GPIO interface are:
1. Performance
GPIOs can change state quite rapidly and there are hundreds of them.
This is likely to be a problem on dbus.
2. Inadequate abstraction
Generally we do not expose low-level hardware entities directly on dbus,
because it doesn't provide any abstraction. You're going to end up with
hard-coded names that tie some hardware GPIO name into various
applications elsewhere the software stack, which isn't great for
maintainability. We've always suggested figuring out the software
construct that those GPIOs represent and make an adequate dbus
representation of that higher level construct.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-07-17 10:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 21:52 Extending phosphor-gpio-monitor to expose gpio objects on dbus Arvind Nandanahosur Ramesh
2022-07-17 10:58 ` Patrick Williams [this message]
2022-07-18 0:36 ` Andrew Jeffery
2022-07-18 10:10 ` Michael Richardson
2022-07-18 23:29 ` Andrew Jeffery
2022-07-20 3:40 ` Andrew Jeffery
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=YtPrcDzaxXiM6vYJ@heinlein.stwcx.org.github.beta.tailscale.net \
--to=patrick@stwcx.xyz \
--cc=arvindna@microsoft.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.