* PECI sensor rename
@ 2019-09-20 6:21 Derek Lin23
2019-09-23 17:46 ` Jae Hyun Yoo
0 siblings, 1 reply; 2+ messages in thread
From: Derek Lin23 @ 2019-09-20 6:21 UTC (permalink / raw)
To: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 2241 bytes --]
Hi Team:
I have a question for how to rename PECI sensor in cpu-sensor.
Currently, I am using peci-dimmtemp & peci-cputemp drivers under Kernel to read DIMM and CPU temperatures.
So, under /sys/class/hwmon directories, I can find the corresponding CPU & DIMM label names and temperatures.
Now, my question is how do I change the label names of each corresponding temperature in cpu-sensor component.
Here is the snapshot of my cpu-sensor using busctl. My goal is to show temperature name to be something else other than "Die_CPU1" or "DIMM_C1_CPU1".
root@abc/sys/class/hwmon/hwmon23# busctl tree --no-page xyz.openbmc_project.CPUSensor
...
/xyz/openbmc_project/sensors
mq/xyz/openbmc_project/sensors/temperature
tq/xyz/openbmc_project/sensors/temperature/Core_0_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_10_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_11_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_12_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_13_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_14_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_15_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_17_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_2_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_3_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_4_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_5_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_6_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_7_CPU1
tq/xyz/openbmc_project/sensors/temperature/Core_9_CPU1
tq/xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU1
tq/xyz/openbmc_project/sensors/temperature/DIMM_C2_CPU1
mq/xyz/openbmc_project/sensors/temperature/Die_CPU1
...
I understand that "Die" comes from peci-cputemp driver and "DIMM_C1" comes from peci-dimmtemp driver. Besides rewriting the label names in the drivers, do I have other options?
Thank you,
Derek
[-- Attachment #2: Type: text/html, Size: 8040 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PECI sensor rename
2019-09-20 6:21 PECI sensor rename Derek Lin23
@ 2019-09-23 17:46 ` Jae Hyun Yoo
0 siblings, 0 replies; 2+ messages in thread
From: Jae Hyun Yoo @ 2019-09-23 17:46 UTC (permalink / raw)
To: Derek Lin23, OpenBMC Maillist
Hi Derek,
On 9/19/2019 11:21 PM, Derek Lin23 wrote:
> Hi Team:
>
> I have a question for how to rename PECI sensor in cpu-sensor.
>
> Currently, I am using peci-dimmtemp & peci-cputemp drivers
> under Kernel to read DIMM and CPU temperatures.
>
> So, under /sys/class/hwmon directories, I can find the
> corresponding CPU & DIMM label names and temperatures.
>
> Now, my question is how do I change the label names of each
> corresponding temperature in cpu-sensor component.
>
> Here is the snapshot of my cpu-sensor using busctl. My goal
> is to show temperature name to be something else other than “Die_CPU1”
> or “DIMM_C1_CPU1”.
>
> root@abc/sys/class/hwmon/hwmon23# busctl tree
> --no-page xyz.openbmc_project.CPUSensor
> …
>
> /xyz/openbmc_project/sensors
>
> mq/xyz/openbmc_project/sensors/temperature
>
> tq/xyz/openbmc_project/sensors/temperature/Core_0_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_10_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_11_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_12_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_13_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_14_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_15_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_17_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_2_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_3_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_4_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_5_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_6_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_7_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/Core_9_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU1
>
> tq/xyz/openbmc_project/sensors/temperature/DIMM_C2_CPU1
>
> mq/xyz/openbmc_project/sensors/temperature/Die_CPU1
>
> …
>
> I understand that “Die” comes from peci-cputemp driver and
> “DIMM_C1” comes from peci-dimmtemp driver. Besides rewriting the label
> names in the drivers, do I have other options?
DBus names of CPU and DIMM sensors will be named by this code in
dbus-sensor repository.
https://github.com/openbmc/dbus-sensors/blob/de5e9705ff9d75dd5db2ea76d649c9bbba9f5e7a/src/CPUSensorMain.cpp#L266
You might need to change the logic if you are going to customize the
sensor names.
Cheers,
Jae
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-23 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20 6:21 PECI sensor rename Derek Lin23
2019-09-23 17:46 ` Jae Hyun Yoo
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.