RFC opp: Parse required-opp as dev_pm_qos_request
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | opp: Drop const from opp_device struct devicedrivers/ drivers/ | +4 | 0 replies | |
| 2/4 | opp: Add dev_pm_opp_table_get_devicedrivers/ include/ | +36 | 0 replies | |
| 3/4 | opp: Add dev_pm_parse_required_opp_as_qosdrivers/ include/ | +74 | 0 replies | |
| 4/4 | PM / QoS: Add dev_pm_qos_get_curr_valuedrivers/ include/ | +43 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/4] opp: Parse required-opp as dev_pm_qos_request
The "required-opps" property can be placed on any device and point to any OPP table according to bindings doc but this is not fully implemented. In practice it can only point from the opp table of a device to the opp table of a power domain.
As part of my investingating QOS mechanisms I implemented support for parsing "required-opps" into a DEV_PM_QOS_MIN_FREQUENCY dev_pm_qos_request. Since OPPs can be shared between devices this only works when OPP tables are unshared.
This would need to be called from a device probe function and any suspend/resume handling (which likely means disabling the QOS requests) would also be handled manually by each driver.
This is RFC mostly because I plan to use the "interconnect" framework for device requests instead. In theory this could be used if you don't care about implementing smart aggregation and just want to "set bus freq to high".
Devfreq support for dev_pm_qos is here: https://patchwork.kernel.org/patch/11078475/
Leonard Crestez (4):
opp: Drop const from opp_device struct device
opp: Add dev_pm_opp_table_get_device
opp: Add dev_pm_parse_required_opp_as_qos
PM / QoS: Add dev_pm_qos_get_curr_value
drivers/base/power/qos.c | 59 +++++++++++++++++++++++++----------- drivers/opp/core.c | 34 +++++++++++++++++++-- drivers/opp/of.c | 65 ++++++++++++++++++++++++++++++++++++++++ drivers/opp/opp.h | 4 +-- include/linux/pm_opp.h | 15 ++++++++++ include/linux/pm_qos.h | 1 + 6 files changed, 157 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.1