soc: samsung: exynos-asv: Update Energy Model after adjusting voltage
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 3 Apr 2024 15:49:07 +0000 (16:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Apr 2024 14:05:15 +0000 (16:05 +0200)
commita5bb5e0877dee3595037eb8767b6bed047c898a5
tree7d5d7a0d44867012a9d444a0e5d6a9d108b2643a
parentcf61d53b026805e8222ca28ac2795611eb7fa547
soc: samsung: exynos-asv: Update Energy Model after adjusting voltage

When the voltage for OPPs is adjusted there is a need to also update
Energy Model framework. The EM data contains power values which depend
on voltage values. The EM structure is used for thermal (IPA governor)
and in scheduler task placement (EAS) so it should reflect the real HW
model as best as possible to operate properly.

Based on data on Exynos5422 ASV tables the maximum power difference might
be ~29%. An Odroid-XU4 (with a random sample SoC in this chip lottery)
showed power difference for some OPPs ~20%. Therefore, it's worth to
update the EM.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/soc/samsung/exynos-asv.c