Skip to content

OPP: Add support for multiple clocks*

Viresh Kumar linux-devicetree linux-pm linux-tegra lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 16 repliesIn review
  2. v18 patches 25 repliesSuperseded

Changes in v2 from the cover letter

- Fix broken git bisect for:
OPP: Reuse _opp_compare_key() in _opp_add_static_v2()

- Include binding changes written by Krzysztof earlier.

- Check config_clks before calling it, it isn't always set.

- Add config_clks for Tegra30's devfreq to handle its corner case.

- _opp_compare_key() supports multi-clk case now, earlier it skipped freq comparison for such a case.

- New patch to compare all bandwidth values as well in _opp_compare_key().

- New patch to remove *_noclk() interface.

- Various other minor fixes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13OPP: Use consistent names for OPP table instancesdrivers/opp/core.c drivers/opp/cpu.c drivers/opp/of.c+16 -150 replies
2/13OPP: Remove rate_not_available parameter to _opp_add()drivers/opp/core.c drivers/opp/of.c drivers/opp/opp.h+7 -90 replies
3/13OPP: Reuse _opp_compare_key() in _opp_add_static_v2()drivers/opp/core.c drivers/opp/of.c+8 -20 replies
4/13OPP: Make dev_pm_opp_set_opp() independent of frequencydrivers/opp/core.c drivers/opp/opp.h+40 -160 replies
5/13dt-bindings: opp: accept array of frequenciesDocumentation/devicetree/bindings/opp/opp-v2-base.yaml+10 -00 replies
6/13OPP: Allow multiple clocks for a devicedrivers/opp/core.c drivers/opp/debugfs.c drivers/opp/of.c +2 more+235 -830 replies
7/13OPP: Compare bandwidths for all paths in _opp_compare_key()drivers/opp/core.c+17 -30 replies
8/13OPP: Add key specific assert() method to key finding helpersdrivers/opp/core.c+33 -190 replies
9/13OPP: Assert clk_count == 1 for single clk helpersdrivers/opp/core.c+39 -62 replies
10/13OPP: Provide a simple implementation to configure multiple clocksdrivers/opp/core.c include/linux/pm_opp.h+44 -00 replies
11/13OPP: Allow config_clks helper for single clk casedrivers/opp/core.c+4 -40 replies
12/13PM / devfreq: tegra30: Register config_clks helperdrivers/devfreq/tegra30-devfreq.c+19 -30 replies
13/13OPP: Remove dev{m}_pm_opp_of_add_table_noclk()drivers/opp/core.c drivers/opp/of.c drivers/opp/opp.h +1 more+17 -640 replies

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by.

PatchDmitry OsipenkoBjorn AnderssonRob HerringManivannan SadhasivamJon Hunter
SeriesT-b
1/13T-b
2/13T-b
3/13T-b
4/13T-b
5/13R-b A-b R-b
6/13T-b T-b
7/13
8/13T-b
9/13T-b
10/13T-b
11/13T-b
12/13T-b
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH V2 00/13] OPP: Add support for multiple clocks*

Hello,

This patchset adds support for devices with multiple clocks. None of the clocks is considered primary in this case and all are handled equally.

The drivers, for multiple clock case, are expected to call dev_pm_opp_set_opp() to set the specific OPP. Though how they find the target OPP is left for the users to handle. For some, we may have another unique OPP property, like level, which can be used to find the OPP. While in case of others, we may want to implement freq-based OPP finder APIs for multiple clock rates. I have decided not to implement them in advance, and add them only someone wants to use them.

This is rebased over a lot of other OPP changes and is pushed here:

git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/linux-next

V1->V2:

- Fix broken git bisect for:
OPP: Reuse _opp_compare_key() in _opp_add_static_v2()

- Include binding changes written by Krzysztof earlier.

- Check config_clks before calling it, it isn't always set.

- Add config_clks for Tegra30's devfreq to handle its corner case.

- _opp_compare_key() supports multi-clk case now, earlier it skipped freq comparison for such a case.

- New patch to compare all bandwidth values as well in _opp_compare_key().

- New patch to remove *_noclk() interface.

- Various other minor fixes.

--
Viresh

Krzysztof Kozlowski (1):
dt-bindings: opp: accept array of frequencies

Viresh Kumar (12):
OPP: Use consistent names for OPP table instances
OPP: Remove rate_not_available parameter to _opp_add()
OPP: Reuse _opp_compare_key() in _opp_add_static_v2()
OPP: Make dev_pm_opp_set_opp() independent of frequency
OPP: Allow multiple clocks for a device
OPP: Compare bandwidths for all paths in _opp_compare_key()
OPP: Add key specific assert() method to key finding helpers
OPP: Assert clk_count == 1 for single clk helpers
OPP: Provide a simple implementation to configure multiple clocks
OPP: Allow config_clks helper for single clk case
PM / devfreq: tegra30: Register config_clks helper
OPP: Remove dev{m}_pm_opp_of_add_table_noclk()

 .../devicetree/bindings/opp/opp-v2-base.yaml  |  10 +
 drivers/devfreq/tegra30-devfreq.c             |  22 +-
 drivers/opp/core.c                            | 404 +++++++++++++-----
 drivers/opp/cpu.c                             |  12 +-
 drivers/opp/debugfs.c                         |  27 +-
 drivers/opp/of.c                              | 139 +++---
 drivers/opp/opp.h                             |  24 +-
 include/linux/pm_opp.h                        |  29 +-
 8 files changed, 466 insertions(+), 201 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514