All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thu Nguyen OS <thu@os.amperecomputing.com>
To: Mahesh Kurapati <mahesh.kurapati@keysight.com>,
	"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: fansensor errors
Date: Sun, 18 Apr 2021 14:55:59 +0000	[thread overview]
Message-ID: <3DA0E34E-E3E9-4A56-9D87-806E46E2A785@amperemail.onmicrosoft.com> (raw)
In-Reply-To: <CY4PR17MB165329ED7931C3A9CA86E816964D9@CY4PR17MB1653.namprd17.prod.outlook.com>

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

      reply	other threads:[~2021-04-18 14:56 UTC|newest]

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

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=3DA0E34E-E3E9-4A56-9D87-806E46E2A785@amperemail.onmicrosoft.com \
    --to=thu@os.amperecomputing.com \
    --cc=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 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.