-
Notifications
You must be signed in to change notification settings - Fork 84
Revert "thermal: boost: phytium: Automatic enable/disable of BOOST feature" #807
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
base: linux-6.6.y
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR reverts the automatic CPU frequency boost toggling introduced for Phytium devices by removing the thermal driver’s boost enable/disable handlers, related polling logic and flags, converting the cpufreq boost query function to an internal API, and cleaning up associated declarations in cpufreq and thermal headers to restore prior behavior. Sequence diagram for thermal zone update process changessequenceDiagram
participant thermal_zone_device_check
participant thermal_zone_device_update
thermal_zone_device_check->>thermal_zone_device_update: THERMAL_EVENT_UNSPECIFIED
note right of thermal_zone_device_check: Removed call to thermal_boost_enable
thermal_zone_device_update->>thermal_zone_device_update: update_temperature()
note right of thermal_zone_device_update: Removed logic for thermal_boost_disable
thermal_zone_device_update->>thermal_zone_device_update: __thermal_zone_set_trips()
Class diagram for struct thermal_zone_deviceclassDiagram
class thermal_zone_device {
-bool overheated
-bool boost_polling
-thermal_zone_device_ops *ops
-thermal_zone_params *tzp
-thermal_governor *governor
}
note for thermal_zone_device "overheated and boost_polling fields removed"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
deepin pr auto review代码审查意见:
总的来说,这些更改可能会影响热管理模块和CPU频率管理模块的功能和稳定性。需要仔细审查这些更改,并确保它们不会引入新的问题。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
check if tz->trips is NULL before access tz->trips[0], because psy devices also register thermal_zone without any trips |
…ature" It causes boot error in some phytium device. Reverts #762 This reverts commit b6c9d54. Signed-off-by: Wentao Guan <[email protected]>
f1df575
to
b8d0ccd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
It causes boot error in some phytium device.
Reverts #762
Summary by Sourcery
Revert the previously added automatic CPU frequency boost enable/disable logic in the thermal and cpufreq drivers to restore boot stability on affected Phytium devices.
Bug Fixes:
Enhancements:
Chores: