drm/nouveau: Don't disable polling in fallback mode
Subsystems (3)
PATCH 1/1 drm/nouveau: Don't disable polling in fallback mode
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.
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447
--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +4 -3
@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty =nvkm_therm_update_linear (therm);break ;case NVBIOS_THERM_FAN_OTHER : -if (therm->cstate) +if (therm->cstate) { duty = therm->cstate; -else + poll = false; + }else { duty =nvkm_therm_update_linear_fallback (therm); - poll = false; + }break ; } immd = false;
Signature · 6 lines
2.18.0 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Takashi Iwai
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.
Martin,
Any thoughts on this?
Ben.
Quoted 34 lines
Fixes 800efb4c2857 ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios")Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447Reported-by Thomas Blume <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +4
-4@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty =nvkm_therm_update_linear (therm);break ;case NVBIOS_THERM_FAN_OTHER : -if (therm->cstate) +if (therm->cstate) { duty = therm->cstate; -else + poll = false; + }else { duty =nvkm_therm_update_linear_fallback (therm); - poll = false; + }break ; } immd = false; --2.18.0
Quoted 4 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): CACAvsv5i8LK4zU7+EzFMK-WFrczCafHUCTNkkSO2iSkBL80HpA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 10 lines · Ben Skeggs
Quoted 4 lines · Takashi Iwai
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.
Martin,
Any thoughts on this?
Ben.
Wow, blast from the past!
Anyway, the analysis is pretty spot on here. When using the cstate-based fan speed (change the speed of the fan based on what frequency is used), then polling is unnecessary and this function should only be called when changing the pstate.
However, in the absence of ANY information, we fallback to a temperature-based management which requires constant polling, so the patch is accurate and poll = false should only be set if we have a cstate.
So, the patch is Reviewed-by: Martin Peres <[email protected]>
Quoted 5 lines
Quoted 5 lines
Fixes 800efb4c2857 ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios")Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447
I see that Thomas has been having issues with the noise level anyway. I suggest he should bump the value of temp1_auto_point1_temp (see
https://www.kernel.org/doc/Documentation/thermal/nouveau_thermal).
The default value is set to 90°C which is quite safe on these old GPUs (NVIDIA G71 / nv49). I would say that it is safe to go up to 110°C. Which should reduce the noise level.
Another technique may be to reduce the minimum fan speed to something lower than 30°C. It should increase the slope but reduce the noise level at a given temperature.
One reason why these GPUs run so hot on nouveau is the lack of power and clock gating. I am sorry that I never finished to reverse engineer these...
Anyway, thanks a lot for the patch!
Quoted 30 lines
Quoted 30 lines
Reported-by Thomas Blume <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +4
-4@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty =nvkm_therm_update_linear (therm);break ;case NVBIOS_THERM_FAN_OTHER : -if (therm->cstate) +if (therm->cstate) { duty = therm->cstate; -else + poll = false; + }else { duty =nvkm_therm_update_linear_fallback (therm); - poll = false; + }break ; } immd = false; --2.18.0
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 56e11b21-9a53-1c4c-759e-b132e7674d71-GANU6spQydw@public.gmane.org
Quoted 20 lines · Martin Peres
Quoted 10 lines · Ben Skeggs
Quoted 4 lines · Takashi Iwai
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.
Martin,
Any thoughts on this?
Ben.
Wow, blast from the past!
Anyway, the analysis is pretty spot on here. When using the cstate-based fan speed (change the speed of the fan based on what frequency is used), then polling is unnecessary and this function should only be called when changing the pstate.
Quoted 5 lines
However, in the absence of ANY information, we fallback to a temperature-based management which requires constant polling, so the patch is accurate and poll = false should only be set if we have a cstate.
So, the patch is Reviewed-by: Martin Peres <[email protected]>
Just a gentle reminder: this patch seems forgotten for 4.20 merge. Could you guys pick it if it's OK?
Thanks!
Takashi
Quoted 54 lines
Quoted 6 lines
Quoted 6 lines
Fixes 800efb4c2857 ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios")Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447I see that Thomas has been having issues with the noise level anyway. I suggest he should bump the value of
temp1_auto_point1_temp(see
https://www.kernel.org/doc/Documentation/thermal/nouveau_thermal).The default value is set to 90°C which is quite safe on these old GPUs (NVIDIA G71 / nv49). I would say that it is safe to go up to 110°C. Which should reduce the noise level.
Another technique may be to reduce the minimum fan speed to something lower than 30°C. It should increase the slope but reduce the noise level at a given temperature.
One reason why these GPUs run so hot on nouveau is the lack of power and clock gating. I am sorry that I never finished to reverse engineer these...
Anyway, thanks a lot for the patch!
Quoted 30 lines
Quoted 30 lines
Reported-by Thomas Blume <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +4
-4@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty =nvkm_therm_update_linear (therm);break ;case NVBIOS_THERM_FAN_OTHER : -if (therm->cstate) +if (therm->cstate) { duty = therm->cstate; -else + poll = false; + }else { duty =nvkm_therm_update_linear_fallback (therm); - poll = false; + }break ; } immd = false; --2.18.0
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ben - ping? Just ran into this myself on a NV42.
Quoted 96 lines · Takashi Iwai
Quoted 20 lines · Martin Peres
Quoted 10 lines · Ben Skeggs
Quoted 4 lines · Takashi Iwai
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.
Martin,
Any thoughts on this?
Ben.
Wow, blast from the past!
Anyway, the analysis is pretty spot on here. When using the cstate-based fan speed (change the speed of the fan based on what frequency is used), then polling is unnecessary and this function should only be called when changing the pstate.
Quoted 5 lines
However, in the absence of ANY information, we fallback to a temperature-based management which requires constant polling, so the patch is accurate and poll = false should only be set if we have a cstate.
So, the patch is Reviewed-by: Martin Peres <[email protected]>
Just a gentle reminder: this patch seems forgotten for 4.20 merge. Could you guys pick it if it's OK?
Thanks!
Takashi
Quoted 54 lines
Quoted 6 lines
Quoted 6 lines
Fixes 800efb4c2857 ("drm/nouveau/drm/therm/fan: add a fallback if no fan control is specified in the vbios")Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1103356
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107447I see that Thomas has been having issues with the noise level anyway. I suggest he should bump the value of
temp1_auto_point1_temp(see
https://www.kernel.org/doc/Documentation/thermal/nouveau_thermal).The default value is set to 90°C which is quite safe on these old GPUs (NVIDIA G71 / nv49). I would say that it is safe to go up to 110°C. Which should reduce the noise level.
Another technique may be to reduce the minimum fan speed to something lower than 30°C. It should increase the slope but reduce the noise level at a given temperature.
One reason why these GPUs run so hot on nouveau is the lack of power and clock gating. I am sorry that I never finished to reverse engineer these...
Anyway, thanks a lot for the patch!
Quoted 30 lines
Quoted 30 lines
Reported-by Thomas Blume <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c +4
-4@@ -132,11 +132,12 @@ nvkm_therm_update(struct nvkm_therm *therm, int mode) duty =nvkm_therm_update_linear (therm);break ;case NVBIOS_THERM_FAN_OTHER : -if (therm->cstate) +if (therm->cstate) { duty = therm->cstate; -else + poll = false; + }else { duty =nvkm_therm_update_linear_fallback (therm); - poll = false; + }break ; } immd = false; --2.18.0
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 4 lines
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau