fansensor errors

Mahesh Kurapati mahesh.kurapati at keysight.com
Fri Apr 16 04:09:41 AEST 2021


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 at 1e786000.conf<mailto:pwm-tacho-controller at 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 at 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 at fenderbmc:~#

tacuser at 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 at 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 at fenderbmc:~#

tacuser at fenderbmc:~# cat /etc/default/obmc/hwmon/ahb/apb/pwm-tacho-controller at 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 at fenderbmc:~#

tacuser at 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 at fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#<mailto:tacuser at fenderbmc:/sys/devices/platform/ahb/ahb:apb/1e786000.pwm-tacho-controller/hwmon/hwmon0#>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210415/a70a45db/attachment-0001.htm>


More information about the openbmc mailing list