]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: power allocator: change the 'k_i' coefficient estimation
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 24 Nov 2020 16:10:23 +0000 (16:10 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 26 Nov 2020 16:11:59 +0000 (17:11 +0100)
commit3478753cf69bb11ad6f8bd9cec9398d65047e95d
tree79f1252fd5b74eadee7dfa94131b5fc9954bd2b0
parent440bcf536f1464d559c7931a34a0c99be105c148
thermal: power allocator: change the 'k_i' coefficient estimation

Intelligent Power Allocation (IPA) is built around the PID controller
concept. The initialization code tries to setup the environment based on
the information available in DT or estimate the value based on minimum
power reported by each of the cooling device. The estimation will have an
impact on the PID controller behaviour via the related 'k_po', 'k_pu',
'k_i' coefficients and also on the power budget calculation.

This change prevents the situation when 'k_i' is relatively big compared
to 'k_po' and 'k_pu' values. This might happen when the estimation for
'sustainable_power' returned small value, thus 'k_po' and 'k_pu' are
small.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201124161025.27694-2-lukasz.luba@arm.com
drivers/thermal/gov_power_allocator.c