Repository navigation
[allwinner-aiot-linux-5.15] thermal: power_allocator: step non actor cooling devices; opp: quiet log - #617
Open
Pranav0-0Aggarwal wants to merge 2 commits into
Conversation
Cooling devices that are not power actors (e.g. pwm-fan) were never updated and stayed at max. Step them up at the trip and release them below the trip minus its hysteresis. Signed-off-by: Pranav0-0Aggarwal <96537779+Pranav0-0Aggarwal@users.noreply.github.com>
OPPs with no voltage fail the regulator check on every add and flood the boot log with warnings; cpufreq is unaffected. Signed-off-by: Pranav0-0Aggarwal <96537779+Pranav0-0Aggarwal@users.noreply.github.com>
Author
|
@RadxaYuntian @RadxaStephen could you review when you have time? This lets power_allocator step cooling devices that are not power actors (e.g. pwm fan), tested on Cubie A7S. Thanks! |
Author
|
Also tested on a Cubie A7A, which has a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two independent fixes, found on a Cubie A7S (A733).
Closes #616
power_allocatoronly drives power actors, so apwm-fanbound to a trip of an IPA zone stays at its probe state, which is max. The fan never slows down. Newstep_non_actors()runs at the top ofpower_allocator_throttle(): at or above the trip it steps the cdev up by one, belowtripminus hysteresis it releases it, in between it holds; locking followsstep_wise. On the A7S the fan cooling device sat at 4/4 in every idle sample on stock, and at 0 at idle and 4 under load (above the 65 C trip) with this patch. Mainlinegov_power_allocator.chas the same gap.Tested by building linux-a733 5.15.147-21 with both commits and booting it on a Cubie A7S. No fan was fitted, so only the cooling device state was observed, not fan RPM. The IPA change affects every IPA zone with a non actor cooling device on any board using this kernel.