Martin Peres
2014-May-12 21:19 UTC
[Nouveau] [PATCH] therm/fan/tach: default to 2 pulses per revolution
From: Martin Peres <martin.peres at labri.fr> I spent some time this weekend trying to find in the vbios the number of pulses per revolutions in the vbios but couldn't find it. It would seem all my cards have 2 pulses per revolution so let's stick to that until further notice. Thermal table's id 0x48 may indicate this information but it would seem that changing the value results in the blob power or clock gating the RPM counter... We should ask NVIDIA about that, should be trivial-enough for them to answer. Signed-off-by: Martin Peres <martin.peres at free.fr> --- nvkm/subdev/therm/nva3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvkm/subdev/therm/nva3.c b/nvkm/subdev/therm/nva3.c index 3b2c458..0478b2e 100644 --- a/nvkm/subdev/therm/nva3.c +++ b/nvkm/subdev/therm/nva3.c @@ -36,7 +36,7 @@ nva3_therm_fan_sense(struct nouveau_therm *therm) u32 tach = nv_rd32(therm, 0x00e728) & 0x0000ffff; u32 ctrl = nv_rd32(therm, 0x00e720); if (ctrl & 0x00000001) - return tach * 60; + return tach * 60 / 2; return -ENODEV; } -- 1.9.2
Reasonably Related Threads
- [PATCH 3/3] gm107/therm: add PWM fan support
- [PATCH 1/2] drm/nouveau/therm: ack any pending IRQ at init
- [PATCH 1/3] drm/nouveau/therm: turn on a fan only when crossing threshold in positive direction
- [PATCH] drm/nouveau/therm: ack any pending IRQ at init v2
- [PATCH] drm/nouveau/therm: ack any pending IRQ at init v2