Skip to contentSkip to conversation

Suggested additions to hwmon sysfs ABI

lm-sensors Guenter Roeck 2 participants 4 messages Jul 9, 2011 – Jul 11, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

while adding support for more PMBus devices, I noticed that many of the chips support attributes which are not currently available in the sysfs ABI.

Here is a (not necessarily complete) list.

---

Historic minimum attributes:
vout_min vin_min temp_min
MAX34440 x
MAX34441 x
LTC2978 x x x

Peak (historic maximum) attributes:

pin_peak vin_peak vout_peak iout_peak temp_peak
MAX34440 x x x
MAX34441 x x x
MAX8688 x x x
MAX16064 x x
ADM1275 x x x
ADM1276 x x x x
LTC2978 x x x
LM25066 x (1)
LM5064 x (1)
LM5066 x (1)
ZLxxxx (2) x (3)

Average attributes:

		vin_avg		vout_avg	iin_avg		pin_avg

LM25066 x x x x (1)
LM5064 x x x x (1)
LM5066 x x x x (1)

Notes:
1) In addition to instantaneous power measurements
2) All Intersil / Zilker Labs power management chips
3) Only available through SNAPSHOT command, which reads a total of 32 bytes. Also see Intersil / Zilker Labs AN2033.

---

Based on this list, I suggest adding the following attributes to the ABI.

in[0-*]_input_lowest
in[0-*]_input_highest
in[0-*]_average
in[0-*]_reset_history

curr[1-*]_input_lowest
curr[1-*]_input_highest
curr[1-*]_average
curr[1-*]_reset_history

temp[1-*]_input_lowest
temp[1-*]_input_highest
temp[1-*]_average
temp[1-*]_reset_history

It might also be necessary to modify the sensors command to support both instantaneous and average/peak power readings at the same time.

Thoughts/comments ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 57 lines · Guenter Roeck

Hi all,

while adding support for more PMBus devices, I noticed that many of the chips support attributes which are not currently available in the sysfs ABI.

Here is a (not necessarily complete) list.

---

Historic minimum attributes:
vout_min vin_min temp_min
MAX34440 x
MAX34441 x
LTC2978 x x x

Peak (historic maximum) attributes:

pin_peak vin_peak vout_peak iout_peak temp_peak
MAX34440 x x x
MAX34441 x x x
MAX8688 x x x
MAX16064 x x
ADM1275 x x x
ADM1276 x x x x
LTC2978 x x x
LM25066 x (1)
LM5064 x (1)
LM5066 x (1)
ZLxxxx (2) x (3)

Average attributes:

		vin_avg		vout_avg	iin_avg		pin_avg

LM25066 x x x x (1)
LM5064 x x x x (1)
LM5066 x x x x (1)

Notes:
1) In addition to instantaneous power measurements
2) All Intersil / Zilker Labs power management chips
3) Only available through SNAPSHOT command, which reads a total of 32 bytes. Also see Intersil / Zilker Labs AN2033.

---

Based on this list, I suggest adding the following attributes to the ABI.

in[0-*]_input_lowest
in[0-*]_input_highest
in[0-*]_average
in[0-*]_reset_history

curr[1-*]_input_lowest
curr[1-*]_input_highest
curr[1-*]_average
curr[1-*]_reset_history

Quoted 7 lines

temp[1-*]_input_lowest
temp[1-*]_input_highest
temp[1-*]_average
temp[1-*]_reset_history

It might also be necessary to modify the sensors command to support both instantaneous and average/peak power readings at the same time.

How are you going to do peak power?

Otherwise, Looks sensible. Ran into this in IIO as well, we went with peak, but highest / lowest works just as well. (not seen the minimum version yet)

Quoted 11 lines

Thoughts/comments ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Guenter Roeck

On Mon, Jul 11, 2011 at 04:53:09AM -0400, Jonathan Cameron wrote:
[ ... ]

Quoted 13 lines
Quoted 13 lines

Based on this list, I suggest adding the following attributes to the ABI.

in[0-*]_input_lowest
in[0-*]_input_highest
in[0-*]_average
in[0-*]_reset_history

curr[1-*]_input_lowest
curr[1-*]_input_highest
curr[1-*]_average
curr[1-*]_reset_history

Quoted 9 lines
Quoted 7 lines

temp[1-*]_input_lowest
temp[1-*]_input_highest
temp[1-*]_average
temp[1-*]_reset_history

It might also be necessary to modify the sensors command to support both instantaneous and average/peak power readings at the same time.

How are you going to do peak power?

power already has

power[1-*]_average
power[1-*]_input_highest
power[1-*]_input_lowest
power[1-*]_reset_history

Also, turns out that the following attributes for current sensors already exist.

curr[1-*]_average
curr[1-*]_lowest
curr[1-*]_highest
curr[1-*]_reset_history
curr_reset_history

so I decided to stick with that terminology and use it for voltage and temperature sensors in my proposed patch.

Quoted 2 lines

Otherwise, Looks sensible. Ran into this in IIO as well, we went with peak, but highest / lowest works just as well. (not seen the minimum version yet)

I thought about using peak too, but since lowest/highest is already used, think it is better to stick with it.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Guenter Roeck
Quoted 31 lines · Guenter Roeck

On Mon, Jul 11, 2011 at 04:53:09AM -0400, Jonathan Cameron wrote:
[ ... ]

Quoted 13 lines
Quoted 13 lines

Based on this list, I suggest adding the following attributes to the ABI.

in[0-*]_input_lowest
in[0-*]_input_highest
in[0-*]_average
in[0-*]_reset_history

curr[1-*]_input_lowest
curr[1-*]_input_highest
curr[1-*]_average
curr[1-*]_reset_history

Quoted 9 lines
Quoted 7 lines

temp[1-*]_input_lowest
temp[1-*]_input_highest
temp[1-*]_average
temp[1-*]_reset_history

It might also be necessary to modify the sensors command to support both instantaneous and average/peak power readings at the same time.

How are you going to do peak power?

power already has

power[1-*]_average
power[1-*]_input_highest
power[1-*]_input_lowest
power[1-*]_reset_history

Quoted 8 lines

Also, turns out that the following attributes for current sensors already exist.

curr[1-*]_average
curr[1-*]_lowest
curr[1-*]_highest
curr[1-*]_reset_history
curr_reset_history

Correction, the above existed for temperature sensors, and I added new attributes for voltage and current.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors