Could phosphor-hwmon support peci-sensors
Hi All,
I have some problems with phosphor-hwmon.
Could package phosphor-hwmon supports peci sensors such as cpu and dimm tempatures ? If yes, could you give me some hints that how do I write configuration for peci sensors, please :).
Thanks.
Duke, Du
Quoted 7 lines · Duke Du (杜祥嘉)
Hi All,
I have some problems with phosphor-hwmon.
Could package phosphor-hwmon supports peci sensors such as cpu and dimm tempatures ? If yes, could you give me some hints that how do I write configuration for peci sensors, please :).Thanks.
Duke, Du
phosphor-hwmon should work with anything that implements the hwmon ABI. So I think to make PECI sensors work with phosphor-hwmon, you need hwmon drivers for PECI sensors. I don't know if anyone is working on that.
I suspect the other sensor application - dbus-sensors supports PECI just fine. But I don't know how it works, if it can be used without entity manager, and/or if it can be run in parallel with phosphor-hwmon.
Quoted 6 lines · Brad Bishop
Quoted 5 lines · Duke Du (杜祥嘉)
Hi All,
I have some problems with phosphor-hwmon.
Could package phosphor-hwmon supports peci sensors such as cpu and dimm tempatures ? If yes, could you give me some hints that how do I write configuration for peci sensors, please :).
Quoted 6 lines
Quoted 2 lines
Thanks.
Duke, Duphosphor-hwmon should work with anything that implements the hwmon ABI. So I think to make PECI sensors work with phosphor-hwmon, you need hwmon drivers for PECI sensors. I don't know if anyone is working on that.
I suspect the other sensor application - dbus-sensors supports PECI just fine. But I don't know how it works, if it can be used without entity manager, and/or if it can be run in parallel with phosphor-hwmon.
+ Jae, CPU Sensor Author
https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensorMain.cpp
CPU sensor currently supports PECI sensors https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensor.cpp
It does require entity-manager currently, but it could be run in parallel with phosphor-hwmon.
-James
A message that is not in the archive (sent off-list or not yet received): CAGaXSwZLrsg6WfKdfdWd4FFu4oLe=dj1rZM+jWmBiwf6+niPeA@mail.gmail.com
Hi Brad & James,
Thanks for your reply, that's really helpful.
Thanks.
Duke, Du
----------
寄件者: Duke Du (杜祥嘉) <mailto:[email protected]>
Date: 2019年7月8日 週一 下午8:34
To: mailto:[email protected] <mailto:[email protected]>
Hi All,
I have some problems with phosphor-hwmon.
Could package phosphor-hwmon supports peci sensors such as cpu and dimm tempatures ? If yes, could you give me some hints that how do I write configuration for peci sensors, please :).
Thanks.
Duke, Du
----------
寄件者: Brad Bishop <mailto:[email protected]>
Date: 2019年7月9日 週二 上午1:54
To: Duke Du (杜祥嘉) <mailto:[email protected]>
Cc: mailto:[email protected] <mailto:[email protected]>
phosphor-hwmon should work with anything that implements the hwmon ABI. So I think to make PECI sensors work with phosphor-hwmon, you need hwmon drivers for PECI sensors. I don't know if anyone is working on that.
I suspect the other sensor application - dbus-sensors supports PECI just fine. But I don't know how it works, if it can be used without entity manager, and/or if it can be run in parallel with phosphor-hwmon.
----------
寄件者: James Feist <mailto:[email protected]>
Date: 2019年7月9日 週二 上午2:28
To: Brad Bishop <mailto:[email protected]>, Duke Du (杜祥嘉) <mailto:[email protected]>
Cc: mailto:[email protected] <mailto:[email protected]>, Jae Hyun Yoo <mailto:[email protected]>
+ Jae, CPU Sensor Author
https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensorMain.cpp
CPU sensor currently supports PECI sensors
https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensor.cpp
It does require entity-manager currently, but it could be run in parallel with phosphor-hwmon.
-James
On 7/8/19, 11:29 AM, "openbmc on behalf of James Feist" <[email protected] on behalf of [email protected]> wrote:
On 7/8/19 10:52 AM, Brad Bishop wrote:
> On Mon, Jul 08, 2019 at 12:33:21PM +0000, Duke Du (杜祥嘉) wrote:
>> Hi All,
>> I have some problems with phosphor-hwmon.
>> Could package phosphor-hwmon supports peci sensors such as cpu and >> dimm tempatures ?
>> If yes, could you give me some hints that how do I write configuration >> for peci sensors, please :).
>>
>> Thanks.
>> Duke, Du
>
> phosphor-hwmon should work with anything that implements the hwmon ABI. > So I think to make PECI sensors work with phosphor-hwmon, you need hwmon > drivers for PECI sensors. I don't know if anyone is working on that. >
> I suspect the other sensor application - dbus-sensors supports PECI just > fine. But I don't know how it works, if it can be used without entity > manager, and/or if it can be run in parallel with phosphor-hwmon.
+ Jae, CPU Sensor Author
https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensorMain.cpp
CPU sensor currently supports PECI sensors
https://github.com/openbmc/dbus-sensors/blob/master/src/CPUSensor.cpp
It does require entity-manager currently, but it could be run in parallel with phosphor-hwmon.
There is peci driver along with hwmon peci driver available in openbmc linux kernel 5.3 which will take care of hwmon interface. And there are also peci-dimm and peci-cpu driver to read cpu and dimm sensors. Once these drivers enabled, it sould work with phosphor-hwmon without entity manager and dbus-sensors.
Regards
-Vijay
-James