linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Energy counters for PMBUS
@ 2021-04-02 13:19 zlukwins
  2021-04-03  3:16 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: zlukwins @ 2021-04-02 13:19 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-hwmon

Hi,


I am OpenBMC FW developer. We have a use cases which require PSU devices 
energy counters reading. Looks like hwmon:pmbus does not support that 
right now.

Hwmon sysfs 
(https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface) already 
supports energy counter (energy[1-*]_input).

PMBus standard (revision 1.3.1) provides API for getting energy - 
READ_EIN/READ_EOUT commands.

So I am wondering whether we could just add this implementation to the 
hwmon/pmbus/pmbus_core.c? Or maybe there are some constraints?


Thanks

Zbigniew



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Energy counters for PMBUS
  2021-04-02 13:19 Energy counters for PMBUS zlukwins
@ 2021-04-03  3:16 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2021-04-03  3:16 UTC (permalink / raw)
  To: zlukwins; +Cc: linux-hwmon

On Fri, Apr 02, 2021 at 03:19:40PM +0200, zlukwins wrote:
> Hi,
> 
> 
> I am OpenBMC FW developer. We have a use cases which require PSU devices
> energy counters reading. Looks like hwmon:pmbus does not support that right
> now.
> 
> Hwmon sysfs (https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface)
> already supports energy counter (energy[1-*]_input).
> 
> PMBus standard (revision 1.3.1) provides API for getting energy -
> READ_EIN/READ_EOUT commands.
> 
> So I am wondering whether we could just add this implementation to the
> hwmon/pmbus/pmbus_core.c? Or maybe there are some constraints?
> 

Sure, go ahead. The only reason for not implementing it was that I did
not have access to a chip supporting it when I wrote the code.

Guenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-03  3:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02 13:19 Energy counters for PMBUS zlukwins
2021-04-03  3:16 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).