Skip to content

thermal: add hysteresis support and adjust PoE HAT trip points #2700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 12, 2018

Conversation

XECDesign
Copy link
Contributor

@XECDesign XECDesign commented Oct 2, 2018

Currently, the step_wise thermal scaling governor ping pongs around the trip point and ignores the hysteresis value.

This PR steals step_wise hysteresis support from https://patchwork.kernel.org/patch/10384571/. This still results in some bounce at the hysteresis temperature if the 'trend' is rising, which is addressed by the second commit.

In the PoE HAT overlay, a cooling level has been removed and hysteresis values were increased to 5C.

Ram Chandrasekar and others added 3 commits October 2, 2018 11:39
From: Ram Chandrasekar <[email protected]>

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 <[email protected]>
Signed-off-by: Lina Iyer <[email protected]>
…re after dropping below it

Signed-off-by: Serge Schneider <[email protected]>
@XECDesign XECDesign force-pushed the poe-hat branch 3 times, most recently from e26d1ea to 6592291 Compare October 2, 2018 16:27
@pelwell
Copy link
Contributor

pelwell commented Oct 2, 2018

For the curious, this overlay is adding its parameters to the base DTB; without this trick, they would go out of scope when the overlay for a stacked HAT is loaded, meaning they could never be used.

@pelwell
Copy link
Contributor

pelwell commented Oct 3, 2018

The README entry now requires ,<param>=<val> in the Load: line, but otherwise it looks ready to merge.

@pelwell pelwell merged commit 94a06fb into raspberrypi:rpi-4.14.y Oct 12, 2018
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Oct 15, 2018
kernel: Revert net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
See: raspberrypi/linux#2717

kernel: thermal: add hysteresis support and adjust PoE HAT trip points
See: raspberrypi/linux#2700

kernel: Add composite RPi driver for pcm512x DAC HAT cards
See: raspberrypi/linux#2702

firmware: jpeg/mjpeg: MJPEG doesn't insert JFIF APP0 header
See: raspberrypi/userland#345

firmware: Add IL HVS component

firmware: mmal: Acquire zero copy buffers on being passed to the VPU

firmware: video_render: Use per pixel alpha on RGBA and BGRA

firmware: video_render: Add support for alpha options (MIX and PREMULT)
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Oct 15, 2018
kernel: Revert net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
See: raspberrypi/linux#2717

kernel: thermal: add hysteresis support and adjust PoE HAT trip points
See: raspberrypi/linux#2700

kernel: Add composite RPi driver for pcm512x DAC HAT cards
See: raspberrypi/linux#2702

firmware: jpeg/mjpeg: MJPEG doesn't insert JFIF APP0 header
See: raspberrypi/userland#345

firmware: Add IL HVS component

firmware: mmal: Acquire zero copy buffers on being passed to the VPU

firmware: video_render: Use per pixel alpha on RGBA and BGRA

firmware: video_render: Add support for alpha options (MIX and PREMULT)
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