diff options
author | Martin Peres <martin.peres@labri.fr> | 2012-12-05 20:28:09 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-02-20 16:00:21 +1000 |
commit | 694472f4170c52a18893b0db8c8e3b865a85a457 (patch) | |
tree | 5ef92e9ab2545ca3db9e931465dde8277c46c459 /drivers/gpu/drm/nouveau/core/include | |
parent | fa37e8dda2617d48fbc6b17dd6e986e7f4c2bc8b (diff) | |
download | talos-obmc-linux-694472f4170c52a18893b0db8c8e3b865a85a457.tar.gz talos-obmc-linux-694472f4170c52a18893b0db8c8e3b865a85a457.zip |
drm/nouveau/therm: implement automatic fan management
v2: improved design but drops safety monitoring (to be in a later patch)
v3: fix locking and mode management
v4: gently fallback to the no-control mode when temperature cannot be got
and use kernel-provided min/max macros
v5 (Ben Skeggs):
- rebased on my previous patches
v6: fix hysterisis management in trip-based auto fan management
This commit also forbids access to fan management to nvc0+ chipsets as
fan management is already taken care of my PDAEMON's default fw.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/include/subdev/therm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h index ad3aea01635a..7c83eccadc61 100644 --- a/drivers/gpu/drm/nouveau/core/include/subdev/therm.h +++ b/drivers/gpu/drm/nouveau/core/include/subdev/therm.h @@ -7,6 +7,7 @@ enum nouveau_therm_fan_mode { FAN_CONTROL_NONE = 0, FAN_CONTROL_MANUAL = 1, + FAN_CONTROL_AUTO = 2, FAN_CONTROL_NR, }; |