OPP: Don't create multiple OPP tables for devices sharing OPP table
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 1 replyIn review
- v111 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Nikklas reported another regressions which is fixed by the 2nd commit in this series.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | OPP: Free OPP table properly on performance state irregularitiesdrivers/ | +1 | 0 replies | |
| 2/12 | OPP: Don't try to remove all OPP tables on failuredrivers/ drivers/ drivers/ | +9 | 0 replies | |
| 3/12 | OPP: Protect dev_list with opp_table lockdrivers/ drivers/ drivers/ | +22 | 0 replies | |
| 4/12 | OPP: Pass index to _of_init_opp_table()drivers/ drivers/ drivers/ +1 more | +30 | 0 replies | |
| 5/12 | OPP: Parse OPP table's DT properties from _of_init_opp_table()drivers/ drivers/ | +50 | 0 replies | |
| 6/12 | OPP: Don't take OPP table's kref for static OPPsdrivers/ | +6 | 0 replies | |
| 7/12 | OPP: Create separate kref for static OPPs listdrivers/ drivers/ drivers/ | +42 | 0 replies | |
| 8/12 | cpufreq: mvebu: Remove OPPs using dev_pm_opp_remove()drivers/ | +2 | 1 reply | |
| 9/12 | OPP: Don't remove dynamic OPPs from _dev_pm_opp_remove_table()drivers/ drivers/ drivers/ +1 more | +17 | 0 replies | |
| 10/12 | OPP: Use a single mechanism to free the OPP tabledrivers/ drivers/ drivers/ | +35 | 0 replies | |
| 11/12 | OPP: Prevent creating multiple OPP tables for devices sharing OPP nodesdrivers/ drivers/ drivers/ | +37 | 0 replies | |
| 12/12 | OPP: Pass OPP table to _of_add_opp_table_v{1|2}()drivers/ | +28 | 0 replies |
Reviews trailers per patch
1 of 12 patches has a Reviewed-by or Acked-by.
| Patch | Niklas Cassel | Gregory CLEMENT |
|---|---|---|
| 1/12 | T-b | |
| 2/12 | Reported-and-tested-by | |
| 3/12 | T-b | |
| 4/12 | T-b | |
| 5/12 | T-b | |
| 6/12 | T-b | |
| 7/12 | T-b | |
| 8/12 | R-b | |
| 9/12 | T-b | |
| 10/12 | T-b | |
| 11/12 | T-b | |
| 12/12 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V2 00/12] OPP: Don't create multiple OPP tables for devices sharing OPP table
Hello,
Niklas Cassle recently reported some regressions with his Qcom cpufreq driver where he was getting some errors while creating the OPPs tables.
After looking into it I realized that the OPP core incorrectly creates multiple OPP tables for the devices even if they are sharing the OPP table in DT. This happens when the request comes using different CPU devices. For example, dev_pm_opp_set_supported_hw() getting called using CPU0 and dev_pm_opp_of_add_table() getting called using CPU1.
This series redesigns the internals of the OPP core to fix that. The redesign has simplified the core itself though.
The first three patches are fixes really for the current code and the rest of them are making necessary changes to fix the issue defined in $subject here.
Nikklas already tested this series and his Tested-by is already applied to series here. I would like to get this merged during the 4.20 merge window and will push the series to linux-next soon to get more test coverage. Please provide comments as soon as possible, else will send it as part of the pull request to Rafael for 4.20.
--
viresh
V1->V2:
- Nikklas reported another regressions which is fixed by the 2nd commit in this series.
Viresh Kumar (12):
OPP: Free OPP table properly on performance state irregularities
OPP: Don't try to remove all OPP tables on failure
OPP: Protect dev_list with opp_table lock
OPP: Pass index to _of_init_opp_table()
OPP: Parse OPP table's DT properties from _of_init_opp_table()
OPP: Don't take OPP table's kref for static OPPs
OPP: Create separate kref for static OPPs list
cpufreq: mvebu: Remove OPPs using dev_pm_opp_remove()
OPP: Don't remove dynamic OPPs from _dev_pm_opp_remove_table()
OPP: Use a single mechanism to free the OPP table
OPP: Prevent creating multiple OPP tables for devices sharing OPP
nodes
OPP: Pass OPP table to _of_add_opp_table_v{1|2}()
drivers/cpufreq/mvebu-cpufreq.c | 9 +- drivers/opp/core.c | 147 ++++++++++++++++++++----------- drivers/opp/cpu.c | 15 ++-- drivers/opp/of.c | 188 +++++++++++++++++++++------------------- drivers/opp/opp.h | 19 ++-- include/linux/pm_opp.h | 6 ++ 6 files changed, 226 insertions(+), 158 deletions(-)
Signature · 1 line
2.14.1