]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/nouveau/pm: manual pwm fanspeed management for nv40+ boards
authorMartin Peres <martin.peres@ensi-bourges.fr>
Mon, 15 Aug 2011 01:10:30 +0000 (11:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:11 +0000 (19:01 +1000)
commit11b7d895216f7f954c6cfa0c23b76dccb7a890c1
treeefc9af29ec90e3159bef8f99d88d5bc31c51903c
parentcb9fa62671ace5ac40b9924e9014cebf04b78228
drm/nouveau/pm: manual pwm fanspeed management for nv40+ boards

Exposes the following sysfs entries:
- fan0_input: read the rotational speed of the fan (poll a bit during 250ms)
- pwm0: set the pwm duty cycle
- pwm0_min/max: set the minimum/maximum pwm value

v2 (Ben Skeggs):
- nv50 pwm controller code removed in favour of other more complete code
- FAN_RPM -> FAN_SENSE
- merged FAN_SENSE readout into common code, not at all nv50-specific
- protected fanspeed changes with perflvl_wr
- formatting tidying
- added some comments where things are shaky

v3 (Martin Peres)
- ensure duty min/max from thermal table are sane

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Martin Peres <martin.peres@ensi-bourges.fr>
drivers/gpu/drm/nouveau/nouveau_bios.h
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_pm.c
drivers/gpu/drm/nouveau/nouveau_temp.c