Skip to content
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

Bug 2439 fix for thermal zones #2440

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

siena-sam
Copy link

Summary

  • OS: Linux
  • Bug fix: yes
  • Type: core
  • Fixes: 2439

Description

Store and clear values for the high and critical temperatures read from thermal_zone#/trip_point_#_temp files. Otherwise, values will be incorrectly divided by 1000 (to account for milidegrees) for each trip point after the first that is of type critical or high.

Fix a bug in how high and critical temperatures are calculated when
using thermal zones. Clear high and critical values each iteration so
they are not divided by 1000 on subsequent iterations. Take the max
value if multiple temperature trips target either high or critical.

Signed-off-by: Siena Richard <sienarichard@samotics.com>
Signed-off-by: Siena Richard <sienarichard@samotics.com>
@siena-sam
Copy link
Author

For confirmation, here are some screenshots of this fix verified on the ARM system we first noticed this on.

Here is the bug seen in 5.9.8 which is the version we are currently using:
image

Here is the bug fixed when running commit 7f705e4b1db4f0b220f84a17a02669a1e3e02eac:
image

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.

1 participant