Commit b81259d9 authored by Takashi Iwai's avatar Takashi Iwai Committed by Greg Kroah-Hartman

drm/nouveau: Don't disable polling in fallback mode

[ Upstream commit 11878006 ]

When a fan is controlled via linear fallback without cstate, we
shouldn't stop polling.  Otherwise it won't be adjusted again and
keeps running at an initial crazy pace.

Fixes: 800efb4c ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios")
Bugzilla: default avatarThomas Blume <>
Signed-off-by: default avatarTakashi Iwai <>
Reviewed-by: default avatarMartin Peres <>
Signed-off-by: default avatarBen Skeggs <>
Signed-off-by: default avatarSasha Levin <>
parent 771e153f
...@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) ...@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode)
duty = nvkm_therm_update_linear(therm); duty = nvkm_therm_update_linear(therm);
break; break;
if (therm->cstate) if (therm->cstate) {
duty = therm->cstate; duty = therm->cstate;
else poll = false;
} else {
duty = nvkm_therm_update_linear_fallback(therm); duty = nvkm_therm_update_linear_fallback(therm);
poll = false; }
break; break;
} }
immd = false; immd = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment