openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mahesh Kurapati <mahesh.kurapati@keysight.com>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: fansensor errors
Date: Thu, 15 Apr 2021 18:09:41 +0000	[thread overview]
Message-ID: <CY4PR17MB165329ED7931C3A9CA86E816964D9@CY4PR17MB1653.namprd17.prod.outlook.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-04-15 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15 18:09 Mahesh Kurapati [this message]
2021-04-18 14:55 ` fansensor errors Thu Nguyen OS

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CY4PR17MB165329ED7931C3A9CA86E816964D9@CY4PR17MB1653.namprd17.prod.outlook.com \
    --to=mahesh.kurapati@keysight.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).