All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Barth <msbarth@linux.ibm.com>
To: rgrs <rgrs@protonmail.com>,
	"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: Fan PWM monitoring and control
Date: Tue, 17 Sep 2019 10:07:44 -0500	[thread overview]
Message-ID: <87e610aa-72c7-32d2-9281-2c89023d397a@linux.ibm.com> (raw)
In-Reply-To: <xsccJqqcmgguxAh42ykWadNuaYHHgIw0933Bk0tYCREDFQMFzoE43c9ULehB-J0Em4kobpg-P8xmKd5ukb9AdyIO9-JYrY8DrNAcVFkURyM=@protonmail.com>


On 9/17/19 5:40 AM, rgrs wrote:
> Hi,
> 
> I need some help with phosphor hwmon related to fan sensors.
> 
> I'm trying to control Fans in a server motherboard using ADT7462 
> controller. Hw mon porting is done and the sysfs interfaces are working 
> as expected.
> 
> While I am able to read RPM, i don't find pwm/target to control the fans 
> exposed as dbus objects.
Do you have the hwmon config set similar to this to denote the fan 
targets are of PWM type?

https://github.com/openbmc/openbmc/blob/master/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/pwm-tacho-controller%401e786000.conf
> 
> # busctl --no-page tree xyz.openbmc_project.FanSensor
> Failed to introspect object / of service xyz.openbmc_project.FanSensor: 
> The name is not activatable
> No objects discovered.
That does not look like a hwmon service name. If you are using 
phosphor-objmgr, you can use `# mapper get-service 
/xyz/openbmc_project/sensors/fan_tach` otherwise you'll need to find the 
hwmon service name associated with your fan controller device.
> 
> I came across this post, I think it is similar to my issue. 
> (https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/8353)
> 
> Please someone point to latest documentation or reference Fan porting 
> from openBMC repo?
> What are the exact fields in YAML that are used create FanPWM objects.
The Romulus machine should be a good reference for PWM based fan control 
using phosphor-hwmon. It uses the 
phosphor-fan-presence/[control|monitor] apps for controlling and 
monitoring fans

https://github.com/openbmc/openbmc/tree/master/meta-ibm/meta-romulus
> 
> (I'm using Feb release in my sandbox, 
> https://github.com/openbmc/docs/blob/master/release/release-notes.md#26-feb-4-2019)
> 
> Thanks,
> Raj

Matt

  reply	other threads:[~2019-09-17 15:25 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-17 10:40 Fan PWM monitoring and control rgrs
2019-09-17 15:07 ` Matthew Barth [this message]
2019-09-17 15:48   ` Patrick Venture
2019-09-18  9:29     ` rgrs
2019-09-18 16:05       ` Patrick Venture
2019-09-19 10:16         ` rgrs
2019-09-19 14:56           ` Matthew Barth
2019-09-20  9:27             ` rgrs
2019-09-20  9:55               ` rgrs
2019-09-20 16:19                 ` Matthew Barth
2019-09-24  4:25                   ` rgrs
2019-09-24 14:55                     ` Matthew Barth
2019-09-25  6:45                       ` rgrs
2019-09-26 14:49                         ` Matthew Barth
2019-10-01  8:26                           ` rgrs
2019-10-03 12:54                             ` rgrs
2019-10-03 21:02                               ` Matthew Barth
2019-10-03 20:59                             ` Matthew Barth
2019-10-04 10:38                               ` rgrs
2019-10-04 13:44                                 ` Matthew Barth
2019-10-04 13:48                                   ` rgrs
2019-09-20 16:03               ` Matthew Barth
2019-09-19  2:20 ` Lei YU

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=87e610aa-72c7-32d2-9281-2c89023d397a@linux.ibm.com \
    --to=msbarth@linux.ibm.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=rgrs@protonmail.com \
    /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.