Skip to content

DVFS for IO devices on sdm845 and sc7180

Rajendra Nayak dri-devel linux-arm-msm linux-media linux-serial linux-spi lkml 6 versions – Applied

Status from this message: Picked up patch 1 and 2 through the qcom tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 27 repliesApplied
  2. v56 patches 7 repliesSuperseded
  3. v46 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v317 patches28 repliesSuperseded
v217 patches8 repliesSuperseded
v121 patches19 repliesApplied

Changes in v6 from the cover letter

1. rebased on 5.8-rc1, no functional change.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6tty: serial: qcom_geni_serial: Use OPP API to set clk/perf statedrivers/tty/serial/qcom_geni_serial.c include/linux/qcom-geni-se.h+33 -58 replies
2/6spi: spi-geni-qcom: Use OPP API to set clk/perf statedrivers/spi/spi-geni-qcom.c+23 -30 replies
3/6drm/msm/dpu: Use OPP API to set clk/perf statedrivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h+31 -20 replies
4/6drm/msm: dsi: Use OPP API to set clk/perf statedrivers/gpu/drm/msm/dsi/dsi.h drivers/gpu/drm/msm/dsi/dsi_cfg.c drivers/gpu/drm/msm/dsi/dsi_host.c+62 -20 replies
5/6media: venus: core: Add support for opp tables/perf votingdrivers/media/platform/qcom/venus/core.c drivers/media/platform/qcom/venus/core.h drivers/media/platform/qcom/venus/pm_helpers.c+92 -102 replies
6/6spi: spi-qcom-qspi: Use OPP API to set clk/perf statedrivers/spi/spi-qcom-qspi.c+27 -111 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchMatthias KaehlckeMark BrownRob Clark
1/6R-b
2/6R-b A-b
3/6R-b R-b
4/6
5/6R-b
6/6R-b A-b

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

Read the v6 thread

Cover letter [PATCH v6 0/6] DVFS for IO devices on sdm845 and sc7180

Changes in v6:
1. rebased on 5.8-rc1, no functional change.

Changes in v5:
1. Opp cleanup path fixed up across drivers

Changes in v4:
1. Fixed all review feedback on v3
2. Dropped the dts patches, will post as a seperate series once driver changes are reviewed and merged.
The driver changes without DT updates to include OPP tables will have zero functional change.
3. Dropped the mmc/sdhc patch, which is a standalone patch. will repost if needed seperately.

Changes in v3:
1. Added better error handling for dev_pm_opp_of_add_table()
2. Some minor changes and fixes in 'PATCH 12/17' as compared to v2
3. Dropped the mmc patch picked up by Ulf [2]

Changes in v2:
1. Added error handling for dev_pm_opp_set_clkname() and dev_pm_opp_of_add_table()
2. Used dev_pm_opp_put_clkname() in the cleanup path
3. Dropped the OPP patch pulled in by Viresh [1]
4. Dropped the UFS patches since they had some major rework needed because of changes that were merged in the merge window and I don't have a UFS device currently to validate the changes.

We have had support added in the OPP core for a while now to support DVFS for IO devices, and this series uses that infrastructure to add DVFS support for various IO devices in sdm845 and sc7180 SoCs.

[1] https://lkml.org/lkml/2020/4/14/98
[2] https://lore.kernel.org/patchwork/patch/1226381/

Rajendra Nayak (6):
tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state
spi: spi-geni-qcom: Use OPP API to set clk/perf state drm/msm/dpu: Use OPP API to set clk/perf state drm/msm: dsi: Use OPP API to set clk/perf state
media: venus: core: Add support for opp tables/perf voting
spi: spi-qcom-qspi: Use OPP API to set clk/perf state

 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c  |  3 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c        | 26 +++++++++++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h        |  4 ++
 drivers/gpu/drm/msm/dsi/dsi.h                  |  2 +
 drivers/gpu/drm/msm/dsi/dsi_cfg.c              |  4 +-
 drivers/gpu/drm/msm/dsi/dsi_host.c             | 58 ++++++++++++++++++++++++++
 drivers/media/platform/qcom/venus/core.c       | 43 ++++++++++++++++---
 drivers/media/platform/qcom/venus/core.h       |  5 +++
 drivers/media/platform/qcom/venus/pm_helpers.c | 54 ++++++++++++++++++++++--
 drivers/spi/spi-geni-qcom.c                    | 26 ++++++++++--
 drivers/spi/spi-qcom-qspi.c                    | 28 ++++++++++++-
 drivers/tty/serial/qcom_geni_serial.c          | 34 ++++++++++++---
 include/linux/qcom-geni-se.h                   |  4 ++
 13 files changed, 268 insertions(+), 23 deletions(-)
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation