* Extending phosphor-gpio-monitor to expose gpio objects on dbus
@ 2022-07-14 21:52 Arvind Nandanahosur Ramesh
2022-07-17 10:58 ` Patrick Williams
0 siblings, 1 reply; 6+ messages in thread
From: Arvind Nandanahosur Ramesh @ 2022-07-14 21:52 UTC (permalink / raw)
To: openbmc@lists.ozlabs.org
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
Hi Everyone,
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 ?
Thanks
Arvind
[-- Attachment #2: Type: text/html, Size: 2424 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
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
2022-07-18 0:36 ` Andrew Jeffery
2022-07-18 10:10 ` Michael Richardson
0 siblings, 2 replies; 6+ messages in thread
From: Patrick Williams @ 2022-07-17 10:58 UTC (permalink / raw)
To: Arvind Nandanahosur Ramesh; +Cc: openbmc@lists.ozlabs.org
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
2022-07-17 10:58 ` Patrick Williams
@ 2022-07-18 0:36 ` Andrew Jeffery
2022-07-18 10:10 ` Michael Richardson
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Jeffery @ 2022-07-18 0:36 UTC (permalink / raw)
To: openbmc
On Sun, 17 Jul 2022, at 20:28, Patrick Williams wrote:
> 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.
I did a bit of digging and pushed this:
https://gerrit.openbmc.org/c/openbmc/docs/+/55422
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
2022-07-17 10:58 ` Patrick Williams
2022-07-18 0:36 ` Andrew Jeffery
@ 2022-07-18 10:10 ` Michael Richardson
2022-07-18 23:29 ` Andrew Jeffery
1 sibling, 1 reply; 6+ messages in thread
From: Michael Richardson @ 2022-07-18 10:10 UTC (permalink / raw)
To: openbmc@lists.ozlabs.org
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Patrick Williams <patrick@stwcx.xyz> wrote:
> 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.
So, clearly some developers think that they need this :-)
I read:
https://gerrit.openbmc.org/c/openbmc/docs/+/55422
and this is good, but is little too abstract to be useful I think.
I would like to suggest three things.
1) link to some situations where this has been proposed, and then a smarter
resolution via another method might be good. Is there a link to the
host-power on code as a clear commit?
2) I wonder about situations where developers are trying to get access to
some kind of debug info into the field, and that's why they look this. That
is, there isn't a way to wrap it up into something abstract, because the
point is to allow for deeper examination.
3) maybe link to situations where dbus has failed to be fast enough.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
2022-07-18 10:10 ` Michael Richardson
@ 2022-07-18 23:29 ` Andrew Jeffery
2022-07-20 3:40 ` Andrew Jeffery
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Jeffery @ 2022-07-18 23:29 UTC (permalink / raw)
To: openbmc
Hi Michael,
On Mon, 18 Jul 2022, at 19:40, Michael Richardson wrote:
> Patrick Williams <patrick@stwcx.xyz> wrote:
> > 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.
>
> So, clearly some developers think that they need this :-)
>
> I read:
> https://gerrit.openbmc.org/c/openbmc/docs/+/55422
>
> and this is good, but is little too abstract to be useful I think.
Can you please provide this feedback as comments on https://gerrit.openbmc.org/c/openbmc/docs/+/55422? This way we can ensure all commentary is addressed before submitting the patch.
Thanks,
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending phosphor-gpio-monitor to expose gpio objects on dbus
2022-07-18 23:29 ` Andrew Jeffery
@ 2022-07-20 3:40 ` Andrew Jeffery
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Jeffery @ 2022-07-20 3:40 UTC (permalink / raw)
To: openbmc, Michael Richardson
Sorry, I hit "Reply to List" rather than "Reply to All"
On Tue, 19 Jul 2022, at 08:59, Andrew Jeffery wrote:
> Hi Michael,
>
> On Mon, 18 Jul 2022, at 19:40, Michael Richardson wrote:
>> Patrick Williams <patrick@stwcx.xyz> wrote:
>> > 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.
>>
>> So, clearly some developers think that they need this :-)
>>
>> I read:
>> https://gerrit.openbmc.org/c/openbmc/docs/+/55422
>>
>> and this is good, but is little too abstract to be useful I think.
>
> Can you please provide this feedback as comments on
> https://gerrit.openbmc.org/c/openbmc/docs/+/55422? This way we can
> ensure all commentary is addressed before submitting the patch.
>
> Thanks,
>
> Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-07-20 3:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.