]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/therm: add support for fan-control modes
authorMartin Peres <martin.peres@labri.fr>
Tue, 4 Sep 2012 11:52:00 +0000 (13:52 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 3 Oct 2012 03:13:15 +0000 (13:13 +1000)
commitbfc032b75979e651ff0dce6867902e63003600df
tree9aeaca54de7a14598a3b2be04cb13ab891863dfd
parent34499d1b3e6c11e8d53ba615c81f6d2ae5ab5106
drm/nouveau/therm: add support for fan-control modes

For now, only 2 control modes are available:
- NONE: The fan is never touched (default)
- MANUAL: The fan is set to the user-defined fan speed (pwm1)

This patch introduces a distinction between ptherm internal fan management
and external fan management. The latter is bound to respect the fan mode
while the first can still select the speed it wants unless the NONE mode
is selected. This is important for automatic fan management.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
drivers/gpu/drm/nouveau/core/subdev/therm/fan.c
drivers/gpu/drm/nouveau/core/subdev/therm/nv40.c
drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c
drivers/gpu/drm/nouveau/core/subdev/therm/priv.h
drivers/gpu/drm/nouveau/nouveau_pm.c