Update devfreq next for v6.7

Detailed description for this pull request:
 1. Update devfreq core
 - Switch to dev_pm_opp_find_freq_(ceil/floor)_indexed() APIs
  to support the specific device like UFS which handle the multiple clocks
  through OPP (Operationg Performance Point) framework.
 
 2. Update the devfreq / devfreq-event drivers
 - Add perf support to the Rockchip DFI(DDR Monitor Module) devfreq-event driver.
 : Generalize rockchip-dfi.c to support new RK3568/RK3588 using different DDR type.
 : Covert devicetree bidning document format to yaml.
 : DFI is a unit which is suitable for measuring DDR utilization
   for the DDR frequency scaling driver. Add perf support feature
   to rockchip-dfi.c to extend DFI usage. The perf support has been tested
   on a RK3568 and a RK3399.
 
 - Protect the OPP handling code in critical section
   because the voltage of shared OPP might be changed by multiple drivers
   on Mediatek CCI devfreq driver.
 
 - Use device_get_match_data() on Samsung Exynos PPMU devfreq-event driver.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEsSpuqBtbWtRe4rLGnM3fLN7rz1MFAmU32B8ACgkQnM3fLN7r
 z1Me7w/8CJ+D+WXPpUzPvgxYLNTdCSX1GUxZeUFjfbsxmzLHBF234WuSOirfRWe3
 MF0d9oG305C5LVOANcrCMnpSduZgriTBe88ho+bFPAxMZ/k1PZFiCCBjHPIjZ7F9
 8KG8rC3YqXlpdmpGfJ8mAcTA3gU2eFkg+6GOfrm29LAKEGAsSFiOss1qmazVKn2F
 i2a4WbpBRV7EiPSg1YSpWhnU2sGXuJivqLrF4DgetuLdGMaXS6exQUcrzX6L4YkZ
 INfY+gm9HrUPPKw31GNX0oJpBMoDIgyQElW9D4LJMz+qwdozWkT90ipE3gwf+x0K
 HfyNe5gtkHClKhM1VS+HZKJnKWMBWn059YgRKT/7Ss3sAlDkk5SEeIIE9fR/wP/w
 qSNCgJMpWLGoGl/P0uOpDMe3wPNzzCoJzA5EE2ly6HOr7tTihdK7QY/fLw+6PTwC
 UwNsUm+NkjoQZDK3Ln1nBbyRMkYh8+qp6oBDCqy6L9WzBNWzW3oFRYM93tqtlThd
 99r/Wh0B9TOZhYGXH4bbgWpgaTOIMaNSJ1qaEwdl1wDJYkYbpBcUAAGOzgFUePFk
 SqrI3pYrbSdEmyHkRFcUzti3O9jsRcWHM0Ldb40A4uWC3Jtj+Ha0rVlTDfiHYYXS
 RUfjunGT/VEelbdlPJWTq2IDC2aStURTa4DwFze+hLazaZwspDw=
 =lh9c
 -----END PGP SIGNATURE-----

Merge tag 'devfreq-next-for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux

Merge devfreq updates for v6.7 from Chanwoo Choi:

" Detailed description for this pull request:
 1. Update devfreq core
 - Switch to dev_pm_opp_find_freq_(ceil/floor)_indexed() APIs
   to support the specific device like UFS which handle the multiple clocks
   through OPP (Operationg Performance Point) framework.

 2. Update the devfreq / devfreq-event drivers
 - Add perf support to the Rockchip DFI(DDR Monitor Module) devfreq-event driver.
 : Generalize rockchip-dfi.c to support new RK3568/RK3588 using different DDR type.
 : Covert devicetree bidning document format to yaml.
 : DFI is a unit which is suitable for measuring DDR utilization
   for the DDR frequency scaling driver. Add perf support feature
   to rockchip-dfi.c to extend DFI usage. The perf support has been tested
   on a RK3568 and a RK3399.

 - Protect the OPP handling code in critical section
   because the voltage of shared OPP might be changed by multiple drivers
   on Mediatek CCI devfreq driver.

 - Use device_get_match_data() on Samsung Exynos PPMU devfreq-event driver."

* tag 'devfreq-next-for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux: (26 commits)
  dt-bindings: devfreq: event: rockchip,dfi: Add rk3588 support
  dt-bindings: devfreq: event: rockchip,dfi: Add rk3568 support
  dt-bindings: devfreq: event: convert Rockchip DFI binding to yaml
  PM / devfreq: rockchip-dfi: add support for RK3588
  PM / devfreq: rockchip-dfi: account for multiple DDRMON_CTRL registers
  PM / devfreq: rockchip-dfi: make register stride SoC specific
  PM / devfreq: rockchip-dfi: Add perf support
  PM / devfreq: rockchip-dfi: give variable a better name
  PM / devfreq: rockchip-dfi: Prepare for multiple users
  PM / devfreq: rockchip-dfi: Pass private data struct to internal functions
  PM / devfreq: rockchip-dfi: Handle LPDDR4X
  PM / devfreq: rockchip-dfi: Handle LPDDR2 correctly
  PM / devfreq: rockchip-dfi: Add RK3568 support
  PM / devfreq: rockchip-dfi: Clean up DDR type register defines
  PM / devfreq: rk3399_dmc,dfi: generalize DDRTYPE defines
  PM / devfreq: rockchip-dfi: introduce channel mask
  PM / devfreq: rockchip-dfi: Use free running counter
  PM / devfreq: mediatek: unlock on error in mtk_ccifreq_target()
  PM / devfreq: exynos-ppmu: Use device_get_match_data()
  PM / devfreq: rockchip-dfi: dfi store raw values in counter struct
  ...
This commit is contained in:
Rafael J. Wysocki 2023-10-25 14:46:34 +02:00
commit af6664668d
12 changed files with 854 additions and 158 deletions