drm/panfrost: Register devfreq cooling and attempt to add Energy Model
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 10 Dec 2020 14:30:14 +0000 (14:30 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 11 Dec 2020 13:10:44 +0000 (14:10 +0100)
commit23e9d781413ab6dd2b743d61439423c575347fc4
treeaaf8fa2609921b36d1671eadd55cd576d8adb486
parent615510fe13bd2434610193f1acab53027d5146d6
drm/panfrost: Register devfreq cooling and attempt to add Energy Model

Register devfreq cooling device and attempt to register Energy Model. This
will add the devfreq device to the Energy Model framework. It will create
a dedicated and unified data structures used i.e. in thermal framework.
It uses simplified Energy Model, created based on voltage, frequency
and DT 'dynamic-power-coefficient'.

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201210143014.24685-6-lukasz.luba@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c