[PATCH 0/4] Add sustainable OPP concept

Lukasz Luba
2020-10-28T22:27:19Z

Hi all,

This patch set introduces a concept of sustainable OPP, which then can be used
by kernel frameworks or governors for estimating system sustainable system
state. This kind of estimation is done e.g. in thermal governor Intelligent
Power Allocation (IPA), which calculates sustainable power of the whole system
and then derives some coefficients for internal algorithm.

The patch set introduces a new DT bindings 'opp-sustainable', with parsing
code. It also adds a function (in patch 3/4) which allows device drivers to set
directly the sustainable OPP. This is helpful when the device drivers populate
the OPP table by themself (example in patch 4/4).

The patch set should apply on top of next-20201028.

Regards,
Lukasz Luba

Lukasz Luba (4):
dt-bindings: opp: Introduce opp-sustainable bindings
OPP: Add support for parsing the 'opp-sustainable' property
OPP: Add dev_pm_opp_set_sustainable_opp_freq()
firmware: arm_scmi/perf: Mark sustainable OPP

Documentation/devicetree/bindings/opp/opp.txt | 4 +
drivers/firmware/arm_scmi/perf.c | 10 +++
drivers/opp/core.c | 75 +++++++++++++++++++
drivers/opp/of.c | 14 ++++
drivers/opp/opp.h | 3 +
include/linux/pm_opp.h | 14 ++++
6 files changed, 120 insertions(+)

--
2.17.1