All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Vadim Pasternak <vadimp@nvidia.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH hwmon-next v2 1/1] hwmon: (mlxreg-fan) Use pwm attribute for setting fan speed low limit
Date: Thu, 3 Feb 2022 11:00:20 -0800	[thread overview]
Message-ID: <20220203190020.GA236152@roeck-us.net> (raw)
In-Reply-To: <20220126141825.13545-1-vadimp@nvidia.com>

On Wed, Jan 26, 2022 at 04:18:25PM +0200, Vadim Pasternak wrote:
> Recently 'cur_state' user space 'sysfs' interface 'sysfs' has been
> deprecated. This interface is used in Nvidia systems for setting fan
> speed limit. Currently fan speed limit is set from the user space by
> setting 'sysfs' 'cur_state' attribute to 'max_state + n', where 'n' is
> required limit, for example: 15 for 50% speed limit, 20 for full fan
> speed enforcement.
> The purpose of this feature is to provides ability to limit fan speed
> according to some system wise considerations, like absence of some
> replaceable units (PSU or line cards), high system ambient temperature,
> unreliable transceivers temperature sensing or some other factors which
> indirectly impacts system's airflow.
> 
> The motivation is to support fan low limit feature through 'hwmon'
> interface.
> 
> Use 'hwmon' 'pwm' attribute for setting low limit for fan speed in
> case 'thermal' subsystem is configured in kernel. In this case setting
> fan speed through 'hwmon' will never let the 'thermal' subsystem to
> select a lower duty cycle than the duty cycle selected with the 'pwm'
> attribute.
> From other side, fan speed is to be updated in hardware through 'pwm'
> only in case the requested fan speed is above last speed set by
> 'thermal' subsystem, otherwise requested fan speed will be just stored
> with no PWM update.
> 
> Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>

Applied with minimal change.

Guenter

...
> +		/* Sit minimal PWM speed. */

s/Sit/Set/

      reply	other threads:[~2022-02-03 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26 14:18 [PATCH hwmon-next v2 1/1] hwmon: (mlxreg-fan) Use pwm attribute for setting fan speed low limit Vadim Pasternak
2022-02-03 19:00 ` Guenter Roeck [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=20220203190020.GA236152@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=vadimp@nvidia.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.