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)
commit2f951a5db5b55f65eb02d9a90aa7cecafde9f8b8
tree9aeaca54de7a14598a3b2be04cb13ab891863dfd
parentc9cbf135065c0a674d43451127a10e48a53f9054
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