Skip to content

RFC DVFS in the OPP core

Rajendra Nayak dri-devel linux-arm-msm linux-pm linux-scsi linux-serial linux-spi lkml 1 version Applied

Status from this message: I have applied modified version of these two patches to the OPP tree now.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest11 patches 24 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11OPP: Don't overwrite rounded clk ratedrivers/opp/core.c+5 -310 replies
2/11OPP: Make dev_pm_opp_set_rate() with freq=0 as validdrivers/opp/core.c+12 -62 replies
3/11tty: serial: qcom_geni_serial: Use OPP API to set clk/perf statedrivers/tty/serial/qcom_geni_serial.c+13 -26 replies
4/11spi: spi-geni-qcom: Use OPP API to set clk/perf statedrivers/spi/spi-geni-qcom.c+11 -30 replies
5/11arm64: dts: sdm845: Add OPP table for all qup devicesarch/arm64/boot/dts/qcom/sdm845.dtsi+115 -00 replies
6/11scsi: ufs: Add support to manage multiple power domains in ufshcd-pltfrmdrivers/scsi/ufs/ufshcd-pltfrm.c drivers/scsi/ufs/ufshcd.h+54 -10 replies
7/11scsi: ufs: Add support for specifying OPP tables in DTdrivers/scsi/ufs/ufshcd.c+19 -20 replies
8/11arm64: dts: sdm845: Add ufs opps and power-domainsarch/arm64/boot/dts/qcom/sdm845.dtsi+19 -11 reply
9/11drm/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+15 -11 reply
10/11drm/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+84 -100 replies
11/11arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domainsarch/arm64/boot/dts/qcom/sdm845.dtsi+59 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 00/11] DVFS in the OPP core

This is a v2 of the RFC posted earlier by Stephen Boyd [1]

As part of v2 I still follow the same approach of dev_pm_opp_set_rate() API using clk framework to round the frequency passed and making it accept 0 as a valid frequency indicating the frequency isn't required anymore. It just has a few more drivers converted to use this approach like dsi/dpu and ufs.
ufs demonstrates the case of having to handle multiple power domains, one of which is scalable.

The patches are based on 5.1-rc1 and depend on some ufs fixes I posted earlier [2] and a DT patch to include the rpmpd header [3]

[1] https://lkml.org/lkml/2019/1/28/2086
[2] https://lkml.org/lkml/2019/3/8/70
[3] https://lkml.org/lkml/2019/3/20/120

Rajendra Nayak (10):
OPP: Make dev_pm_opp_set_rate() with freq=0 as valid
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
arm64: dts: sdm845: Add OPP table for all qup devices
scsi: ufs: Add support to manage multiple power domains in
ufshcd-pltfrm
scsi: ufs: Add support for specifying OPP tables in DT
arm64: dts: sdm845: Add ufs opps and power-domains drm/msm/dpu: Use OPP API to set clk/perf state drm/msm: dsi: Use OPP API to set clk/perf state
arm64: dts: sdm845: Add DSI and MDP OPP tables and power-domains

Stephen Boyd (1):
OPP: Don't overwrite rounded clk rate

 arch/arm64/boot/dts/qcom/sdm845.dtsi          | 194 +++++++++++++++++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c |   7 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c       |   9 +
 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            |  88 +++++++-
 drivers/opp/core.c                            |  26 ++-
 drivers/scsi/ufs/ufshcd-pltfrm.c              |  52 ++++-
 drivers/scsi/ufs/ufshcd.c                     |  21 +-
 drivers/scsi/ufs/ufshcd.h                     |   3 +
 drivers/spi/spi-geni-qcom.c                   |  14 +-
 drivers/tty/serial/qcom_geni_serial.c         |  15 +-
 12 files changed, 406 insertions(+), 29 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