[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181120.103128.1082546038469815846.davem@davemloft.net>
Date: Tue, 20 Nov 2018 10:31:28 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: idosch@...lanox.com
Cc: netdev@...r.kernel.org, jiri@...lanox.com, vadimp@...lanox.com,
alexpe@...lanox.com, mlxsw@...lanox.com
Subject: Re: [PATCH net-next] mlxsw: core: Extend cooling device with
cooling levels
From: Ido Schimmel <idosch@...lanox.com>
Date: Tue, 20 Nov 2018 06:52:03 +0000
> From: Vadim Pasternak <vadimp@...lanox.com>
>
> Extend cooling device with cooling levels vector to allow more
> flexibility of PWM setting.
>
> Thermal zone algorithm operates with the numerical states for PWM
> setting. Each state is the index, defined in range from 0 to 10 and it's
> mapped to the relevant duty cycle value, which is written to PWM
> controller. With the current definition fan speed is set to 0% for state
> 0, 10% for state 1, and so on up to 100% for the maximum state 10.
>
> Some systems have limitation for the PWM speed minimum. For such systems
> PWM setting speed to 0% will just disable the ability to increase speed
> anymore and such device will be stall on zero speed. Cooling levels
> allow to configure state vector according to the particular system
> requirements. For example, if PWM speed is not allowed to be below 30%,
> cooling levels could be configured as 30%, 30%, 30%, 30%, 40%, 50% and
> so on.
>
> Signed-off-by: Vadim Pasternak <vadimp@...lanox.com>
> Reviewed-by: Jiri Pirko <jiri@...lanox.com>
> Signed-off-by: Ido Schimmel <idosch@...lanox.com>
Applied.
Powered by blists - more mailing lists