* fansensor errors
@ 2021-04-15 18:09 Mahesh Kurapati
2021-04-18 14:55 ` Thu Nguyen OS
0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Kurapati @ 2021-04-15 18:09 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 5614 bytes --]
Hello,
I am newbie with the OpenBMC. We are porting OpenBMC for a platform which has 7 fan modules with two fans in each module. I defined the pwm-tacho-controller@1e786000.conf<mailto:pwm-tacho-controller@1e786000.conf>, and when I run it, I see the following errors from the fansenor service. Here I pasted logs from the service, my conf file and other important information. I did not understand why the service is giving these errors. Appreciate your help.
tacuser@fenderbmc:~# journalctl -u xyz.openbmc_project.fansensor.service
-- Logs begin at Thu 1970-01-01 00:00:08 UTC, end at Thu 2021-04-15 17:26:28 UTC. --
Apr 15 17:24:24 fenderbmc systemd[1]: Started Fan Sensor.
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan9_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan13_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan1_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan4_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan7_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan11_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan14_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan2_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan5_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan8_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan12_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan3_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan6_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan10_input
tacuser@fenderbmc:~#
tacuser@fenderbmc:~# ls -ls /sys/class/hwmon/hwmon0/
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 device -> ../../../1e786000.pwm-tacho-controller
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan10_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan11_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan12_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan13_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan14_input
0 -r--r--r-- 1 tacuser root 4096 Jan 1 1970 fan1_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan2_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan3_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan4_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan5_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan6_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan7_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan8_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan9_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 name
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 of_node -> ../../../../../../../firmware/devicetree/base/ahb/apb/pwm-tacho-controller@1e786000
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm1
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm2
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm3
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm4
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm5
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm6
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm7
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 subsystem -> ../../../../../../../class/hwmon
0 -rw-r--r-- 1 tacuser root 4096 Jan 1 1970 uevent
tacuser@fenderbmc:~#
tacuser@fenderbmc:~# cat /etc/default/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf
# Fender has 7 fan modules with two fans in each module
LABEL_fan1 = "fanA0"
LABEL_fan2 = "fanA1"
LABEL_fan3 = "fanB0"
LABEL_fan4 = "fanB1"
LABEL_fan5 = "fanC0"
LABEL_fan6 = "fanC1"
LABEL_fan7 = "fanD0"
LABEL_fan8 = "fanD1"
LABEL_fan9 = "fanE0"
LABEL_fan10 = "fanE1"
LABEL_fan11 = "fanF0"
LABEL_fan12 = "fanF2"
LABEL_fan13 = "fanG0"
LABEL_fan14 = "fanG1"
PWM_TARGET_1 = "fanA"
PWM_TARGET_2 = "fanB"
PWM_TARGET_3 = "fanC"
PWM_TARGET_4 = "fanD"
PWM_TARGET_5 = "fanE"
PWM_TARGET_6 = "fanF"
PWM_TARGET_7 = "fanG"
tacuser@fenderbmc:~#
tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0# ls
device fan11_input fan13_input fan1_input fan3_input fan5_input fan7_input fan9_input of_node pwm2 pwm4 pwm6 subsystem
fan10_input fan12_input fan14_input fan2_input fan4_input fan6_input fan8_input name pwm1 pwm3 pwm5 pwm7 uevent
tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#<mailto:tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#>
[-- Attachment #2: Type: text/html, Size: 17753 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fansensor errors
2021-04-15 18:09 fansensor errors Mahesh Kurapati
@ 2021-04-18 14:55 ` Thu Nguyen OS
0 siblings, 0 replies; 2+ messages in thread
From: Thu Nguyen OS @ 2021-04-18 14:55 UTC (permalink / raw)
To: Mahesh Kurapati, openbmc
[-- Attachment #1: Type: text/plain, Size: 6713 bytes --]
Pleasee see inline.
Regards.
Thu Nguyen.
From: openbmc <openbmc-bounces+thu=os.amperecomputing.com@lists.ozlabs.org> on behalf of Mahesh Kurapati <mahesh.kurapati@keysight.com>
Date: Friday, 16 April 2021 at 01:19
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: fansensor errors
Hello,
I am newbie with the OpenBMC. We are porting OpenBMC for a platform which has 7 fan modules with two fans in each module. I defined the pwm-tacho-controller@1e786000.conf<mailto:pwm-tacho-controller@1e786000.conf>, and when I run it, I see the following errors from the fansenor service. Here I pasted logs from the service, my conf file and other important information. I did not understand why the service is giving these errors. Appreciate your help.
tacuser@fenderbmc:~# journalctl -u xyz.openbmc_project.fansensor.service
-- Logs begin at Thu 1970-01-01 00:00:08 UTC, end at Thu 2021-04-15 17:26:28 UTC. --
Apr 15 17:24:24 fenderbmc systemd[1]: Started Fan Sensor.
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan9_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan13_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan1_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan4_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan7_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan11_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan14_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan2_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan5_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan8_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan12_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan3_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan6_input
Apr 15 17:24:27 fenderbmc fansensor[306]: failed to find match for /sys/class/hwmon/hwmon0/fan10_input
tacuser@fenderbmc:~#
[Thu Nguyen]: It seem you are setting VIRTUAL-RUNTIME_obmc-sensors-hwmon?=”dbus-sensors”, but your configuration is for phosphor-hwmon.
Above log is from dbus-sensors.
tacuser@fenderbmc:~# ls -ls /sys/class/hwmon/hwmon0/
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 device -> ../../../1e786000.pwm-tacho-controller
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan10_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan11_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan12_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan13_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan14_input
0 -r--r--r-- 1 tacuser root 4096 Jan 1 1970 fan1_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan2_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan3_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan4_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan5_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan6_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan7_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan8_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 fan9_input
0 -r--r--r-- 1 tacuser root 4096 Apr 15 17:24 name
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 of_node -> ../../../../../../../firmware/devicetree/base/ahb/apb/pwm-tacho-controller@1e786000
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm1
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm2
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm3
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm4
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm5
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm6
0 -rw-r--r-- 1 tacuser root 4096 Apr 15 17:45 pwm7
0 lrwxrwxrwx 1 tacuser root 0 Jan 1 1970 subsystem -> ../../../../../../../class/hwmon
0 -rw-r--r-- 1 tacuser root 4096 Jan 1 1970 uevent
tacuser@fenderbmc:~#
tacuser@fenderbmc:~# cat /etc/default/obmc/hwmon/ahb/apb/pwm-tacho-controller@1e786000.conf
# Fender has 7 fan modules with two fans in each module
LABEL_fan1 = "fanA0"
LABEL_fan2 = "fanA1"
LABEL_fan3 = "fanB0"
LABEL_fan4 = "fanB1"
LABEL_fan5 = "fanC0"
LABEL_fan6 = "fanC1"
LABEL_fan7 = "fanD0"
LABEL_fan8 = "fanD1"
LABEL_fan9 = "fanE0"
LABEL_fan10 = "fanE1"
LABEL_fan11 = "fanF0"
LABEL_fan12 = "fanF2"
LABEL_fan13 = "fanG0"
LABEL_fan14 = "fanG1"
PWM_TARGET_1 = "fanA"
PWM_TARGET_2 = "fanB"
PWM_TARGET_3 = "fanC"
PWM_TARGET_4 = "fanD"
PWM_TARGET_5 = "fanE"
PWM_TARGET_6 = "fanF"
PWM_TARGET_7 = "fanG"
[Thu]
The setting of PWM_TARGET should be:
PWM_TARGET_fan1 = "PWM#" <= Ex “3”
PWM_TARGET_fan2 = "PWM#" <= Ex “3”
PWM_TARGET_fan3 = "PWM#" <= Ex “4”
PWM_TARGET_fan4 = "PWM#" <= Ex “4”
PWM_TARGET_fan5 = "PWM#" <= Ex “5”
PWM_TARGET_fan6 = "PWM#" <= Ex “5”
PWM_TARGET_fan7 = "PWM#" <= Ex “6”
PWM_TARGET_fan8 = "PWM#" <= Ex “6”
PWM_TARGET_fan9 = "PWM#" <= Ex “7”
PWM_TARGET_fan10 = "PWM#" <= Ex “7”
PWM_TARGET_fan11 = "PWM#" <= Ex “8”
PWM_TARGET_fan12 = "PWM#" <= Ex “8”
PWM_TARGET_fan13 = "PWM#" <= Ex “9”
PWM_TARGET_fan14 = "PWM#" <= Ex “9”
tacuser@fenderbmc:~#
tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0# ls
device fan11_input fan13_input fan1_input fan3_input fan5_input fan7_input fan9_input of_node pwm2 pwm4 pwm6 subsystem
fan10_input fan12_input fan14_input fan2_input fan4_input fan6_input fan8_input name pwm1 pwm3 pwm5 pwm7 uevent
tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#<mailto:tacuser@fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0>
[-- Attachment #2: Type: text/html, Size: 26316 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-18 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 18:09 fansensor errors Mahesh Kurapati
2021-04-18 14:55 ` Thu Nguyen OS
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).