Skip to content

drivers: thermal: step_wise: add support for hysteresis - #5936

Merged
pelwell merged 1 commit into
raspberrypi:rpi-6.6.yfrom
pelwell:fanfix
Feb 9, 2024
Merged

pelwell merged 1 commit into
raspberrypi:rpi-6.6.yfrom
pelwell:fanfix

Conversation

@pelwell

@pelwell pelwell commented Feb 9, 2024

Copy link
Copy Markdown
Contributor

This is a roll-up of the two previous hysteresis patches, but updated cleanly for the 6.6 kernel. Without this there is no hysteresis, leading to fans "pumping" at the threshold temperatures.

Step wise governor increases the mitigation level when the temperature
goes above a threshold and will decrease the mitigation when the
temperature falls below the threshold. If it were a case, where the
temperature hovers around a threshold, the mitigation will be applied
and removed at every iteration. This reaction to the temperature is
inefficient for performance.

The use of hysteresis temperature could avoid this ping-pong of
mitigation by relaxing the mitigation to happen only when the
temperature goes below this lower hysteresis value.

Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>

drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it

Signed-off-by: Serge Schneider <serge@raspberrypi.com>
@pelwell
pelwell merged commit 79148c9 into raspberrypi:rpi-6.6.y Feb 9, 2024
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Feb 13, 2024
See: raspberrypi/linux#5930

kernel: drm/vc4: Disable overrun interrupts
See: raspberrypi/linux#5935

kernel: drivers: thermal: step_wise: add support for hysteresis
See: raspberrypi/linux#5936

kernel: media: rp1: cfe: Actually use the number of lanes configured
See: raspberrypi/linux#5941

kernel: PCI: brcmstb: Enable CRS software visibility after linkup
See: raspberrypi/linux#5889

kernel: SDHCI vs EMMC on Pi 5
See: raspberrypi/linux#5937
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Feb 13, 2024
See: raspberrypi/linux#5930

kernel: drm/vc4: Disable overrun interrupts
See: raspberrypi/linux#5935

kernel: drivers: thermal: step_wise: add support for hysteresis
See: raspberrypi/linux#5936

kernel: media: rp1: cfe: Actually use the number of lanes configured
See: raspberrypi/linux#5941

kernel: PCI: brcmstb: Enable CRS software visibility after linkup
See: raspberrypi/linux#5889

kernel: SDHCI vs EMMC on Pi 5
See: raspberrypi/linux#5937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants